.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.08); }
.auth-card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.auth-card p { margin: 0; }
.auth-head { display: grid; gap: 6px; }
.auth-head .sub { margin: 0; font-size: 14px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px 3px 8px; margin-bottom: 4px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .field input { padding: 10px 12px; border-radius: 10px; font-size: 15px; min-height: 44px; }
.auth-card .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; min-height: 44px; border-radius: 10px; font-weight: 600; width: 100%; }
.auth-google:hover:not(:disabled) { background: var(--sunk, var(--bg)); }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-pass { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; min-width: 0; }
.auth-passbox input { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; font-size: 15px; }
.auth-passrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-passrow .linkbtn { text-decoration: none; font-weight: 500; }
.auth-passrow .linkbtn:hover { text-decoration: underline; }
.auth-passbox { position: relative; }
.auth-passbox input { padding-right: 46px !important; }
.auth-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; }
.auth-eye:hover:not(:disabled) { color: var(--fg); background: var(--sunk, var(--bg)); }
.auth-hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.auth-submit { width: 100%; min-height: 44px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.auth-card .formerr { margin: 0; }
.auth-card .formerr:empty { display: none; }
.auth-card button:disabled { cursor: progress; opacity: .7; }
.auth-switch { text-align: center; font-size: 13.5px; color: var(--muted); }
.auth-switch .linkbtn { font-size: inherit; font-weight: 600; text-decoration: none; }
.auth-switch .linkbtn:hover { text-decoration: underline; }
.auth-foot { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--accent); font-weight: 500; }
/* Split screen (renderSignIn with opts.brand): a full-screen layer over the page, brand panel left, card right.
   The panel collapses to a slim top bar on phones. Fixed colors: the panel looks the same in light and dark. */
.auth-shell { position: fixed; inset: 0; z-index: 500; overflow-y: auto; background: var(--bg); display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; }
.auth-shell .auth-wrap { min-height: 0; padding-block: 48px; }
.auth-brand { position: relative; overflow: hidden; color: #eef1ff; padding: 40px 44px; display: flex; flex-direction: column; gap: 32px;
  background: radial-gradient(120% 80% at 0% 0%, #3a63e0 0%, transparent 60%), radial-gradient(120% 90% at 100% 100%, #7448d6 0%, transparent 60%), #2c2f8f; }
.auth-brand::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 0 0 60px rgba(255,255,255,.03), 0 0 0 120px rgba(255,255,255,.02); pointer-events: none; }
.brand-mark { display: flex; align-items: center; gap: 10px; font-family: var(--font-display, inherit); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand-mark img { border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.brand-copy { margin-block: auto; display: grid; gap: 14px; max-width: 420px; position: relative; z-index: 1; }
.brand-copy h1 { margin: 0; font-family: var(--font-display, inherit); font-size: clamp(28px, 3vw, 38px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; color: inherit; }
.brand-copy p { margin: 0; color: rgba(238,241,255,.78); font-size: 15px; }
.brand-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.brand-list li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.brand-list svg, .brand-fine svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-list svg { box-sizing: content-box; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.12); }
.brand-fine { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12.5px; color: rgba(238,241,255,.66); position: relative; z-index: 1; }
@media (max-width: 860px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand { padding: 16px max(16px, env(safe-area-inset-left, 0px)); padding-top: max(16px, env(safe-area-inset-top, 0px)); flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .auth-brand::after, .brand-copy { display: none; }
  .brand-mark { font-size: 17px; } .brand-mark img { width: 30px; height: 30px; }
  .auth-shell .auth-wrap { align-items: start; padding-block: 28px 40px; }
}
@media (max-width: 420px) { .brand-fine { display: none; } .auth-shell .auth-card { padding: 22px 18px; } }
.auth-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.linkbtn { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; justify-self: start; font-size: 13px; text-decoration: underline; }
.formerr.ok { color: var(--ok); }
