/* The sign-in page and the sign-out button (gate.ts). A file of its own because it is served
   signed out, and the site's stylesheet is not. Same in b/ and origin/. */
:root { --gate-bg: #f4f1ea; --gate-card: #fffdf8; --gate-ink: #1d1b16; --gate-muted: #6b6558; --gate-rule: #cfc8b8; --gate-accent: #8a3b12; }
@media (prefers-color-scheme: dark) {
  :root { --gate-bg: #16150f; --gate-card: #1f1d16; --gate-ink: #ece7da; --gate-muted: #a39c8a; --gate-rule: #3b382d; --gate-accent: #e0935f; }
}
body.gate { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 16px; box-sizing: border-box;
  background: var(--gate-bg); color: var(--gate-ink); font: 16px/1.5 system-ui, sans-serif; }
.gate-card { width: 100%; max-width: 24rem; box-sizing: border-box; padding: 1.75rem; background: var(--gate-card);
  border: 1px solid var(--gate-rule); border-radius: 8px; }
.gate-card h1 { margin: 0 0 1rem; font-size: 1.4rem; line-height: 1.25; text-wrap: balance; }
.gate-eyebrow { margin: 0 0 .25rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gate-muted); }
.gate-msg { margin: 0 0 1rem; padding: .4rem .8rem; border-left: 4px solid var(--gate-accent); }
.gate-form { display: grid; gap: .5rem; }
.gate-form label { font-size: .875rem; color: var(--gate-muted); }
.gate-form input { padding: .5rem .7rem; font: inherit; color: var(--gate-ink); background: var(--gate-bg);
  border: 1px solid var(--gate-rule); border-radius: 4px; }
.gate-form button { justify-self: start; margin-top: .5rem; padding: .5rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
  color: var(--gate-card); background: var(--gate-accent); border: 0; border-radius: 4px; }
.gate-form input:focus-visible, .gate-form button:focus-visible, .signout button:focus-visible { outline: 2px solid var(--gate-accent); outline-offset: 2px; }

.signout { margin: 0; }
.signout button { padding: .3rem .7rem; font: inherit; font-size: .8rem; cursor: pointer; color: inherit; background: none;
  border: 1px solid currentColor; border-radius: 4px; opacity: .7; }
.signout button:hover { opacity: 1; }
