/* =============================================================================
   auth.css — shared split-screen sign-in chrome for login.php + pro-login.php.
   Reuses app.css primitives (.btn .field .label .chip .award .stars .brand…).
   Only auth-scoped layout/branding lives here; no app.css duplication.
   ========================================================================== */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}

/* ----------------------------- LEFT: navy panel -------------------------- */
.auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3.4rem);
}
/* subtle depth — orange glow + faint diagonal weave (mirrors .photo::after) */
.auth-aside::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 60% at 85% -10%, rgba(255, 107, 44, 0.34), transparent 60%),
    radial-gradient(55% 50% at 5% 110%, rgba(255, 177, 0, 0.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 22px);
}
.auth-aside > * { position: relative; z-index: 1; }

.auth-aside .brand { font-size: 1.34rem; }

.auth-aside-body {
  margin-top: auto;
  margin-bottom: auto;
  padding-block: clamp(2rem, 5vw, 3.4rem);
  max-width: 30rem;
}
.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star);
}
.auth-eyebrow svg { width: 15px; height: 15px; }

.auth-headline {
  font-family: var(--font-display);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-block: 0.9rem 1rem;
}
.auth-headline .hl { color: var(--orange); }
.auth-sub {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.6;
  color: color-mix(in srgb, #fff 80%, transparent);
  max-width: 27rem;
}

/* trust element — testimonial / stats card on glass */
.auth-trust {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.3rem;
}
.auth-quote {
  font-size: 0.98rem;
  line-height: 1.55;
  color: color-mix(in srgb, #fff 92%, transparent);
}
.auth-trust-who {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-size: 0.85rem;
}
.auth-trust-who b { color: #fff; font-family: var(--font-display); }
.auth-trust-who small { color: color-mix(in srgb, #fff 60%, transparent); display: block; }

/* stat row (pro side) */
.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.auth-stat .n {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #fff;
}
.auth-stat .l {
  font-size: 0.82rem;
  color: color-mix(in srgb, #fff 62%, transparent);
  margin-top: 0.2rem;
  max-width: 9rem;
}

.auth-aside-foot {
  font-size: 0.8rem;
  color: color-mix(in srgb, #fff 55%, transparent);
}
.auth-aside-foot a { color: color-mix(in srgb, #fff 80%, transparent); text-decoration: underline; text-underline-offset: 2px; }
.auth-aside-foot a:hover { color: var(--orange); }

/* ----------------------------- RIGHT: form panel ------------------------- */
.auth-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.4rem, 4vw, 3rem);
  background: #fff;
}

/* top bar — mobile brand (hidden on desktop) + context-switch link */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.auth-topbar .brand-mobile { display: none; }
.auth-topbar .brand-mobile .glyph { color: var(--star); }
.auth-topbar .brand-mobile b { color: var(--orange); }

.auth-switch {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.auth-switch a {
  color: var(--orange-600);
  font-weight: 700;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* the centered form column */
.auth-form-wrap {
  margin: auto;
  width: 100%;
  max-width: 26rem;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.auth-form-head { margin-bottom: 1.6rem; }
.auth-form-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.auth-form-head p { color: var(--text-soft); margin-top: 0.45rem; }

.auth-form { display: grid; gap: 1.05rem; }
.auth-field { display: block; }

/* password field with show/hide toggle */
.auth-pass { position: relative; }
.auth-pass .field { padding-right: 3.2rem; }
.auth-pass-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-soft);
  background: transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.auth-pass-toggle:hover { color: var(--navy); background: var(--grey-100); }

/* remember-me + forgot row */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  margin-top: -0.15rem;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-soft);
  font-weight: 600;
  cursor: pointer;
}
.auth-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  border-radius: 5px;
  flex: none;
}
.auth-forgot { color: var(--orange-600); font-weight: 700; }
.auth-forgot:hover { text-decoration: underline; text-underline-offset: 2px; }

/* 2FA hint pill (pro) */
.auth-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  background: var(--grey-50);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
}
.auth-hint svg { width: 17px; height: 17px; color: var(--green); flex: none; }

.auth-submit { margin-top: 0.3rem; }

/* divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.4rem 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-signup {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.auth-signup a { color: var(--orange-600); font-weight: 700; }
.auth-signup a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 820px) {
  .auth-wrap { grid-template-columns: 1fr; }
  /* collapse the marketing panel into a slim navy top strip */
  .auth-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.1rem, 5vw, 1.6rem);
    min-height: 64px;
  }
  .auth-aside-body,
  .auth-aside-foot { display: none; }
  .auth-panel { min-height: calc(100vh - 64px); }
  .auth-topbar .brand-mobile { display: none; }
  .auth-form-wrap { padding-block: 1.5rem; }
}

@media (max-width: 520px) {
  .auth-row { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}
