/* P8 login page. Same tokens as studio.css (the Studio stylesheet is not served before login). */
:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --surface: #fcfcfb;
  --ink: #161614;
  --ink-2: #52514e;
  --ink-3: #8a8983;
  --line: #e2e1dc;
  --accent: #2a78d6;
  --bad: #b3261e;
}
* { box-sizing: border-box; }
/* S1 F1: "form { display: flex }" must not override the hidden attribute */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 system-ui, "Microsoft YaHei", sans-serif; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
.top { display: flex; align-items: center; padding: 0.55rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.45rem; }
.brand .mark { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); }
.brand .sub { color: var(--ink-3); font-size: 0.8rem; }
.wrap { display: flex; justify-content: center; padding: 2.5rem 1rem; }
.card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem 1.4rem; }
h1 { font-size: 1.15rem; margin: 0 0 0.9rem; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs button { flex: 1; border: 0; background: none; padding: 0.5rem 0; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
form { display: flex; flex-direction: column; gap: 0.75rem; }
label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--ink-2); }
input { font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[name="invite"], input[name="code"] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.03em; }
small { color: var(--ink-3); font-size: 0.75rem; }
.primary { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 0.6rem 1.1rem; font-weight: 600; }
.hint { color: var(--ink-3); font-size: 0.8rem; margin: 0; }
.link { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; font-size: inherit; }
.switched { background: #e8f1fc; border: 1px solid #b8d3f4; color: #1b4f8f; border-radius: 8px; padding: 0.5rem 0.7rem; font-size: 0.85rem; margin: 0 0 0.8rem; }
.msg { color: var(--bad); font-size: 0.85rem; margin: 0; min-height: 1.2em; }
.msg:empty { display: none; }
