/* ASBO sign-in pages (2026-10-09) — standalone, no legacy style.css. */
:root {
  --asbo-blue-50: #eef7fc; --asbo-blue-100: #d8eefa; --asbo-blue-200: #b3ddf3;
  --asbo-blue-400: #3ba8dc; --asbo-blue-500: #1f8fcb; --asbo-blue-600: #17739f; --asbo-blue-700: #115a7d;
  --ink-900: #0f1b2a; --ink-700: #33415c; --ink-500: #5b6b82; --ink-400: #7a879a;
  --line: #e3e9f0; --line-2: #edf1f6; --canvas: #f4f7fb;
  --ok: #1b8a4a; --warn: #c77700; --bad: #c62828;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.auth-body { font-family: var(--font); color: var(--ink-900); background: var(--surface); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.5; }
.d-none { display: none !important; }
a { color: var(--asbo-blue-600); }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }

/* ---- brand panel ---- */
.auth-brand { position: relative; color: #fff; background: #0e2a40 var(--hero) center / cover no-repeat; overflow: hidden; }
.auth-brand::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10, 37, 58, .55) 0%, rgba(14, 50, 78, .78) 45%, rgba(9, 30, 48, .94) 100%); }
.auth-brand::after { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 168, 220, .35), rgba(59, 168, 220, 0)); }
.ab-inner { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding: 44px 56px; }
.ab-logo { height: 46px; width: auto; align-self: flex-start; }
.ab-copy { margin: auto 0; max-width: 520px; }
.ab-copy h1 { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.ab-copy p { font-size: 17px; color: rgba(255, 255, 255, .82); margin: 0 0 28px; }
.ab-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ab-points li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .92); }
.ab-points i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 14px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); flex: 0 0 34px; }
.ab-foot { font-size: 13px; color: rgba(255, 255, 255, .6); }

/* ---- form side ---- */
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 32px 24px; background: var(--surface); }
.auth-top { width: 100%; max-width: 420px; display: none; }
.auth-logo-sm { height: 40px; width: auto; }
.auth-card { width: 100%; max-width: 420px; margin: auto 0; padding: 24px 0; }
.ac-head { margin-bottom: 24px; }
.ac-head .ac-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 22px;
  background: var(--asbo-blue-50); color: var(--asbo-blue-600); margin-bottom: 16px; }
.ac-head h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.ac-head p { margin: 0; color: var(--ink-500); font-size: 15px; }
.ac-note { margin: 22px 0 0; font-size: 13px; color: var(--ink-500); display: flex; gap: 8px; align-items: flex-start; }
.ac-note i { color: var(--asbo-blue-500); margin-top: 3px; }
.ac-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; text-decoration: none; }
.ac-back:hover { text-decoration: underline; }

.auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 18px; border: 1px solid; }
.auth-alert i { margin-top: 3px; }
.auth-alert span { flex: 1; }
.auth-alert a { font-weight: 600; color: inherit; white-space: nowrap; }
.auth-alert.ok { background: var(--tint-ok); border-color: var(--tint-ok-line); color: var(--ok-ink); }
.auth-alert.bad { background: var(--tint-bad); border-color: var(--tint-bad-line); color: var(--bad-ink); }
.auth-alert.warn { background: var(--tint-warn); border-color: var(--tint-warn-line); color: var(--warn-ink); }

/* passkey button */
.btn-passkey { width: 100%; height: 50px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--ink-900); background: var(--ink-900); color: #fff; border-radius: 12px; font: 600 15px/1 var(--font);
  transition: transform .1s ease, background .15s ease; }
.btn-passkey i { font-size: 19px; }
.btn-passkey:hover { background: #1c2c40; }
.btn-passkey:active { transform: translateY(1px); }
.btn-passkey:disabled, .btn-passkey.is-busy { opacity: .7; cursor: progress; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--ink-400); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* fields */
.af-field { margin-bottom: 16px; }
.af-field label, .af-label-row label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.af-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.af-link { font-size: 13px; font-weight: 600; text-decoration: none; }
.af-link:hover { text-decoration: underline; }
.af-input { position: relative; }
.af-input input { width: 100%; height: 48px; padding: 0 44px 0 42px; border: 1.5px solid var(--line); border-radius: 12px;
  font: 400 15px var(--font); color: var(--ink-900); background: var(--surface); transition: border-color .15s, box-shadow .15s; outline: none; }
.af-input input::placeholder { color: var(--ink-400); }
.af-input input:focus { border-color: var(--asbo-blue-400); box-shadow: 0 0 0 4px var(--asbo-blue-100); }
.af-input .af-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-400); font-size: 14px; pointer-events: none; }
.af-input:focus-within .af-ic { color: var(--asbo-blue-500); }
.af-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none;
  color: var(--ink-400); border-radius: 8px; cursor: pointer; }
.af-eye:hover { background: var(--canvas); color: var(--ink-700); }
.af-error { font-size: 13px; color: var(--bad); margin-top: 6px; min-height: 0; }
.af-error:empty { display: none; }
.af-hint { font-size: 13px; color: var(--warn); margin-top: 6px; }
.has-error .af-input input { border-color: var(--bad); }
.has-error .af-input input:focus { box-shadow: 0 0 0 4px var(--tint-bad); }
.has-error .af-ic { color: var(--bad); }

.af-input.otp input { padding: 0 16px; text-align: center; font-size: 26px; font-weight: 700; letter-spacing: .5em; height: 60px;
  font-variant-numeric: tabular-nums; }
.af-input.otp input::placeholder { letter-spacing: .5em; color: #c7d0dc; }

.af-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-700); margin: 4px 0 20px; cursor: pointer; user-select: none; }
.af-check input { width: 18px; height: 18px; accent-color: var(--asbo-blue-500); margin: 0; }

.btn-auth { position: relative; width: 100%; height: 50px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--asbo-blue-500); color: #fff; font: 700 15px/1 var(--font); letter-spacing: .01em;
  box-shadow: 0 6px 16px rgba(31, 143, 203, .28); transition: background .15s, transform .1s; }
.btn-auth:hover { background: var(--asbo-blue-600); }
.btn-auth:active { transform: translateY(1px); }
.btn-auth:focus-visible, .btn-passkey:focus-visible { outline: 3px solid var(--asbo-blue-200); outline-offset: 2px; }
.btn-auth.btn-light { background: var(--surface); color: var(--ink-900); border: 1.5px solid var(--line); box-shadow: none; }
.btn-auth.btn-light:hover { background: var(--canvas); }
.btn-auth .ba-spin { display: none; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: ba-spin .7s linear infinite; }
.btn-auth.is-busy .ba-txt { visibility: hidden; }
.btn-auth.is-busy .ba-spin { display: block; }
.btn-auth:disabled { cursor: progress; opacity: .85; }
@keyframes ba-spin { to { transform: rotate(360deg); } }

.mode-switch { margin-top: 16px; font-size: 14px; text-align: center; color: var(--ink-500); }
.mode-switch a { font-weight: 600; text-decoration: none; }

.auth-footer { width: 100%; max-width: 420px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-400); padding-top: 12px; }
.auth-footer a { color: var(--ink-500); text-decoration: none; }
.auth-footer a:hover { color: var(--ink-900); text-decoration: underline; }
.auth-footer span { margin-right: auto; }

@media (max-width: 991px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-main { background: var(--canvas); padding: 24px 16px; }
  .auth-top { display: block; margin-bottom: 8px; }
  .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px;
    box-shadow: 0 1px 3px rgba(15, 27, 42, .06), 0 10px 28px rgba(15, 27, 42, .07); margin: 24px 0; }
}
@media (max-width: 400px) {
  .auth-card { padding: 22px 18px; }
  .ac-head h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; } }
