/* Roles of colour, as in app.css; the dark set follows the theme the person chose in the panel. */
:root {
  --canvas: #eef0eb; --paper: #fafbf8; --ink: #17201d; --muted: #5d6762; --green: #155947; --on-accent: white;
  --raised: white; --line: #d6ded5; --line-field: #aebeb2; --focus: #619b87; --bad: #92351e;
  color-scheme: light; font-family: "Segoe UI", -apple-system, Arial, sans-serif; color: var(--ink); background: var(--canvas);
}
:root[data-theme="dark"] {
  --canvas: #0e1215; --paper: #151b1f; --ink: #f1f5f2; --muted: #949f99; --green: #2fb886; --on-accent: #0e1215;
  --raised: #1b2328; --line: #273036; --line-field: #3b4852; --focus: #7fb2f0; --bad: #f08a78;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px)); min-height: 100dvh; display: grid; place-items: center; }
main { width: min(100%, 400px); padding: 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
header { display: flex; gap: 10px; align-items: center; }
.mark { display: grid; place-items: center; width: 38px; height: 42px; padding-bottom: 5px; border-radius: 11px; background: var(--green); color: var(--on-accent); font-weight: 800; font-size: 31px; }
header strong { display: block; font-size: 24px; letter-spacing: -1.1px; line-height: 1; }
header small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
h1 { margin: 30px 0 0; font-size: 22px; line-height: 1.3; letter-spacing: -.4px; font-weight: 650; text-wrap: balance; }
form { margin-top: 20px; }
label { display: block; margin-top: 16px; font-size: 13px; font-weight: 650; color: var(--muted); }
input { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line-field); border-radius: 8px; background: var(--raised); font: inherit; font-size: 16px; color: var(--ink); }
button { width: 100%; min-height: 46px; margin-top: 6px; padding: 12px; border: 0; border-radius: 8px; background: var(--green); color: var(--on-accent); font: inherit; font-weight: 650; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#login-status { min-height: 20px; margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--bad); }
noscript, footer { display: block; margin-top: 22px; font-size: 12px; line-height: 1.5; color: var(--muted); }
@media (max-width: 360px) { main { padding: 22px; } h1 { font-size: 20px; } }
