/* Sign-in surfaces. Shares the dashboard's tokens so the two do not read as
   different products, but stands alone: a stranger who cannot sign in must
   never be waiting on the dashboard's stylesheet to load. */
:root {
  --bg: #0d0f10;
  --panel: #15181a;
  --ink: #e8ecea;
  --ink-dim: #a4aeaa;
  --ink-faint: #79867f;
  --line: #242a2c;
  --accent: #4ec9a0;
  --bad: #e0715f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 26rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.mark { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: .02em; }
.sub { margin: 0 0 22px; color: var(--ink-faint); font-size: .85rem; }
label { display: block; margin-bottom: 14px; }
label span { display: block; margin-bottom: 5px; color: var(--ink-dim); font-size: .8rem; }
input {
  width: 100%;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #07120e;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
.msg { margin-top: 16px; min-height: 1.2em; font-size: .85rem; color: var(--bad); }
.notice {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  color: var(--ink-dim);
  font-size: .82rem;
}
.notice b { color: var(--ink); font-weight: 600; }
[hidden] { display: none !important; }
/* A spent invitation shows the reason and nothing else. Leaving the form up
   would invite someone to fill it in and be refused by the server. */
[data-state="spent"] { display: none; }

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7f6; --panel: #fff; --ink: #1b1f1d; --ink-dim: #4a534e;
    --ink-faint: #66707c; --line: #e0e4e2; --accent: #1f7a5c;
  }
  button { color: #fff; }
}
