/* Staff sign-in (login, code / PIN step, forgot + reset password): direction C "Light", chosen by the owner 23-Nov-2026
   (docs/design/taxclue-login-designs.html, section view-c). White page; left the TaxClue logo, one line and the four apps;
   right one light panel. Red only on the main button and one sentence. Fonts are the app's own (assets/css/fonts.css).
   Loaded only by resources/views/erp/auth/_w9-head.blade.php; tokens are printed there (#w9AuthTokens). */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body.w9-auth { font-family: var(--sans); font-size: 15px; line-height: 1.5; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
.w9-auth a { color: inherit; text-decoration: none; }
.w9-auth button { font: inherit; }
.w9-auth :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* page */
.stage { --gut: clamp(24px, 7vw, 110px); position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); grid-template-rows: auto 1fr auto;
  column-gap: clamp(24px, 5vw, 80px); padding: 0 var(--gut); overflow: hidden; isolation: isolate; }
.c-seal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* top row */
.c-top { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.c-logo { display: block; }
.c-logo img { display: block; height: 32px; width: auto; }
.c-top nav { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.c-top nav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 500; }
.c-top nav a:hover { border-color: var(--navy); }
.c-top nav svg { width: 16px; height: 16px; color: var(--navy); }

/* left */
.c-left { grid-column: 1; grid-row: 2; align-self: center; min-width: 0; padding: 8px 0 24px; }
.c-lead { margin: 0; max-width: 18ch; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.c-lead em { font-style: normal; color: var(--red); }
.c-list { list-style: none; margin: 22px 0 0; padding: 0; max-width: 480px; border-top: 1px solid var(--line); }
.c-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.c-list i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); color: var(--navy); }
.c-list i svg { width: 19px; height: 19px; }
.c-list b { flex: none; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.c-list span { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; }
.c-facts { list-style: none; margin: 18px 0 0; padding: 0; max-width: 480px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.c-facts li { padding: 12px 12px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.c-facts svg { display: block; width: 18px; height: 18px; margin-bottom: 8px; color: var(--navy); }
.c-facts b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; font-weight: 600; }
.c-after { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 12.5px; }
.c-after .ic { width: 15px; height: 15px; color: var(--navy); }

/* right: the panel */
.center { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: 100%; max-width: 440px; padding: 16px 0; min-width: 0; }
.center-in { width: 100%; }
.card { width: 100%; padding: 32px 32px 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 30px 60px -40px rgba(8, 26, 54, .45); }
.eyebrow { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.card h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.eyebrow + h1 { margin-top: 6px; }
.card h1 em { font-style: normal; }
.card .sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card .sub strong { color: var(--ink); font-weight: 600; }

/* alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 11px 13px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; border: 1px solid var(--err-line); background: var(--err-bg); color: var(--err-ink); }
.alert .ic { width: 17px; height: 17px; margin-top: 1px; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.alert--warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.alert--ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }

/* fields */
.fld { margin-top: 16px; }
.fld-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fld label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.fld a { font-size: 13px; color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.fld a:hover { text-decoration-color: var(--navy); }
.inp { position: relative; margin-top: 6px; }
.inp .lead { display: none; }
.inp input { width: 100%; height: 48px; padding: 0 48px 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: 400 15.5px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s; }
.inp input::placeholder { color: #707b90; }
.inp input:focus { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(31, 95, 208, .22); }
.inp input.code { font-family: var(--mono); font-size: 20px; letter-spacing: .4em; }
.bad .inp input { border-color: var(--red); }
.eye { position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.eye:hover { color: var(--ink); background: var(--chip); }
.caps { display: none; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--warn-ink); }
.caps.on { display: flex; }
.caps .ic { width: 14px; height: 14px; }
.hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.hint code { font-family: var(--mono); font-size: 12px; }
.meter { margin-top: 8px; height: 4px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.meter > div { height: 100%; width: 0; border-radius: 999px; transition: width .3s, background .3s; }
.chk { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 36px; cursor: pointer; user-select: none; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }

/* the one red button */
.go { margin-top: 18px; width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 600 15.5px var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px -12px rgba(210, 31, 60, .75); transition: background .15s; }
.go:hover { background: var(--red-d); }
.go[disabled] { cursor: progress; opacity: .92; }
.go kbd { font: 600 10.5px var(--mono); border-radius: 5px; padding: 2px 6px; line-height: 1.4; background: rgba(255, 255, 255, .18); color: #fff; }
.go .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: tc-spin .7s linear infinite; }
.go.busy .spin { display: inline-block; }
.go.busy .ic, .go.busy kbd { display: none; }

/* panel footer */
.card-f { margin-top: 18px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-size: 13.5px; color: var(--muted); }
.card-f a { color: var(--navy); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.card-f a:hover { text-decoration-color: var(--navy); }
.card-f .ic { width: 15px; height: 15px; }

/* code step */
.to { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--chip); font-size: 13.5px; color: var(--ink); }
.to b { font-weight: 600; overflow-wrap: anywhere; }
.to .ic { color: var(--muted); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.otp input { height: 52px; width: 100%; min-width: 0; padding: 0; text-align: center; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: 500 21px var(--mono); outline: none; transition: border-color .15s, box-shadow .15s; }
.otp input:focus { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(31, 95, 208, .22); }
.otp.bad input { border-color: var(--red); }
.otp-real { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.otp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.otp-row form { margin: 0; }
.otp-row .lnk { background: none; border: 0; padding: 0; min-height: 32px; display: inline-flex; align-items: center; font: 500 13px var(--sans); color: var(--navy); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.otp-row .lnk[disabled] { color: var(--muted); cursor: default; text-decoration: none; font-family: var(--mono); font-size: 12px; }

/* foot */
.foot { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 0 calc(var(--gut) * -1); padding: 14px var(--gut) 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot span { display: inline-flex; align-items: center; gap: 7px; }
.foot .ic { width: 14px; height: 14px; }

@keyframes tc-spin { to { transform: rotate(360deg); } }

/* phone and narrow windows: logo, then the form at once, then the rest */
@media (max-width: 860px) {
  .stage { --gut: 16px; display: flex; flex-direction: column; }
  .c-top { order: 1; padding: 14px 0 0; }
  .c-logo img { height: 28px; }
  .c-top nav a { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .c-top nav a span { display: none; }
  .center { order: 2; align-self: stretch; max-width: none; padding: 14px 0 0; }
  .c-left { order: 3; align-self: stretch; padding: 24px 0 20px; }
  .c-facts { grid-template-columns: 1fr; max-width: none; }
  .c-facts li { display: grid; grid-template-columns: 18px auto 1fr; align-items: center; column-gap: 10px; }
  .c-facts svg, .c-facts b { margin: 0; }
  .foot { order: 4; margin-top: auto; }
  .card { padding: 22px 18px 20px; border-radius: 16px; }
  .card h1 { font-size: 24px; }
  .c-lead { margin: 0; max-width: none; font-size: 22px; }
  .c-list { margin-top: 12px; max-width: none; }
  .c-list li { padding: 8px 0; }
  .c-list i { width: 34px; height: 34px; }
  .c-list b { font-size: 15px; }
  .c-list span { font-size: 13px; }
  .otp { gap: 6px; }
  .otp input { height: 48px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
