/* Account pages: the app shell's typeface, ink buttons, fields and focus ring on warm paper, colours from tokens.css (BUR-3137; also used by .auth-field/.auth-submit/.auth-errors on team/connections pages). */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin-wght.938c6e8019b6.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
.auth-page { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 "Manrope", system-ui, sans-serif; caret-color: var(--tomato); -webkit-font-smoothing: antialiased; }
.auth-page :is(button, input, select, textarea) { font-family: inherit; }
.auth-page * { box-sizing: border-box; }
.auth-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  padding: 16px max(20px, calc((100% - 1150px) / 2)); background: var(--band); color: var(--on-band); }
.auth-page .auth-brand { font-size: 32px; font-weight: 750; letter-spacing: -.04em; color: var(--on-band); text-decoration: none; }
.auth-brand span { color: var(--tomato); }
.auth-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.auth-tagline { font-size: 14px; color: var(--on-band-2); }
.auth-header :focus-visible { outline-color: var(--on-band); }
.auth-page .appearance-bar { padding-inline: max(20px, calc((100% - 1150px) / 2)); }
.auth-page ::placeholder { color: var(--ink-2); opacity: 1; } /* browser defaults fall below 4.5:1 */
.language-switch { display: flex; margin: 0; border: 1px solid var(--band-line); border-radius: 8px; }
.language-switch button { min-width: 44px; min-height: 44px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--on-band); font: inherit; font-size: 14px; letter-spacing: .04em; cursor: pointer; }
.language-switch button:hover { background: var(--band-hover); }
.language-switch button[aria-pressed=true] { background: var(--band-accent); text-decoration: underline 2px var(--on-band); text-underline-offset: 5px; } /* the pale light fill alone is not a 3:1 state */
.auth-layout { max-width: 1144px; margin: 32px auto 40px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.auth-story { background: var(--band-panel); color: var(--on-band); padding: 48px 38px; border-radius: 19px 0 0 19px; box-shadow: inset 0 6px 0 var(--tomato); }
.auth-story h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 22px; }
.auth-story > p { color: var(--on-band-2); max-width: 35ch; }
.auth-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.auth-steps li { counter-increment: step; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--band-line-2); color: var(--on-band-2); }
.auth-steps li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--tomato-strong); color: var(--on-accent); font-weight: 700; text-align: center; line-height: 30px; }
.auth-steps strong { color: var(--on-band); }
.auth-truth { border-top: 1px solid var(--band-line-2); margin-top: 36px; padding-top: 24px; }
.auth-truth strong { font-size: 16px; }
.auth-truth p { color: var(--on-band-2); font-size: 14px; line-height: 1.7; }
.auth-panel { padding: 38px 40px; min-width: 0; }
.auth-panel h1 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.auth-intro { color: var(--muted); margin: 0 0 28px; }
.auth-notice { margin: 0 0 24px; padding: 14px 16px; border-left: 4px solid var(--tomato-strong); border-radius: 0 8px 8px 0; background: var(--tomato-light); overflow-wrap: anywhere; }
.auth-notice p { margin: 6px 0 0; font-size: 14px; }
.auth-field { margin-bottom: 20px; }
.auth-field label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.auth-field label span { font-weight: 400; color: var(--muted); }
.auth-field :is(input, textarea) { display: block; width: 100%; min-height: 42px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: 10px; }
.auth-field :is(input, textarea, select):focus { border-color: var(--ink-2); }
.auth-field textarea { min-height: 96px; resize: vertical; }
.auth-field :is(input, textarea)[aria-invalid=true] { border: 2px solid var(--tomato-deep); }
.auth-help { font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 7px; overflow-wrap: anywhere; }
.auth-help:empty { display: none; }
.auth-help ul { margin: 0; padding-inline-start: 20px; }
.auth-field-errors { color: var(--tomato-deep); font-size: 14px; font-weight: 600; }
.auth-field-errors p { margin: 7px 0 0; }
.auth-submit { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 16px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.auth-submit:hover { background: var(--ink-hover); }
.auth-alternate { margin: 24px 0 0; font-size: 14px; }
.auth-page a { color: var(--tomato-strong); text-underline-offset: 4px; }
a.auth-submit { display: block; text-align: center; color: var(--on-ink); text-decoration: none; }
.auth-errors { border: 1px solid var(--tomato-line-2); border-radius: 8px; background: var(--tomato-light); color: var(--tomato-deep); padding: 16px; margin-bottom: 24px; overflow-wrap: anywhere; }
.auth-errors h2 { font-size: 18px; margin: 0 0 8px; }
.auth-errors p, .auth-errors ul { margin: 8px 0 0; font-size: 14px; }
.auth-errors ul:empty { display: none; }
.auth-errors a { color: var(--tomato-deep); }
/* Required signup acceptance: native checkbox beside its label, help and errors aligned to the label. */
.auth-consent { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.auth-consent input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; margin: 0; padding: 0; accent-color: var(--tomato-strong); }
.auth-consent label { margin: 1px 0 0; font-weight: 600; }
.auth-consent :is(.auth-help, .auth-field-errors) { grid-column: 2; }
/* R19: from 900px down the label's 44px hit area spans the whole first row, tick box included; the box stays on top so it keeps its own focus ring. */
@media (max-width: 900px) {
  .auth-consent { align-items: center; }
  .auth-consent label.hit { grid-row: 1; grid-column: 1 / -1; justify-content: flex-start; margin: 0; padding-inline-start: 36px; }
  .auth-consent input[type=checkbox] { grid-row: 1; grid-column: 1; position: relative; z-index: 1; }
}
.auth-footer { text-align: center; color: var(--muted); font-size: 14px; margin: 0 20px 30px; }
.auth-footer p { margin: 0 0 6px; }
.auth-skip { position: fixed; top: -120px; left: 16px; z-index: 10; background: var(--surface); padding: 12px; }
.auth-skip:focus { top: 12px; }
.auth-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-page :focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.auth-logout button:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
.auth-page ::selection { background: var(--tomato-soft); color: var(--ink); }
.auth-logout { margin: 0; }
.auth-logout button, .auth-remove { min-height: 44px; padding: 9px 15px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: 10px; cursor: pointer; }
.auth-logout button:hover, .auth-remove:hover { background: var(--tomato-light); }
.auth-remove { color: var(--tomato-deep); border-color: var(--tomato-line-2); }
@media (max-width: 760px) {
 .auth-header { padding: 14px 18px; }
 .auth-tagline { display: none; }
 .auth-layout { display: flex; flex-direction: column; margin: 16px 14px 28px; }
 .auth-panel { padding: 28px 22px; order: -1; }
 .auth-panel h1 { font-size: 28px; }
 .auth-story { padding: 28px 24px; border-radius: 0 0 19px 19px; }
 .auth-story h2 { font-size: 28px; margin: 0 0 14px; }
 .auth-truth { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .auth-page * { transition: none !important; } }
/* Footer links stay at least 24px tall for touch. Alternate links (password recovery, create account) are 44px touch
   targets; the negative block margin keeps their line at the earlier 29px so the spacing under the form is unchanged. */
.auth-footer .legal-links a { display: inline-block; padding-block: 4px; }
.auth-alternate a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-block: -7.5px; }
/* Staff sign-in: native select and PIN/password choice share the field styling. */
.auth-field select { display: block; width: 100%; min-height: 42px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--field); border-radius: 10px; }
.auth-choice { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.auth-choice legend { padding: 0; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.auth-choice label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-inline-end: 24px; }
.auth-choice input { width: 22px; height: 22px; margin: 0; accent-color: var(--tomato-strong); }
/* "Sign in as" switch on the sign-in pages: the approved app-shell .segmented look (same tokens). The two choices share one row
   at equal widths and heights (labels wrap, never clip) and stack as two full-width rows on phones up to 480px.
   Every tile is a 44px touch target. */
.auth-switch { margin: 0 0 28px; }
.auth-switch p { margin: 0 0 7px; font-size: 14px; font-weight: 650; }
.auth-switch ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 3px; margin: 0; padding: 3px; list-style: none; border-radius: 11px; background: var(--fill); }
.auth-switch li { display: grid; }
.auth-switch a { display: grid; place-items: center; min-height: 44px; padding: 8px 6px; border-radius: 8px; color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.auth-switch a:hover { color: var(--ink); }
.auth-switch a:focus-visible { position: relative; z-index: 1; } /* the ring paints over the neighbouring tiles */
.auth-switch a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), inset 0 0 0 2px var(--ink); }
@media (max-width: 480px) { .auth-switch ul { grid-template-columns: minmax(0, 1fr); } }
/* v1.36.5 (L-119): supplier/operator verify — passkey button, then the code form under a quiet divider. */
.account-passkey__status:empty { display: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 4px; color: var(--muted); font-size: 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
/* BUR-4770: on verify, the code form's Verify stays the one primary; the passkey button above it is outlined (as on Getting paid). */
.auth-submit.auth-secondary { background: var(--surface); color: var(--ink); }
.auth-submit.auth-secondary:hover { background: var(--fill); }
