/* Sign-in page only. Uses the same colour tokens as the console (light + dark). */
body.auth { display: block; min-height: 100vh; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 1fr); min-height: 100vh; }

/* ---- brand panel ---- */
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 0% 0%, #1d4fb5 0%, rgba(29,79,181,0) 55%), linear-gradient(160deg, #0a1b3d 0%, #10285a 100%); }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-hero::before { width: 520px; height: 520px; right: -190px; bottom: -190px; border: 1.5px solid rgba(245,158,27,.35);
  box-shadow: 0 0 0 70px rgba(245,158,27,.05), 0 0 0 140px rgba(255,255,255,.03); }
.auth-hero::after { width: 14px; height: 14px; background: var(--accent); right: 18%; top: 22%; box-shadow: 0 0 0 10px rgba(245,158,27,.18); }
.auth-hero > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .logo { background: #fff; color: #0a1b3d; width: 42px; height: 42px; border-radius: 12px; font-size: 18px; }
.auth-brand b, .auth-brand small { display: block; }
.auth-brand b {  font-size: 16px; line-height: 1.2; }
.auth-brand small { font-size: 12.5px; color: #b6c3de; }
.auth-pitch h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 300; line-height: 1.15; letter-spacing: -.01em; max-width: 14em; }
.auth-pitch h2 em { font-style: normal; color: var(--accent); font-weight: 400; }
.auth-pitch ul { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.auth-pitch li { display: flex; align-items: center; gap: 12px; color: #d3dcf0; font-size: 15px; }
.auth-pitch li .i { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.09); color: #fff; }
.auth-foot { font-size: 12.5px; color: #9fb0d0; }

/* ---- form panel ---- */
.auth-main { display: grid; place-items: center; padding: 32px 24px; background: var(--bg); }
.auth-form { width: 100%; max-width: 380px; }
.auth-form .m-brand { display: none; }
.auth-form h1 { font-size: 30px; font-weight: 300; letter-spacing: -.01em; margin-bottom: 6px; }
.auth-form .lede { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.auth-form .flash { margin-bottom: 18px; }
.fld { display: block; margin-bottom: 16px; }
.fld > span { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink2, var(--ink)); }
.fld .box { position: relative; }
.fld .box > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; pointer-events: none; }
.fld input { width: 100%; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px 0 44px; outline: none; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
.fld input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29,79,181,.15); }
:root[data-theme="dark"] .fld input:focus { box-shadow: 0 0 0 4px rgba(143,180,255,.2); }
.fld .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 13px; padding: 8px 10px; border-radius: 8px; }
.fld .reveal:hover { color: var(--ink); background: var(--soft); }
.fld input.has-reveal { padding-right: 64px; }
.auth-form .go { width: 100%; height: 50px; margin-top: 6px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-size: 16px; font-weight: 600; transition: background .15s; }
.auth-form .go:hover { background: var(--brand-hover); }
.auth-form .go:disabled { opacity: .7; cursor: progress; }
.auth-help { margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---- small screens: hero becomes a compact header ---- */
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .auth-main { align-items: start; padding-top: 12vh; }
  .auth-form .m-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
  .auth-form .m-brand b { display: block; font-size: 16px; line-height: 1.2; }
  .auth-form .m-brand small { font-size: 12.5px; color: var(--muted); }
}
