:root {
  color-scheme: dark;
  --bg: #15171c;
  --panel: #1f2229;
  --border: #2d313b;
  --text: #e7e9ee;
  --muted: #9aa1ad;
  --accent: #5b8cff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#login-view, #role-view, #session-view {
  max-width: 360px;
  width: 100%;
  text-align: center;
}

h1 { font-size: 17px; font-weight: 600; margin: 0 0 20px; }

input, button {
  font: inherit;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

input { width: 100%; margin-bottom: 10px; }

button {
  cursor: pointer;
  width: 100%;
  margin-bottom: 8px;
}

button:not(:disabled):hover { border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }

#login-error, #role-error { color: #ff6b6b; font-size: 13px; min-height: 18px; }

#status { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.hint { margin-top: 16px; font-size: 12px; color: var(--muted); }
.hint a { color: var(--accent); }
