/* The sign-in page, in the app's own tokens (Theme.swift, light and dark). */
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #F5F0E8; --surface: #FCFAF5; --hairline: #E2D9CB; --control: #8A8276;
  --text: #26231E; --text2: #4A453D; --faint: #6E675C;
  --accent: #4A6E56; --accent-soft: rgba(74, 110, 86, 0.09); --on-accent: #FCFAF5;
  --warning: #7E5C1C; --warning-soft: rgba(126, 92, 28, 0.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #15130F; --surface: #1F1C17; --hairline: #34302A; --control: #7A7266;
    --text: #EFE9DF; --text2: #CBC3B6; --faint: #938B7F;
    --accent: #9BBFA6; --accent-soft: rgba(155, 191, 166, 0.12); --on-accent: #15130F;
    --warning: #D8AF63; --warning-soft: rgba(216, 175, 99, 0.10);
  }
}
* { box-sizing: border-box; margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font-family: "Plex Sans", -apple-system, system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.gate__card { width: 100%; max-width: 400px; }
.gate__brand { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 40px; }
.gate__mark { width: 30px; height: 10px; }
.gate__mark path { stroke: var(--accent); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.gate__title { font-size: 30px; font-weight: 300; line-height: 1.2; }
.gate__lede { margin-top: 8px; color: var(--text2); font-size: 14px; }
.gate__alert { margin-top: 20px; padding: 12px 14px; border-radius: 10px; background: var(--warning-soft); border: 1px solid var(--warning); color: var(--text); font-size: 14px; }
.gate__form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.gate__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.gate__field input { height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--control); background: var(--surface); color: var(--text); font: inherit; font-weight: 400; }
.gate__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 1px var(--accent); }
.gate__submit { margin-top: 8px; height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 500; cursor: pointer; }
.gate__submit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate__note { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--faint); }
