/* ========================================
   Auth pages (login, callback) — matches app aesthetic
   ======================================== */

.auth-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top,
    rgba(94, 234, 212, 0.08),
    transparent 60%);
  pointer-events: none;
}

/* Lotus avatar (matches app) */
.auth-lotus {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(94, 234, 212, 0.55) 0%,
    rgba(184, 164, 216, 0.55) 50%,
    rgba(94, 234, 212, 0.15) 80%,
    transparent 100%);
  box-shadow:
    0 0 30px rgba(94, 234, 212, 0.4),
    0 0 60px rgba(184, 164, 216, 0.2),
    inset 0 0 16px rgba(255, 255, 255, 0.15);
  animation: authLotusPulse 4s ease-in-out infinite;
  font-size: 40px;
}

@keyframes authLotusPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.auth-title {
  font-size: 28px;
  font-weight: 400;
  color: var(--soft-white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--subtle-gray);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form .form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--soft-white);
  letter-spacing: 0.3px;
}

.auth-form input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  color: var(--soft-white);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition-base);
}

.auth-form input::placeholder {
  color: var(--subtle-gray);
  font-weight: 300;
}

.auth-form input:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.12);
}

.auth-submit {
  width: 100%;
  padding: 16px 32px;
  font-size: 15px;
  justify-content: center;
  margin-top: 4px;
}

.auth-footer-note {
  font-size: 12px;
  color: var(--subtle-gray);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

/* Sent + error states */
.auth-sent, .auth-error {
  text-align: center;
  padding: 8px 0;
}

.sent-icon, .error-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: inline-block;
}

.sent-title, .error-title {
  font-size: 22px;
  font-weight: 400;
  color: var(--soft-white);
  margin-bottom: 12px;
}

.sent-text, .error-text {
  font-size: 14px;
  color: var(--subtle-gray);
  line-height: 1.7;
  margin-bottom: 8px;
}

.sent-text strong {
  color: var(--teal-glow);
  font-weight: 500;
  display: block;
  margin-top: 8px;
}

.sent-hint {
  font-size: 12px;
  color: var(--subtle-gray);
  margin: 16px 0 24px;
  font-style: italic;
}

/* Tester CTA below auth card */
.auth-tester-cta {
  margin-top: 32px;
  font-size: 13px;
  color: var(--subtle-gray);
  text-align: center;
}

.auth-tester-cta a {
  color: var(--teal-glow);
  text-decoration: none;
  font-weight: 500;
  margin-left: 6px;
  transition: color var(--transition-base);
}

.auth-tester-cta a:hover {
  color: var(--soft-white);
}

/* Auth callback page */
.auth-callback {
  text-align: center;
}

.callback-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(94, 234, 212, 0.2);
  border-top-color: var(--teal-glow);
  border-radius: 50%;
  margin: 24px auto 0;
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 480px) {
  .auth-card {
    padding: 32px 24px;
  }
  .auth-main {
    padding: 100px 16px 40px;
  }
}
