/* NoxTools · design 03 "Tool Launcher" · login/page.css
   Page-only parts of the sign-in page. Everything else comes from base.css + auth.css.
   (.btn-wait, the readable countdown button, lives in base.css.) */

/* "Forgot password?" sits on the label's line but comes after the input in the DOM,
   so Tab goes username → password → Forgot password? (a .label-row would put the link between the two fields) */
.pw-field { position: relative; }
.pw-forgot { position: absolute; top: 2px; right: 0; }

/* Caps Lock warning under the password (filled by page.js while typing; empty = not shown) */
.caps-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.45; font-weight: 500; color: var(--amber-text); }
.caps-hint:empty { display: none; }
.caps-hint .ic { width: 14px; height: 14px; }

/* the locked state: never flash the normal Sign in button before shell.js swaps the buttons (boot.js sets html[data-state]) */
html[data-state="locked"] #loginSubmit { display: none; }

/* "Create an account" never breaks in two on narrow phones */
.auth-alt a { white-space: nowrap; }

/* touch screens: 44 px tap frames that change nothing visible (1 Dec 2026, with the "Peek Inside" panel): the "Keep me
   signed in" row (the label is the tap target: 12 px of padding, taken back by the margin) and the inline "Create an
   account" link (an invisible frame around it) measured 36 and 16 px */
@media (pointer: coarse) {
  body[data-layout="auth"] .check { padding: 12px 0; margin: -12px 0; }
  .auth-alt a { position: relative; }
  .auth-alt a::before { content: ""; position: absolute; inset: -14px -6px; }
}
