/* ================================================================
   AUTH SCREENS — two-column layout
   Left: founder's letter + social proof over faded lawyer imagery
   Right: clean sign in / sign up form
================================================================ */
#auth-screen,
#approval-screen,
#payment-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--white);
}
#approval-screen,
#payment-screen {
  padding: 2.5rem 1.5rem;
  background: var(--surface);
}
#approval-screen .auth-box,
#payment-screen .auth-box {
  max-width: 28rem;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
#approval-screen.hidden,
#payment-screen.hidden { display: none; }

/* ── Two-column grid ────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  width: 100%;
}

/* ── Left panel — dark, warm, human ─────────────────────────── */
.auth-left {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}
/* Background image of lawyers — faded into the dark.
   Replace the URL below with an actual photo of African lawyers.
   Recommended: Unsplash/Pexels search "african lawyer office" or
   better yet, a photo from your own network. */
.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?w=1200&q=80')
    center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
/* Dark gradient overlay for readability */
.auth-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,15,13,0.6) 0%,
      rgba(15,15,13,0.3) 40%,
      rgba(15,15,13,0.7) 100%
    );
  pointer-events: none;
}
.auth-left-inner {
  max-width: 28rem;
  position: relative;
  z-index: 1;
}
.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.auth-left-logo-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.auth-left-tagline {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* ── Founder's letter ───────────────────────────────────────── */
.auth-founder-letter {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.auth-founder-letter p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.85rem;
}
.auth-founder-letter p:last-of-type {
  margin-bottom: 1.5rem;
}
.auth-founder-sig {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.auth-founder-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  font-style: italic;
}
.auth-founder-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
}

/* ── Right panel — form ─────────────────────────────────────── */
/* Sticky to viewport so the form stays centred and in view while the
   left-column story (founder letter, testimonials) scrolls past. */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--white);
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
}
.auth-box {
  background: var(--white);
  border-radius: 0;
  padding: 0;
  width: 100%;
  max-width: 24rem;
  box-shadow: none;
}

/* Lex logo inside the form — ONLY visible on very small screens
   where the left panel is hidden entirely. On desktop + tablet
   the left panel carries the branding. */
.auth-logo.auth-logo-mobile {
  display: none;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.auth-logo-mark {
  width: 2.25rem; height: 2.25rem;
  background: var(--ink);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.auth-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.auth-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.auth-toggle {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--mid);
}
.auth-toggle a {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}
.auth-toggle a:hover { text-decoration: underline; }

/* Steps for signup */
.step-dots {
  display: flex; gap: 0.4rem; margin-bottom: 1.75rem;
}
.step-dot {
  height: 0.25rem; border-radius: 9999px; background: var(--border);
  flex: 1; transition: background var(--t);
}
.step-dot.active { background: var(--gold); }

/* ── Testimonials (inside left panel, below founder letter) ── */
.auth-testimonials {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.75rem 1.25rem;
  position: relative;
  color: rgba(255, 255, 255, 0.92);
}
.auth-testimonial-quote-mark {
  position: absolute;
  top: 0.3rem;
  left: 1.25rem;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.25);
  pointer-events: none;
  user-select: none;
}
.auth-testimonial-slide {
  position: relative;
  min-height: 7rem;
  opacity: 1;
  transition: opacity 0.4s ease;
  padding-top: 1rem;
}
.auth-testimonial-slide.fade-out { opacity: 0; }
.auth-testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}
.auth-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.auth-testimonial-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.auth-testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}
.auth-testimonial-meta {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.1rem;
}
.auth-testimonial-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 1rem;
}
.auth-testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s;
}
.auth-testimonial-dot.active {
  background: var(--gold);
  width: 18px;
  border-radius: 9999px;
}

/* ── Responsive ─────────────────────────────────────────────── */
/* Below 900px the two-column sticky layout would crowd the form, so
   collapse to a single column. The form gets the first viewport
   (top of the page, full min-height) and the story scrolls in below
   for anyone who wants the social proof. */
@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .auth-right {
    order: 1;
    position: static;
    height: auto;
    min-height: 100dvh;
    align-items: flex-start;
    padding: 3rem 1.5rem 2rem;
  }
  .auth-left {
    order: 2;
    padding: 2.5rem 2rem;
    min-height: auto;
  }
  .auth-logo.auth-logo-mobile { display: flex; }
  .auth-left-tagline { font-size: 1.75rem; }
  .auth-founder-letter p { font-size: 0.875rem; }
}

@media (max-width: 480px) {
  .auth-right { padding: 2rem 1.25rem; }
}
