/* Sign-in page: the site's colours and fonts, without the rest of its stylesheet. From Ancora's (ancora-next, app/public/login.css), without the logo. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); }
:root { color-scheme: light; --bg: #f3f5f8; --surface: #fff; --line: #d6dde5; --ink: #15202b; --ink-3: #6f7d8b; --accent: #1a63a8; --accent-ink: #fff; --warn: #b15c00; }
/* Dark when the system asks for it, unless the person chose light (data-theme, set by first-paint.js); dark when they chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0d1318; --surface: #141c23; --line: #2a3640; --ink: #e5ecf2; --ink-3: #7f8d9a; --accent: #5ea6ea; --accent-ink: #08131d; --warn: #f0a24a; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #0d1318; --surface: #141c23; --line: #2a3640; --ink: #e5ecf2; --ink-3: #7f8d9a; --accent: #5ea6ea; --accent-ink: #08131d; --warn: #f0a24a; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: var(--bg); color: var(--ink);
       font: 14px/1.45 "IBM Plex Sans", system-ui, sans-serif; padding: 16px; }
.login { width: min(380px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px;
         display: flex; flex-direction: column; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
h1 { margin: 0; font-size: 22px; font-weight: 600; }
form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 4px; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input:not([type]), input[type="password"] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
       background: var(--bg); color: var(--ink); }
button { font: inherit; font-weight: 600; padding: 9px; border: 0; border-radius: 6px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.message { margin: 0; color: var(--warn); }
.note { margin: 0; font-size: 12px; color: var(--ink-3); }
