/* ============================================================================
   UEPAKI AUTH — two-panel creator hero  (Phase 44, rebuilt on the design system)
   ----------------------------------------------------------------------------
   Presentation only. The buttons, inputs, eyebrows, alerts, hero-split etc. all
   come from uepaki-design-system.css (`.u-*`). This file only holds the AUTH
   PAGE composition: the split ratio, the creator-photo hero, the form panel, and
   the responsive collapse (image → band, form → the hero). No behaviour changes.
   ========================================================================== */

.ue-auth-v2 { background: var(--u-paper); padding-block: 0; }  /* full-bleed: the split IS the page — no cream band around it */
/* legacy style.css ships `#login-section{min-height:110vh;padding:40px 0}` — id
   specificity (1,0,0) beats any class rule, so the two login pages kept a cream
   band and 110vh of dead scroll. Outrank it at (1,1,0). */
#login-section.ue-auth-v2 { min-height: 0; padding-block: 0; }

/* Split: image ~60% / form ~40%. On desktop the split fills the viewport below
   the header, so the photo runs edge-to-edge with no leftover strip and the
   form centres in its column (the base .u-hero-panel already centres). */
.ue-auth-split {
  --u-hero-ratio: 6fr 4fr;
}
.ue-auth-v2 .ue-auth-split { min-height: 0; }   /* mobile/tablet: compact band, content-height */
@media (min-width: 901px) {
  .ue-auth-v2 .ue-auth-split { min-height: calc(100svh - 82px); }  /* 82px = header block incl. offset */
  /* When the form column is taller than the viewport (register), the photo
     column would stretch with it and carry its bottom-anchored copy below the
     fold. Cap the photo at viewport height and let it ride along instead —
     the copy is on screen from the first paint, and the image stays present
     for the whole scroll of the form. */
  .ue-auth-v2 .ue-auth-hero { position: sticky; top: 0; height: calc(100svh - 82px); align-self: start; }
}

/* ---- HERO (creator photography) ---- */
.ue-auth-hero { background-color: var(--u-ink); }         /* warm fallback under the photo */
.ue-auth-hero .u-title--hero { color: #fff; }
.ue-auth-hero__sub {
  margin: var(--u-3) 0 0;
  font-size: 1.05rem; line-height: 1.5; color: rgba(255,255,255,.92);
  max-width: 34ch;
}

/* ---- FORM PANEL (the journey completes here) ---- */
.ue-auth-panel { }
.ue-auth-form { width: 100%; max-width: 420px; margin-inline: auto; }
.ue-auth-form > .u-eyebrow { margin-bottom: var(--u-2); }
.ue-auth-form > .u-title   { margin-bottom: var(--u-2); }
.ue-auth-form > .u-lead    { margin-bottom: var(--u-6); }

/* Purchase-context strip (only when arriving from cart/checkout) */
.ue-auth-strip {
  display: flex; align-items: flex-start; gap: .7rem;
  background: var(--u-gold-soft);
  border: 1px solid color-mix(in srgb, var(--u-gold) 40%, var(--u-line));
  border-left: 3px solid var(--u-gold);
  border-radius: var(--u-r-sm); padding: .8rem 1rem; margin-bottom: var(--u-5);
  font-size: var(--u-fs-sm); color: var(--u-ink-soft);
}
.ue-auth-strip b { color: var(--u-ink); font-weight: var(--u-fw-semi); }
.ue-auth-strip svg { width: 18px; height: 18px; stroke: var(--u-gold-deep); flex: 0 0 auto; margin-top: 2px; }

/* Login-method segmented control spacing (control itself = .u-segment) */
.ue-auth-method { margin-bottom: var(--u-4); }

/* OTP row */
.ue-auth-otp { display: flex; gap: .6rem; align-items: flex-end; }
.ue-auth-otp .u-field { flex: 1; margin-bottom: 0; }

/* Forgot / alt / errors / consent — quiet, warm */
.ue-auth-forgot { text-align: right; margin: -.35rem 0 var(--u-4); }
.ue-auth-forgot a { font-size: var(--u-fs-sm); color: var(--u-ink-dim); text-decoration: none; }
.ue-auth-forgot a:hover { color: var(--u-coral); }
.ue-auth-actions { margin-top: var(--u-5); }
.ue-auth-alt { text-align: center; margin-top: var(--u-5); font-size: var(--u-fs-sm); color: var(--u-ink-soft); }
.ue-auth-alt a { color: var(--u-coral); font-weight: var(--u-fw-semi); text-decoration: none; }
.ue-auth-alt a:hover { text-decoration: underline; }
.ue-auth-v2 .error, .ue-auth-v2 .text-danger { color: var(--u-coral-deep); font-size: var(--u-fs-xs); display: block; margin-top: .3rem; }
.ue-auth-v2 .form-check { margin-bottom: .5rem; display: flex; align-items: flex-start; gap: .5rem; }
.ue-auth-v2 .form-check-input { accent-color: var(--u-coral); margin-top: .2rem; }
.ue-auth-v2 .form-check-label { color: var(--u-ink-soft); font-size: var(--u-fs-sm); }

/* Suppress inherited marketing block on auth pages */
body:has(.ue-auth-v2) .about_reg_sellers { display: none !important; }

/* Loader */
.ue-auth-v2 .checkout_loader { position: fixed; inset: 0; background: rgba(20,16,10,.35); display: none; align-items: center; justify-content: center; z-index: 9999; }

/* ---- LEGACY CARD LAYOUT (password request/reset) ----
   These two pages were never migrated to the Phase 44 .ue-auth-v2 split-hero
   structure above — they still use an older .ue-auth-card markup that this
   file never actually styled, so the eyebrow's raw inline <svg> rendered at
   unconstrained intrinsic size (~500px tall), pushing the real form far down
   the page behind a wall of blank space. Styling the class family here
   (tokens only, no markup change) fixes that without taking on a full
   migration to the two-panel hero used by login/register. */
.ue-auth-card {
  width: 100%; max-width: 440px; margin: var(--u-9, 64px) auto; padding: var(--u-6, 32px);
}
.ue-auth-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--u-fs-sm); font-weight: var(--u-fw-semi); text-transform: uppercase;
  letter-spacing: var(--u-track-label); color: var(--u-gold-deep);
  margin-bottom: var(--u-3);
}
.ue-auth-eyebrow svg {
  width: 18px; height: 18px; flex: 0 0 auto;
  stroke: var(--u-gold-deep); fill: none;
}
.ue-auth-title {
  font-family: var(--u-font); font-weight: var(--u-fw-black); color: var(--u-ink);
  font-size: 1.75rem; line-height: 1.2; margin: 0 0 var(--u-2);
}
.ue-auth-sub { color: var(--u-ink-soft); font-size: var(--u-fs-sm); margin: 0 0 var(--u-6); }
.ue-auth-field { margin-bottom: var(--u-4); }
.ue-auth-field label { display: block; font-size: var(--u-fs-sm); font-weight: var(--u-fw-semi); color: var(--u-ink); margin-bottom: .4rem; }
.ue-auth-btn {
  width: 100%; border: none; border-radius: var(--u-r-sm); padding: .85rem 1.5rem;
  background: var(--u-coral); color: #fff; font-weight: var(--u-fw-semi); font-size: 1rem;
  cursor: pointer; transition: background .15s ease;
}
.ue-auth-btn:hover { background: var(--u-coral-deep); }

/* ============================ RESPONSIVE ============================ */
/* Tablet & below: the .u-hero-split becomes one column (design system).
   The photo collapses to a warm band; the form becomes the hero. Never a card. */
@media (max-width: 900px) {
  .ue-auth-hero { min-height: 0; height: 240px; }
  .ue-auth-hero .u-hero-media__copy { inset: auto var(--u-4) var(--u-4) var(--u-4); max-width: none; }
  .ue-auth-hero .u-title--hero { font-size: 1.55rem; }
  .ue-auth-hero__sub { display: none; }               /* keep the band tight */
  .ue-auth-panel { padding: var(--u-6) var(--u-gutter) var(--u-8); }
  .ue-auth-form { max-width: 480px; }
}
@media (max-width: 520px) {
  .ue-auth-hero { height: 190px; }
  .ue-auth-hero .u-title--hero { font-size: 1.35rem; }
  .ue-auth-otp { flex-direction: column; align-items: stretch; }
}
/* Short landscape: don't let the band eat the fold */
@media (max-height: 560px) and (max-width: 900px) {
  .ue-auth-hero { height: 130px; }
}
/* == END UEPAKI AUTH ====================================================== */
