/* KBH Hub restyle: auth page(s). Loaded after /shared/base.css. Styling only: no layout changes.
   Sign-in, forgot password, reset / set-up password. Every selector sits under body.auth-bg,
   so nothing here reaches the app's other pages. */

/* Ground: the app's flat ground, no gradient wash. */
body.auth-bg { background: var(--bg); }

/* Card: one surface with a hairline, like every other card in the hub. No shadow at rest; the
   existing 1px border keeps its width and only takes the token colour. Radius is the card token. */
body.auth-bg .auth-card { background: var(--surface); border-color: var(--line-soft); box-shadow: none; border-radius: var(--r-lg); }
@media (max-width: 480px) { body.auth-bg .auth-card { border-radius: var(--r-lg); } }

/* Heading and lead: heading 600 with slightly tight tracking (system type); the lead line is read, so --body. */
body.auth-bg .auth-card h1 { font-weight: 600; letter-spacing: -.015em; color: var(--ink); }
body.auth-bg .auth-card .auth-sub { color: var(--body); }

/* Fields: the shared control radius; the leading icon follows the field's state
   (dim at rest, darker on hover, accent while the field has focus). */
body.auth-bg .field input { border-radius: var(--r-sm); }
body.auth-bg .field > svg { stroke: var(--dim); transition: stroke var(--m-out) var(--ease); }
body.auth-bg .field:hover > svg { stroke: var(--soft); transition-duration: var(--m-in); }
body.auth-bg .field:focus-within > svg { stroke: var(--accent); }

/* Show-password button: a quiet icon button in the system's states (surface-2 on hover, darker
   icon, focus ring from base). Kept inside the field, so no hairline of its own. */
body.auth-bg .field .eye { border-radius: 6px; transition: background var(--m-out) var(--ease); }
body.auth-bg .field .eye svg { stroke: var(--dim); transition: stroke var(--m-out) var(--ease); }
body.auth-bg .field .eye:hover { background: var(--surface-2); transition-duration: var(--m-in); }
body.auth-bg .field .eye:hover svg, body.auth-bg .field .eye:focus-visible svg { stroke: var(--ink2); }
body.auth-bg .field .eye:active { background: color-mix(in oklab, var(--surface-2) 80%, var(--ink)); transition-duration: var(--m-press); }
body.auth-bg .field .eye:focus-visible { outline-offset: 0; }

/* Remember me: a plain option line in body text, not a blue link look-alike. The checkbox keeps
   the accent (base). */
body.auth-bg .remember { color: var(--body); cursor: pointer; }
body.auth-bg .remember input { cursor: pointer; }

/* Primary button: the system's control radius. */
body.auth-bg .auth-card .btn { border-radius: var(--r-sm); }

/* Links under the card: the system's link look (accent, faint hairline underline that darkens on hover). */
body.auth-bg .auth-links a { color: var(--accent); text-decoration-line: underline; text-decoration-color: color-mix(in oklab, currentColor 30%, transparent); }
body.auth-bg .auth-links a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

/* Tap areas (tasteskill tap-size): a transparent layer past the box makes the show-password button and the
   remember-me line 44px tall to a finger without changing their size or anything around them. */
body.auth-bg .field .eye::before { content: ""; position: absolute; inset: -1px; }
body.auth-bg .remember { position: relative; }
body.auth-bg .remember::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
body.auth-bg .auth-links a { position: relative; }
body.auth-bg .auth-links a::before { content: ""; position: absolute; left: -6px; right: -6px; top: -14px; bottom: -14px; }
