/* Shared mobile-first styles. Status colour tokens match spec §6 exactly —
   future screens (member list, filters, badges) should reuse these
   variables rather than hardcoding colours again. */

:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #1a1a1e;
  --text-muted: #6b6b74;
  --border: #e3e3e7;
  --accent: #2f6fed;

  --status-active: #1e9e5a;
  --status-due-soon: #c98a00;
  --status-overdue: #d9622b;
  --status-kick: #d13b3b;
  --status-cancelled: #8a8a92;
  --status-missing-id: #7b3fd1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17171b;
    --surface: #232328;
    --text: #f0f0f2;
    --text-muted: #a1a1aa;
    --border: #35353c;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

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

.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 14px 0 6px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

button {
  width: 100%;
  padding: 13px 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 18px;
  cursor: pointer;
}

button:active {
  opacity: 0.85;
}

.error {
  background: #fdecea;
  color: #a3271e;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.top-bar a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
}

.badge-active { background: var(--status-active); }
.badge-due-soon { background: var(--status-due-soon); }
.badge-overdue { background: var(--status-overdue); }
.badge-kick { background: var(--status-kick); }
.badge-cancelled { background: var(--status-cancelled); }
.badge-missing-id { background: var(--status-missing-id); }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 12px;
  font-size: 0.9rem;
}
