/* /signin and /privacy — one Win11 dialog on the landing page's wallpaper, at
   the game's chunky scale (bigger type than the landing's setup dialog).
   Values mirror landing/styles.css and the game's Fluent 2 light tokens. */

@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --accent: #0f6cbd;
  --accent-hover: #115ea3;
  --accent-pressed: #0c3b5e;
  --text: #1a1a1a;
  --text-2: #5c5c5c;
  --surface: #ffffff;
  --footer: #f3f3f3;
  --stroke: rgba(0, 0, 0, 0.0578);
  --stroke-strong: rgba(0, 0, 0, 0.14);
  --error: #c42b1c;
  --radius: 4px;
  --radius-win: 8px;
  --shadow-win: 0 32px 64px rgba(0, 0, 0, 0.28), 0 2px 21px rgba(0, 0, 0, 0.22);
  --font: 'Segoe UI Variable Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #1b3a6b url('/bliss.svg') center / cover no-repeat fixed;
  -webkit-text-size-adjust: 100%;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.window {
  width: min(460px, 100%);
  background: var(--surface);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-win);
  box-shadow: var(--shadow-win);
  overflow: hidden;
}

.window.wide {
  width: min(640px, 100%);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  background: #eef1f6;
  user-select: none;
}

.titlebar-icon {
  width: 16px;
  height: 16px;
}

.titlebar-text {
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.body {
  padding: 28px 32px 20px;
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  gap: 10px;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
}

h2 {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.lede {
  color: var(--text-2);
  margin-bottom: 4px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-weight: 600;
  font-size: 14px;
}

input[type='email'],
input[type='text'] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font: inherit;
  font-size: 17px; /* ≥16px stops iOS zooming on focus */
  color: var(--text);
  background: #fff;
  border: 1px solid var(--stroke-strong);
  border-bottom: 1px solid #8a8a8a;
  border-radius: var(--radius);
  outline: none;
}

input:focus {
  border-bottom: 2px solid var(--accent);
}

input.code {
  height: 56px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 10px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.invite {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #eef4fb;
  border: 1px solid #c7dcf2;
}

.invite-address {
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.note,
.banner {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: #fff4ce;
  border: 1px solid #f2d68a;
  color: #4d3b00;
  font-size: 14px;
}

.status {
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
}

.status[data-state='error'] {
  color: var(--error);
}

.actions {
  display: grid;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--stroke-strong);
  border-bottom-color: rgba(0, 0, 0, 0.24);
  border-radius: var(--radius);
  cursor: pointer;
}

.btn:hover {
  background: #f6f6f6;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-pressed);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.link {
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
  justify-self: start;
}

.link:hover {
  color: var(--accent-hover);
}

.resend {
  font-size: 14px;
  color: var(--text-2);
}

.turnstile {
  min-height: 65px;
}

.footer {
  padding: 14px 32px;
  background: var(--footer);
  border-top: 1px solid var(--stroke);
}

.fine {
  font-size: 13px;
  color: var(--text-2);
}

a {
  color: var(--accent);
}

.btn:focus-visible,
.link:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* /privacy: a readable column. */
.prose {
  display: grid;
  gap: 10px;
}

.prose ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}

@media (max-width: 480px) {
  .body {
    padding: 22px 20px 16px;
  }
  .footer {
    padding: 12px 20px;
  }
  h1 {
    font-size: 24px;
    line-height: 32px;
  }
}
