/* Platform pages: sign-in, sign-up, verify and the rest. One file, no import, no remote font, no inline style anywhere. */
:root { color-scheme: light dark; --fg: #0f172a; --muted: #475569; --bg: #f8fafc; --card: #ffffff; --line: #cbd5e1; --accent: #1d4ed8; --err-bg: #fef2f2; --err-fg: #991b1b; --ok-bg: #f0fdf4; --ok-fg: #166534; }
@media (prefers-color-scheme: dark) {
  :root { --fg: #e2e8f0; --muted: #94a3b8; --bg: #0b1220; --card: #111a2e; --line: #334155; --accent: #60a5fa; --err-bg: #3b1212; --err-fg: #fecaca; --ok-bg: #0f2a1a; --ok-fg: #bbf7d0; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.brand { padding: 16px; font-weight: 700; letter-spacing: .04em; }
.brand a { color: inherit; text-decoration: none; }
main { max-width: 26rem; margin: 8vh auto 0; padding: 24px 16px; }
@media (min-width: 480px) { main { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 32px; } }
h1 { margin: 0 0 16px; font-size: 1.5rem; }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 4px; font-size: .9rem; color: var(--muted); }
.field.check label { display: inline; margin-left: 8px; }
input[type="text"], input[type="email"], input[type="password"] { width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
input[aria-invalid="true"] { border-color: var(--err-fg); }
input:focus-visible, button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { width: 100%; padding: 10px 16px; font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 6px; cursor: pointer; }
a { color: var(--accent); }
.links { margin: 16px 0 0; font-size: .9rem; }
.links a { margin-right: 12px; }
.error, .notice { margin: 0 0 16px; padding: 10px 12px; border-radius: 6px; font-size: .95rem; }
.error { background: var(--err-bg); color: var(--err-fg); }
.notice { background: var(--ok-bg); color: var(--ok-fg); }
.legal { max-width: 26rem; margin: 16px auto; padding: 0 16px; font-size: .85rem; }
.legal a { margin-right: 12px; color: var(--muted); }
/* account and organisation pages */
main.wide { max-width: 44rem; }
main.wide ul, main ul { padding-left: 1.25rem; }
main li { margin: 0 0 12px; }
main li form { display: inline-block; margin: 4px 8px 0 0; }
main li button { width: auto; padding: 6px 12px; }
h2 { margin: 24px 0 8px; font-size: 1.1rem; }
select { padding: 8px 10px; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* the "Send again" button of the sign-in link page shows after 60 seconds, without a script (the server also holds a second mail back for 60 seconds) */
form.resend { visibility: hidden; animation: resend-show 0s linear 60s forwards; }
@keyframes resend-show { to { visibility: visible; } }
