/* Login page (2026-11-20 redesign). The same colours and type as the
   signed-in app shell (shell-v2.css), repeated here because that file only
   styles pages inside the shell. Muted text is one shade darker than the
   shell's #787774 so 13-14px text passes WCAG AA on white. */
:root {
    --si-canvas: #FBFBFA;
    --si-card: #FFFFFF;
    --si-border: #EAEAEA;
    --si-border-hover: #D3D1CB;
    --si-hover: #F1F1EF;
    --si-ink: #111111;
    --si-ink-soft: #2F3437;
    --si-muted: #6E6D69;
    --si-red: #9F2F2D;
    --si-pale-red: #FDEBEC;
    --si-sans: 'SF Pro Display', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
    --si-serif: 'Newsreader', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

.si-body { min-height: 100vh; background: var(--si-canvas); color: var(--si-ink-soft); font-family: var(--si-sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.si-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.si-card { width: 100%; max-width: 400px; background: var(--si-card); border: 1px solid var(--si-border); border-radius: 12px; padding: 32px; }

.si-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.si-wordmark { display: block; width: 150px; height: auto; }
.si-app { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--si-muted); border: 1px solid var(--si-border); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

.si-title { font-family: var(--si-serif); font-weight: 500; font-size: 28px; line-height: 1.2; color: var(--si-ink); margin: 28px 0 20px; }
.si-notice { background: var(--si-pale-red); color: var(--si-red); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; }

.si-field { margin-bottom: 16px; }
.si-field label { display: block; font-size: 14px; font-weight: 600; color: var(--si-ink); margin-bottom: 6px; }
.si-input { width: 100%; height: 40px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--si-ink); background: var(--si-card); border: 1px solid var(--si-border); border-radius: 8px; }
.si-input:hover { border-color: var(--si-border-hover); }
.si-input:focus { outline: 2px solid var(--si-ink); outline-offset: 0; border-color: var(--si-ink); }
.si-input[aria-invalid="true"] { border-color: var(--si-red); }
.si-error { margin: 6px 0 0; font-size: 13px; color: var(--si-red); }

.si-password { position: relative; }
.si-password .si-input { padding-right: 68px; }
.si-reveal { position: absolute; top: 4px; right: 4px; height: 32px; padding: 0 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--si-ink-soft); background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.si-reveal:hover { background: var(--si-hover); }
.si-reveal:focus-visible { outline: 2px solid var(--si-ink); outline-offset: 0; }

.si-submit { width: 100%; height: 44px; margin-top: 8px; font: inherit; font-size: 15px; font-weight: 600; color: #FFFFFF; background: var(--si-ink); border: 1px solid var(--si-ink); border-radius: 8px; cursor: pointer; }
.si-submit:hover { background: var(--si-ink-soft); border-color: var(--si-ink-soft); }
.si-submit:focus-visible { outline: 2px solid var(--si-ink); outline-offset: 2px; }
.si-submit:disabled { cursor: progress; background: var(--si-ink-soft); border-color: var(--si-ink-soft); }

.si-help { margin: 16px 0 0; font-size: 14px; color: var(--si-muted); }
.si-other { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--si-border); font-size: 14px; color: var(--si-muted); }
.si-other a { color: var(--si-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 479px) {
    .si-page { align-items: flex-start; padding: 24px 16px; }
    .si-card { padding: 24px 20px; }
    .si-title { margin-top: 24px; }
}
