/* ============================================================
   AUTH — login / signup / forgot
   ============================================================ */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  overflow: hidden;
}

.auth-hero {
  position: relative;
  background: var(--grad-mesh);
  color: #fff;
  padding: 48px 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.auth-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255, 195, 0, 0.3), transparent 60%);
  filter: blur(30px);
  animation: floatOrb 14s ease-in-out infinite;
}
.auth-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 87, 199, 0.5), transparent 60%);
  filter: blur(40px);
  animation: floatOrb 18s ease-in-out infinite reverse;
}

.auth-hero-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.auth-hero-top .brand-logo { width: 44px; height: 44px; }
.auth-hero-top .brand-name { font-size: 18px; font-weight: 700; }

.auth-hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 32px 0;
}
.auth-hero h2 {
  color: #fff;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 460px;
}
.auth-hero h2 span.hl {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-hero p.intro {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 32px;
}

.auth-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}
.auth-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform var(--dur-md) var(--ease), background var(--dur-md) var(--ease);
}
.auth-feat:hover { transform: translateX(-4px); background: rgba(255, 255, 255, 0.1); }
.auth-feat .af-ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-gold);
  display: grid; place-items: center;
  color: var(--navy-900);
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(255, 195, 0, 0.3);
}
.auth-feat .af-title { font-size: 14px; font-weight: 600; color: #fff; }
.auth-feat .af-desc { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-top: 2px; }

.auth-hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}
.auth-testimonial {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-testimonial .stack {
  display: flex;
}
.auth-testimonial .stack .av {
  border: 2px solid var(--navy-800);
  width: 32px; height: 32px;
  font-size: 11px;
  margin-inline-start: -10px;
}

/* ---------- FORM PANE ---------- */
.auth-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 54px;
  position: relative;
  overflow-y: auto;
}

.auth-pane-inner {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  animation: slideUp 0.7s var(--ease-out);
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

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

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: all var(--dur-sm) var(--ease);
}
.social-btn:hover { border-color: var(--muted-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.social-btn svg { width: 18px; height: 18px; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11.5px;
  margin: 4px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.auth-row-between a { color: var(--navy-700); font-weight: 600; }
.auth-row-between a:hover { color: var(--gold-600); }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
  cursor: pointer;
}
.checkbox input { display: none; }
.checkbox .cb-box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  display: grid; place-items: center;
  transition: all var(--dur-sm) var(--ease);
}
.checkbox input:checked + .cb-box {
  background: var(--navy-800);
  border-color: var(--navy-800);
}
.checkbox input:checked + .cb-box::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.checkbox .cb-label { font-size: 12.5px; color: var(--ink-2); }

.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.auth-foot a { color: var(--navy-700); font-weight: 600; }
.auth-foot a:hover { color: var(--gold-600); }

.auth-legal {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.6;
}
.auth-legal a { color: var(--navy-700); text-decoration: underline; }

/* strength bar */
.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.strength .sbar {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background var(--dur-sm) var(--ease);
}
.strength.s1 .sbar:nth-child(-n+1) { background: var(--danger); }
.strength.s2 .sbar:nth-child(-n+2) { background: var(--warn); }
.strength.s3 .sbar:nth-child(-n+3) { background: var(--info); }
.strength.s4 .sbar { background: var(--success); }

/* splash */
.splash {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--grad-mesh);
  color: #fff;
}
.splash-inner { text-align: center; }
.splash .brand-logo { width: 72px; height: 72px; margin: 0 auto 20px; font-size: 28px; border-radius: 22px; }
.splash h1 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.splash p { color: rgba(255, 255, 255, 0.7); font-size: 14px; margin-bottom: 24px; }
.splash .spin { border-color: rgba(255, 255, 255, 0.15); border-top-color: var(--gold-500); }

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero {
    padding: 28px 24px;
    min-height: 280px;
  }
  .auth-hero h2 { font-size: 28px; }
  .auth-hero-center { padding: 16px 0; }
  .auth-features { display: none; }
  .auth-pane { padding: 32px 22px; }
}
