/* PASS 1.2 §6 — auth unified into the ONE Probily system: amber carries every
   brand role (accents, focus rings, primary button, links); GREEN remains only
   on .lg-foot .secure as an intentional semantic «encrypted connection» state.
   First-screen math tracks the real 48px public header, dvh-aware. */
html, body { margin: 0; height: 100%; }
/* overflow-x hidden only — vertical scroll must work so the shared public_footer
   (below the first-screen split-stage) is reachable (login/signup consolidated
   onto the ONE shell — founder 2026-07-03). Was `overflow:hidden` = no scroll. */
body { background: var(--bg-0); color: var(--text-primary); font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── split layout ── */
/* Split-stage fills the first screen UNDER the shared 44px public_header; the
   shared public_footer sits below the fold. min-height (not fixed) so nothing
   clips (login/signup consolidated onto the ONE shell — founder 2026-07-03). */
.lg { display: grid; grid-template-columns: 1.08fr 1fr; min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px); }

/* ── LEFT · figure + slogan ── */
.lg-stage { position: relative; overflow: hidden; background: var(--bg-0);
  border-right: 1px solid var(--border-subtle); display: flex; flex-direction: column; padding: 32px 44px; }
#art { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 56% 50%, #000 18%, transparent 82%);
  mask-image: radial-gradient(ellipse 70% 70% at 56% 50%, #000 18%, transparent 82%); }
#art canvas { display: block; }
.stage-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(660px 460px at 56% 40%, color-mix(in oklch,var(--brand-500) 12%,transparent), transparent 70%),
    radial-gradient(420px 360px at 8% 102%, color-mix(in oklch,var(--brand-500) 5%,transparent), transparent 72%); }
.stage-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.4;
  background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px), linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 78% at 56% 50%, #000 4%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 78% at 56% 50%, #000 4%, transparent 78%); }

.stage-top { position: relative; z-index: 2; display: flex; align-items: center; }
.lg-logo { height: 26px; width: auto; display: block; }
.stage-beta { margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size:var(--fs-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-500);
  border: 1px solid color-mix(in oklch,var(--brand-500) 35%,transparent); background: color-mix(in oklch,var(--brand-500) 9%,transparent);
  padding: 5px 11px; border-radius: 999px; }
.stage-beta .d { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 3px color-mix(in oklch,var(--brand-500) 24%,transparent); }

.stage-mid { flex: 1; position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; max-width: 540px; }
.stage-kick { font-family: var(--font-mono); font-size:var(--fs-2xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-500);
  display: inline-flex; align-items: center; gap: 7px; }
.stage-kick .d { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 3px color-mix(in oklch,var(--brand-500) 24%,transparent); }
.stage-slogan { font-family: var(--font-sans); font-size:var(--fs-3xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.028em;
  color: var(--text-primary); margin: 16px 0 0; max-width: 16ch; }
.stage-slogan .gr { color: var(--brand-500); }
.stage-sub { font-family: var(--font-serif); font-size:var(--fs-sm); line-height: 1.6; color: var(--text-secondary); max-width: 46ch; margin: 18px 0 0; }
.stage-sub b { color: var(--text-primary); font-weight: 500; }

.stage-bullets { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 22px; }
.stage-bullets .b { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size:var(--fs-2xs); color: var(--text-tertiary); }
.stage-bullets .b svg { color: var(--brand-500); flex: none; }

.stage-bot { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size:var(--fs-2xs); color: var(--text-disabled); }
.stage-bot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-disabled); }

/* ── RIGHT · sign-in form ── */
.lg-side { background: linear-gradient(180deg, var(--bg-0), color-mix(in oklch,var(--bg-1) 70%,var(--bg-0)));
  display: flex; align-items: center; justify-content: center; padding: 40px; overflow: auto; }
.lg-card { width: 100%; max-width: 360px; animation: rise var(--dur-4) var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.lg-kick { font-family: var(--font-mono); font-size:var(--fs-2xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.lg-card h1 { font-size:var(--fs-xl); font-weight: 600; letter-spacing: -0.022em; margin: 7px 0 0; }
/* PASS 1.3 §2 — auth-card headline highlight is amber (was an inline green
   override on signup). `.stage-slogan .gr` is scoped to the LEFT stage, so the
   right-hand card needs its own brand rule. */
.lg-card h1 .gr { color: var(--brand-500); }
.lg-sub { font-family: var(--font-serif); font-size:var(--fs-sm); line-height: 1.55; color: var(--text-tertiary); margin: 7px 0 0; }

.lg-field { margin-top: 16px; }
.lg-field .lbl { display: flex; align-items: center; font-family: var(--font-mono); font-size:var(--fs-2xs);
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 6px; }
.lg-field .lbl a { margin-left: auto; color: var(--brand-500); text-transform: none; letter-spacing: 0; text-decoration: none; }
.lg-field .lbl a:hover { text-decoration: underline; }
.lg-input { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--border-default); background: var(--bg-2); transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.lg-input:focus-within { border-color: color-mix(in oklch,var(--brand-500) 55%,transparent);
  box-shadow: 0 0 0 3px color-mix(in oklch,var(--brand-500) 14%,transparent); }
.lg-input svg { color: var(--text-disabled); flex: none; }
.lg-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text-primary);
  font-family: var(--font-sans); font-size:var(--fs-sm); }
.lg-input input::placeholder { color: var(--text-disabled); }
.lg-eye { cursor: pointer; }
.lg-eye:hover { color: var(--text-secondary); }

.lg-btn { width: 100%; height: 42px; margin-top: 18px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--brand-500); color: var(--gray-1000, #0a0a0b); font-family: var(--font-sans); font-size:var(--fs-sm); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: filter var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out); }
.lg-btn:hover { filter: brightness(1.08); }
.lg-btn:active { transform: translateY(1px); }
.lg-btn:disabled { filter: saturate(0.4) brightness(0.85); cursor: progress; }
.lg-sso:disabled { cursor: not-allowed; opacity: 0.65; }
.lg-sso:disabled:hover { background: var(--bg-2); color: var(--text-secondary); }

.lg-or { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-family: var(--font-mono);
  font-size:var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-disabled); }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }

.lg-ssos { display: flex; flex-direction: column; gap: 8px; }
.lg-sso { width: 100%; height: 40px; border: 1px solid var(--border-default); border-radius: var(--r-sm); cursor: pointer;
  background: var(--bg-2); color: var(--text-secondary); font-family: var(--font-sans); font-size:var(--fs-xs); font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 9px; transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
.lg-sso:hover { background: var(--bg-3); color: var(--text-primary); }
.lg-sso .ic { width: 15px; height: 15px; flex: none; display: inline-flex; }
.lg-sso .ic svg { width: 100%; height: 100%; }

.lg-alt { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-subtle);
  font-size:var(--fs-xs); color: var(--text-tertiary); }
.lg-alt a { color: var(--brand-500); text-decoration: none; font-weight: 500; }
.lg-alt a:hover { text-decoration: underline; }

.lg-foot { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font-mono); font-size:var(--fs-2xs); color: var(--text-disabled); }
.lg-foot .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-disabled); }
.lg-foot a { color: var(--text-tertiary); text-decoration: none; }
.lg-foot a:hover { color: var(--text-secondary); }
.lg-foot .secure { display: inline-flex; align-items: center; gap: 5px; color: var(--success); }

@media (max-width: 860px) {
  /* PASS 1.3 §8 — on phone/tablet the AUTHENTICATION TASK takes priority over
     the decorative scene. The split-stage collapses to a shallow branded strip
     (one motif + the slogan), the form purpose + fields sit high on the first
     screen, and the page scrolls as a SINGLE document — the previous
     minmax(280px,42vh) stage pushed the sign-up CTA below the fold and the
     inner `overflow:auto` on .lg-side trapped the form in its own scroll box. */
  .lg { grid-template-columns: 1fr; grid-template-rows: auto 1fr;
        min-height: calc(100vh - 48px); min-height: calc(100dvh - 48px); }
  .lg-stage { padding: 16px 22px 14px; border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  #art { opacity: 0.4; }
  .stage-mid { flex: none; }
  .stage-slogan { font-size:var(--fs-xl); margin: 4px 0 0; max-width: none; }
  .stage-sub, .stage-bullets, .stage-bot { display: none; }
  .lg-side { padding: 24px 20px 40px; align-items: flex-start; overflow: visible; }
}

