/* LastStop redesign: signed-out page styles (stage 4: sign-in, set password, change password, the root chooser, the
   switched-off page, public/404.html). dock4's sign-in card: JCruz the dark statement screen with the red glow (never
   orange), Kept Staffed the light one in its own colors. Role tokens only (tokens.css + the company's brandStyle); the older
   stylesheet's page-auth / chooser frame is replaced here for body.ls-signed-out. */

body.ls-signed-out { min-height: 100vh; min-height: 100dvh; margin: 0; padding: 0; overflow-x: hidden; background-color: var(--bg); color: var(--ink); }
html[data-theme="dark"] body.ls-signed-out { background: radial-gradient(760px 460px at 50% 32%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), radial-gradient(700px 420px at 100% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%), var(--bg); }
html[data-theme="light"] body.ls-signed-out, body.ls-signed-out:not(html[data-theme] *) { background: radial-gradient(900px 520px at 8% 0%, var(--bg-glow), transparent 70%), radial-gradient(700px 480px at 100% 100%, color-mix(in srgb, var(--heading) 10%, transparent), transparent 70%), var(--bg); }

.ls-auth, .ls-auth *, .ls-auth *::before, .ls-auth *::after { box-sizing: border-box; }
.ls-auth { overflow-x: clip; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: calc(24px + var(--sat)) 16px calc(32px + var(--sab)); }
.auth-card { position: relative; width: min(100%, 400px); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; border-radius: var(--r-4); background: var(--surface); border: 1px solid var(--line); animation: ls-pop var(--t-slow) var(--ease); }
/* J328: Privacy, Terms and Support under the sign-in card (src/pages/login.mjs legalLinksHtml) */
.auth-legal-foot { margin-top: 16px; font-size: 13px; color: var(--muted); text-align: center; }
.auth-legal-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; padding: 8px 2px; }
html[data-theme="light"] .auth-card, body.ls-signed-out:not(html[data-theme] *) .auth-card { border-color: transparent; box-shadow: var(--shadow); }
html[data-theme="dark"] .auth-card { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }
/* the red glow behind the dark card (the statement screen) */
html[data-theme="dark"] .auth-card::before { content: ""; position: absolute; inset: -90px -130px auto; height: 280px; background: radial-gradient(closest-side, var(--accent-glow), color-mix(in srgb, var(--accent) 12%, transparent) 55%, transparent 100%); opacity: .4; pointer-events: none; z-index: -1; }
@media (min-width: 760px) { .auth-card { padding: 36px 32px; } }

/* the wordmark: the logo or the accent dot, then the platform name the company's people see */
.auth-wordmark { margin: 0 0 6px; display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; color: var(--heading); }
.auth-wordmark .dot, .notice-card > .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 12px var(--accent-glow); }
html[data-theme="dark"] .auth-wordmark .dot { box-shadow: 0 0 14px var(--accent); }
.auth-wordmark .company-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; flex: none; }

.auth-form-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; color: var(--heading); }
.auth-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.auth-lead b { color: var(--heading); }

/* fields */
.auth-card .field { display: flex; flex-direction: column; gap: 6px; }
.auth-card .field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auth-card .pw-toggle { color: var(--accent-text); font-family: var(--font-head); font-weight: 600; font-size: 13px; background: none; border: 0; cursor: pointer; min-height: 28px; padding: 0 8px; border-radius: var(--r-1); }
.auth-card .pw-toggle:hover { background: var(--accent-soft); }
.auth-card .pw-toggle[hidden] { display: none; }
.auth-card .field-hint { display: flex; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); margin: 0; }
.auth-card .field-hint.is-ok { color: var(--ok); }
.auth-card .field-hint.is-bad { color: var(--bad); }

/* the notice and the error slots */
.auth-card .form-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border-radius: var(--r-2); background: var(--ok-soft); color: var(--ok); border: 0; font-size: 14px; line-height: 1.45; }
.auth-card .form-notice.is-plain { background: var(--surface-2); color: var(--ink-2); }
.auth-card .form-notice .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: inherit; }
.auth-card .form-error { margin: 0; padding: 10px 12px; border-radius: var(--r-2); background: var(--bad-soft); color: var(--bad); font-size: 14px; line-height: 1.45; }
.auth-card .form-notice[hidden], .auth-card .form-error[hidden] { display: none; }

/* Sign in beside Forgot password; the forgot note; the switch to another company */
.auth-btns { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.auth-btns .btn-primary { padding: 0 24px; }
.link-btn.auth-forgot, .auth-card .auth-links .link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: none; border: 0; color: var(--accent-text); font-family: var(--font-head); font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; }
.link-btn.auth-forgot:hover, .auth-card .auth-links .link-btn:hover { background: var(--accent-soft); }
.auth-card .auth-links .icon { width: 16px; height: 16px; }
.auth-card .auth-note { margin: 0; padding: 10px 12px; border-radius: var(--r-2); background: var(--surface-2); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.auth-card .auth-note[hidden] { display: none; }
/* J766: the Forgot password box (a sentence, the Email me a reset link button, the ask-an-admin line) */
.auth-card .auth-note p { margin: 0 0 8px; }
.auth-card .auth-note .auth-forgot-send { min-height: 44px; margin: 0 0 8px; }
.auth-card .auth-note .auth-forgot-send[hidden] { display: none; }
.auth-card .auth-note .auth-note-small { margin: 0; font-size: 13px; color: var(--ink-3, var(--ink-2)); }
.auth-switch-line { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-switch-line a.auth-switch { display: inline; min-height: 0; color: var(--accent-text); font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.auth-switch-line a.auth-switch:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-card .btn.is-block { width: 100%; }
.auth-card .auth-submit .icon { width: 18px; height: 18px; }

/* the root chooser: the companies as rows in their own marks */
.chooser-card { width: min(100%, 460px); }
.chooser-title { font-size: 24px; }
.chooser-card .company-list { display: flex; flex-direction: column; gap: 8px; }
.chooser-card .company-card { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 14px; border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.chooser-card .company-card:hover { border-color: var(--accent); background: var(--surface); }
.chooser-card .company-card:active { transform: translateY(1px); }
.chooser-card .card-mark { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.chooser-card .card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chooser-card .card-name { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; line-height: 1.2; color: var(--heading); }
.chooser-card .card-sub { font-size: 13px; color: var(--muted); }
.chooser-card .chev { width: 18px; height: 18px; color: var(--muted); flex: none; }
.chooser-card .chooser-empty { margin: 0; color: var(--ink-2); }
.chooser-card .chooser-foot { font-size: 13px; }

/* the switched-off page and the static 404 */
.notice-card { align-items: flex-start; }
.notice-card .notice-icon { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--neu-soft); color: var(--ink-2); flex: none; }
.notice-card .notice-icon .icon { width: 22px; height: 22px; }

/* the must-change interstitial inside the frame (src/pages/shell.mjs panesMustChange) reads as the same card */
