/* Sign-in page (docs/SIGNIN_PAGE_PLAN.md): abe's Option A "Card", in the landing page's tokens (css/landing.css). */
:root {
  --bg: #f4f5f2; --ink: #0d120e; --ink-2: #3b423c; --muted: #5b635c;
  --rule: #d6d9d2; --rule-3: #e6e8e3; --band: #e9ece6;
  --acc: #9fe870; --acc-ink: #163300; --red: #b91c1c; --paper: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.si-top { height: 60px; padding: 0 clamp(16px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; }
.si-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; text-decoration: none; }
.si-back { font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.si-back:hover { color: var(--ink); }

.si-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 16px 72px; }
.si-card { width: 100%; max-width: 448px; background: var(--paper); border: 1px solid var(--rule-3); border-radius: 12px;
  padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.si-card h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; text-align: center; }
.si-form { display: flex; flex-direction: column; gap: 14px; }

.si-seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--band); border-radius: 8px; }
.si-seg button { height: 36px; border: 0; border-radius: 6px; background: transparent; font-family: inherit; font-weight: 600;
  font-size: 14px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.si-seg button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(13, 18, 14, .12); }

.si-google { position: relative; height: 48px; width: 100%; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper);
  font-family: inherit; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px; transition: border-color .15s; }
.si-google:hover:not(:disabled) { border-color: var(--ink); }
.si-google.is-returning { color: var(--ink) !important; }
.si-google.is-returning > :not(.ui-spin) { visibility: visible; }
.si-google.is-returning > .ui-spin { position: static; margin: 0; }

.si-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.si-or span { flex: 1; height: 1px; background: var(--rule); }

.si-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.si-row { display: flex; justify-content: space-between; align-items: baseline; }
.si-forgot { border: 0; background: none; padding: 0; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--muted);
  text-decoration: underline; cursor: pointer; }
.si-forgot:hover { color: var(--ink); }
.si-field input { height: 46px; width: 100%; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper);
  padding: 0 14px; font-family: inherit; font-size: 16px; color: var(--ink); }
.si-field input:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }

.si-submit { position: relative; height: 50px; width: 100%; margin-top: 4px; border: 0; border-radius: 6px; background: var(--acc);
  color: var(--acc-ink); font-family: inherit; font-weight: 600; font-size: 16px; cursor: pointer; transition: transform .12s, filter .15s; }
.si-submit:hover:not(:disabled) { filter: brightness(.96); }
.si-submit:active { transform: translateY(1px); }

.si-note { margin: 0; font-size: 13px; color: var(--ink-2); }
.si-agree { text-align: center; }
.err { margin-top: 6px; font-size: 13px; color: var(--red); overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .si-card { padding: 28px 20px; }
  .si-card h1 { font-size: 28px; }
  .si-main { align-items: flex-start; padding-top: 16px; }
}
