* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: #5543FF;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.bg-vector {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bg-vector svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.icon,
h1,
.subtitle,
form {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px);
  will-change: opacity, filter, transform;
  animation: blur-in 1400ms cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.icon       { animation-delay: 0ms; }
h1          { animation-delay: 150ms; }
.subtitle   { animation-delay: 300ms; }
form        { animation-delay: 350ms; }

.icon {
  margin-bottom: 6px;
}

.icon img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

h1 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

form {
  display: flex;
  align-items: center;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  padding: 4px 4px 4px 16px;
  gap: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

input[type="email"] {
  height: 36px;
  flex: 1;
  min-width: 180px;
  padding: 0;
  font-size: 16px;
  font-family: inherit;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
}

input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

button[type="submit"] {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  background: #fff;
  color: #5543FF;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background-color 150ms ease;
  white-space: nowrap;
  flex-shrink: 0;
}

button[type="submit"]:hover {
  background: rgba(255, 255, 255, 0.9);
}

button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(85, 67, 255, 0.3);
  border-top-color: #5543FF;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  font-size: 12px;
  color: #ffb3b3;
  margin-top: 4px;
}

footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
  position: relative;
  z-index: 1;
}

footer a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 150ms ease;
}

footer a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Overlay + Toast */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

.overlay[hidden] {
  display: none;
}

.overlay.visible {
  animation: overlay-in 200ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.toast {
  max-width: 320px;
  padding: 16px 24px;
  background: #333;
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  animation: toast-in 200ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes blur-in {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(12px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

@keyframes overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon,
  h1,
  .subtitle,
  form,
  .toast,
  .overlay.visible {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
