:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --card: #1a1d24;
  --text: #e8eaed;
  --muted: #9aa1ac;
  --accent: #4f8cff;
  --accent-text: #ffffff;
  --error: #ff6b6b;
  --notice: #4fd18c;
  --border: #2a2e37;
}

* { box-sizing: border-box; }

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
}

h1 { font-size: 1.3rem; margin: 0 0 8px; }

label { display: block; font-size: 0.85rem; margin: 16px 0 6px; color: var(--muted); }
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #11141a;
  color: var(--text);
  font-size: 1rem;
}

button[type="submit"] {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
button[type="submit"]:hover { opacity: 0.9; }

.error { color: var(--error); font-size: 0.9rem; }
.notice { color: var(--notice); font-size: 0.9rem; }
.recaptcha-box { margin-top: 16px; }

/* Debug: the IP that would be allowlisted. Same colour as the card so it is
   only readable by selecting the text. */
.debug-ip {
  margin: 16px 0 0;
  font-size: 0.75rem;
  color: var(--card);
  user-select: all;
}
.debug-ip::selection { background: var(--text); color: var(--card); }
