/* Auth pages — Quant / Neural aesthetic */
.auth-page {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.auth-neural-bg {
  position: absolute;
  inset: 0;
  background-color: #020617;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(34, 197, 94, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(251, 191, 36, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(56, 189, 248, 0.05), transparent);
}

.auth-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 197, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  animation: auth-grid-drift 80s linear infinite;
}

@keyframes auth-grid-drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(48px, 48px);
  }
}

.auth-nodes {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}

.auth-glass {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 40px -15px rgba(34, 197, 94, 0.15);
}

.auth-glass--gold {
  border-color: rgba(251, 191, 36, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 45px -12px rgba(251, 191, 36, 0.12);
}

.auth-input-shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background: rgba(2, 6, 23, 0.55);
  padding: 0.65rem 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.auth-input-shell:focus-within {
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow:
    0 0 0 1px rgba(34, 197, 94, 0.2),
    0 0 24px -4px rgba(34, 197, 94, 0.25);
  background: rgba(2, 6, 23, 0.75);
}

.auth-input-shell svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.auth-input-shell input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  color: #f1f5f9;
  font-size: 0.9375rem;
}

.auth-input-shell input::placeholder {
  color: #64748b;
}

.auth-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 32px -6px rgba(34, 197, 94, 0.55);
  filter: brightness(1.08);
}

.auth-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  width: 100%;
  border-radius: 0.875rem;
  font-weight: 700;
  font-size: 0.9375rem;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.auth-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 32px -6px rgba(251, 191, 36, 0.45);
  filter: brightness(1.08);
}

.auth-secret-reveal {
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(34, 197, 94, 0.06));
  box-shadow: 0 0 40px -10px rgba(251, 191, 36, 0.35);
}

@keyframes auth-shimmer {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.85;
  }
}

.auth-pulse-dot {
  animation: auth-shimmer 2.5s ease-in-out infinite;
}
