/* Join and host sign-in pages (public, no app JS). Same palette and type as the app (style.css). */
:root { --bg: #f3eee3; --surface: #fbf8f1; --ink: #2a251e; --muted: #6f6556; --line: #d6cbb5; --accent: #8a2c2c; --accent-ink: #fff8ee;
        --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1814; --surface: #24211b; --ink: #ebe3d2; --muted: #a99d88; --line: #3d372d; --accent: #c0574a; --accent-ink: #1a1814; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 15px; line-height: 1.45; min-height: 100vh; display: grid; place-items: center; padding: 16px;
       background: var(--bg); color: var(--ink); font-family: var(--sans); }
main { max-width: 22rem; width: 100%; background: var(--surface); border: 1px solid var(--line);
       border-radius: 10px; padding: 28px 24px; box-shadow: 0 6px 24px rgb(0 0 0 / .08); }
h1 { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; letter-spacing: .04em; margin: 0 0 16px; color: var(--accent); text-align: center; }
label { display: block; font-size: 0.9rem; color: var(--muted); margin: 12px 0 6px; }
input { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
        background: var(--bg); color: var(--ink); }
#code { text-transform: uppercase; letter-spacing: 0.15em; font-family: ui-monospace, Menlo, monospace; }
button { margin-top: 16px; width: 100%; font: inherit; font-weight: 600; padding: 9px; border: 0; border-radius: 6px;
         background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button:disabled { opacity: 0.6; cursor: default; }
.error { margin: 12px 0 0; color: var(--accent); font-weight: 600; }
.note { margin: 12px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.small { margin: 18px 0 0; text-align: center; font-size: 0.85rem; }
a { color: var(--muted); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:hover:not(:disabled) { filter: brightness(1.08); }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.85em; background: var(--bg); border: 1px solid var(--line);
       border-radius: 4px; padding: 0 0.3em; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (pointer: coarse) {
  input { font-size: max(16px, 1em); min-height: 44px; }
  button { min-height: 44px; }
  a { display: inline-block; padding: 10px 4px; }
}
