/* ── Login / Auth page — Modern Glassmorphism ── */

.auth-main {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  overflow: hidden;
}

/* Background orbs (reuse .orb from style.css) */
.auth-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.auth-orbs .orb-1 {
  width: 500px; height: 500px;
  top: -200px; left: -150px;
}

.auth-orbs .orb-2 {
  width: 350px; height: 350px;
  bottom: -100px; right: -80px;
  animation-delay: -5s;
}

/* ── Card ── */
.auth-card {
  position: relative;
  z-index: 1;
  background: var(--panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 40px 36px;
  text-align: center;
  animation: fadeUp 0.6s ease-out both;
}

/* ── Hat icon ── */
.auth-icon {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
}

.auth-icon svg {
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 20px rgba(59,130,246,0.45));
  animation: floatHat 4s ease-in-out infinite;
}

/* ── Headings ── */
.auth-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}

#auth-subhead {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: var(--bg);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 8px;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  color: #fff;
  box-shadow: 0 2px 10px rgba(59,130,246,0.30);
}

.auth-tab:hover:not(.active) {
  color: var(--violet-bright);
  background: rgba(59,130,246,0.07);
}

/* ── Google button ── */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--panel);
  color: var(--white);
  border: 1.5px solid var(--border-bright);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  padding: 13px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.google-btn:hover {
  border-color: var(--violet-bright);
  background: rgba(59,130,246,0.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.google-btn:active { transform: translateY(0); }
.google-btn svg { flex-shrink: 0; }

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-bright);
}

.auth-divider span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.7;
  white-space: nowrap;
}

/* ── Email form ── */
#email-form { text-align: left; }
#email-form .form-group { margin-bottom: 16px; }

.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pass-wrap input { padding-right: 64px; }

.show-pass-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.show-pass-btn:hover {
  color: var(--violet-bright);
  background: rgba(59,130,246,0.08);
}

.pass-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.auth-submit { margin-top: 8px; }

/* ── Resend wrap ── */
#resend-wrap {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--violet-bright);
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.link-btn:hover { color: var(--neon); }

.auth-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  opacity: 0.8;
}

/* ── Banners ── */
.error-banner,
.success-banner {
  border: 1.5px solid;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: left;
}

.error-banner {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.30);
  color: #DC2626;
}

[data-theme="dark"] .error-banner { color: #FCA5A5; }

.success-banner {
  background: rgba(22,163,74,0.08);
  border-color: rgba(22,163,74,0.30);
  color: #16A34A;
}

[data-theme="dark"] .success-banner { color: #86EFAC; }

/* ── Check-email state ── */
.check-email-icon  { font-size: 2.8rem; margin-bottom: 14px; }

.check-email-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.check-email-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.check-email-body strong { color: var(--white); font-weight: 600; }

.check-email-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
