/* Standalone account pages (W18, 2026-09-24): the portal sign-ins (/org/login, /reseller/login, /admin/login),
   /invite/{token} and /reseller/agreement/{token}. Loaded after tokens.css. The markup of those pages was kept
   as it was (same forms, same field names); only their inline light-only styles were replaced by these rules,
   so they follow the design tokens in light and dark. */

@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
    src: url("/fonts/archivo-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
    src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
body.standalone { margin: 0; min-height: 100vh; font-family: var(--font-sans); font-size: 16px; line-height: 25px; color: var(--ink);
    background: var(--ground); background-color: var(--paper); -webkit-font-smoothing: antialiased; caret-color: var(--accent);
    display: flex; flex-direction: column; align-items: center; padding: 10vh 16px 48px; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-sunken); padding: 0 4px; border-radius: var(--radius-xs); }

.brand-lockup { display: block; margin: 0 auto 24px; }
.brand-lockup img { height: 28px; width: auto; display: block; }
.brand-lockup .brand-wordmark { display: block; text-align: center; font-weight: 760; font-stretch: 112%; font-size: 22px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand-lockup:has(.brand-wordmark) { text-decoration: none; }
/* 1.3.6: dark is the default theme - the reverse lockup shows unless the visitor chose light. */
.logo-light { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }
[data-theme="light"] .logo-dark { display: none !important; }
::selection { background: var(--accent-soft); color: var(--ink); }

body.standalone .card { width: 100%; max-width: 420px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 36px 32px 32px; box-shadow: var(--shadow-panel); }
body.standalone .card h1 { font-size: 28px; line-height: 34px; font-weight: 760; font-stretch: 112%; letter-spacing: -.02em; margin: 0 0 8px; }
body.standalone .card p.sub, body.standalone .muted { color: var(--ink-muted); font-size: 14px; line-height: 22px; margin: 0 0 20px; }
body.standalone label { display: block; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); margin: 14px 0 4px; }
body.standalone input[type=text], body.standalone input[type=email], body.standalone input[type=password], body.standalone input:not([type]) {
    width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; color: var(--ink); background: var(--surface-sunken); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
/* W128 C-S: the content / marketplace forms also use selects, text areas and a file input. */
body.standalone textarea, body.standalone select, body.standalone input[type=file] {
    width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; color: var(--ink); background: var(--surface-sunken); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); }
body.standalone input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
body.standalone button { margin-top: 18px; width: 100%; height: 44px; padding: 0 16px; font: inherit; font-size: 15px; font-weight: 600; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); border-radius: var(--radius-sm); cursor: pointer; transition: background-color 160ms ease-out, border-color 160ms ease-out; }
body.standalone button:hover { box-shadow: inset 0 0 0 100px rgba(255,255,255,0.12); }
body.standalone button.secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); margin-top: 10px; font-weight: 500; }
body.standalone button.secondary:hover { background: var(--surface-sunken); box-shadow: none; }
body.standalone .err { background: var(--danger-soft); color: var(--ink); border-left: 3px solid var(--danger); padding: 10px 12px; border-radius: var(--radius-xs); font-size: 13px; line-height: 20px; margin: 12px 0; }
body.standalone .ok { background: var(--success-soft); color: var(--ink); border-left: 3px solid var(--success); padding: 10px 12px; border-radius: var(--radius-xs); font-size: 14px; line-height: 22px; margin-bottom: 12px; }
body.standalone .code { letter-spacing: 6px; font-size: 20px; text-align: center; font-family: var(--font-mono); }
body.standalone hr.sep { border: 0; border-top: 1px solid var(--line); margin: 20px 0 4px; }
body.standalone p.alt { text-align: center; font-size: 13px; margin: 14px 0 0; color: var(--ink-muted); }
body.standalone p.alt a { text-decoration: none; }
body.standalone p.alt a:hover { text-decoration: underline; }
body.standalone .note { font-size: 12px; line-height: 18px; color: var(--ink-muted); margin: 4px 0 0; }
body.standalone .note-warn { color: var(--ink); background: var(--warning-soft); border-left: 3px solid var(--warning); border-radius: var(--radius-xs); padding: 8px 10px; margin-top: 10px; }

/* The reseller agreement: a long document to read, print and sign. */
body.standalone.document { display: block; padding: 32px 16px 64px; }
body.document .wrap { max-width: 860px; margin: 0 auto; }
body.document .brand { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-muted); margin-bottom: 24px; }
body.document .banner { background: var(--warning-soft); border-left: 3px solid var(--warning); color: var(--ink); padding: 14px 16px; border-radius: var(--radius-xs); font-size: 14px; margin-bottom: 20px; }
body.document .doc, body.document .sign { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 40px 44px; }
body.document .sign { margin-top: 24px; padding: 32px 44px; }
body.document .doc h2 { font-size: 22px; line-height: 28px; margin: 0 0 8px; }
body.document .doc h3 { font-size: 17px; margin: 28px 0 8px; }
body.document .doc h4 { font-size: 15px; margin: 20px 0 6px; }
body.document .doc p, body.document .doc li { line-height: 1.6; margin: 8px 0; font-size: 14.5px; }
body.document .doc hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
body.document .sign h3 { margin: 0 0 4px; font-size: 18px; }
body.document .fingerprint { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); word-break: break-all; }
body.document .tick { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 400; }
body.document .tick input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--accent); }
body.document button { width: auto; padding: 0 26px; }
body.document .record { font-size: 13px; color: var(--ink); border-collapse: collapse; }
body.document .record td { padding: 3px 16px 3px 0; vertical-align: top; }
body.document .record td.k { color: var(--ink-muted); }
@media (max-width: 640px) { body.document .doc, body.document .sign { padding: 24px 18px; } }
@media print {
    body.standalone.document { background: #fff; padding: 0; }
    body.document .sign, body.document .banner, body.document .brand { display: none; }
    body.document .doc { border: 0; padding: 0; }
}
