:root {
  color-scheme: dark;
  --background: #000;
  --surface: #121315;
  --ink: #f5f5f5;
  --muted: #a9aaae;
  --line: #343539;
  --green: #ff9a57;
  --green-ink: #17100b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.5 system-ui, sans-serif;
}
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #ffb787;
  outline-offset: 3px;
}
.auth-page {
  min-height: 100svh;
  width: min(100%, 476px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #000;
  color: white;
  font-size: 25px;
  letter-spacing: -2px;
}
.brand-mark span { color: #d4f3b7; }
.auth-entry .auth-page {
  width: min(100%, 1160px);
  padding: 40px 32px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: 70px;
  align-items: center;
  min-height: calc(100svh - 190px);
}
.auth-intro h2 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.08;
  max-width: 9ch;
  margin: 0 0 28px;
}
.auth-intro > p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.language-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 36px;
  max-width: 30ch;
  color: var(--green);
  font-size: 16px;
}
.auth-entry .auth-card {
  margin-top: 0;
}
.auth-entry .eyebrow {
  display: none;
}
@media (max-width: 760px) {
  .auth-entry .auth-page { padding: 24px 20px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; min-height: auto; }
  .auth-intro { margin-top: 40px; }
  .auth-intro h2 { font-size: 38px; max-width: 14ch; margin-bottom: 16px; }
  .auth-intro > p { font-size: 16px; }
  .language-cloud { display: none; }
}
.auth-card {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
h1, p { margin: 0; }
h1 { font-size: clamp(26px, 7vw, 32px); line-height: 1.2; letter-spacing: -.025em; }
.eyebrow { margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.intro { margin-top: 14px; color: var(--muted); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin: 24px 0; background: var(--background); border-radius: 12px; }
.auth-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.auth-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: inset 0 -2px var(--green); font-weight: 650; }
label { display: block; margin: 18px 0 7px; font-size: 14px; font-weight: 600; }
input { width: 100%; min-width: 0; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--ink); background: var(--background); }
.password-field { display: flex; gap: 8px; }
.password-field input { flex: 1; }
.password-field button { border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--surface); color: var(--muted); font-size: 12px; }
.field-help { margin-top: 7px; color: var(--muted); font-size: 12px; }
.primary, .secondary { width: 100%; min-height: 50px; border-radius: 12px; padding: 12px 15px; font-weight: 650; }
.primary { border: 1px solid var(--green); background: var(--green); color: var(--green-ink); }
.secondary { margin-top: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.link-button { display: block; margin-top: 24px; text-align: center; }
.message { min-height: 24px; margin: 14px 0; font-size: 14px; overflow-wrap: anywhere; }
.message[data-error="true"] { color: #ffaca5; }
.private-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-note { margin-top: 22px; color: var(--muted); text-align: center; font-size: 12px; }
.invite-list { padding: 0; list-style: none; }
.invite-list li { padding: 16px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#invite-form .primary { margin-top: 16px; }
#created-code { font-family: ui-monospace, monospace; font-size: 14px; }
@media (max-width: 380px) {
  .auth-page { padding-left: 14px; padding-right: 14px; }
  .auth-card { padding: 20px; }
}
