/* RGRide — shared minimal stylesheet. Small friend-group tool, not a
   public product: functional and legible on a phone screen, nothing more. */

:root {
  color-scheme: dark;
  --bg: #12151a;
  --panel: #1b1f27;
  --border: #2c313c;
  --text: #e8eaed;
  --muted: #8a93a3;
  --accent: #4da3ff;
  --danger: #ff6b6b;
  --ok: #4dd68c;
}

* { box-sizing: border-box; }

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

main {
  max-width: 28rem;
  margin: 0 auto;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  margin-bottom: 1rem;
}

button {
  display: inline-block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  background: var(--accent);
  color: #08111c;
  cursor: pointer;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

button.danger {
  background: var(--danger);
  color: #2a0808;
}

button + button { margin-top: 0.6rem; }

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-badge.active { background: rgba(77, 214, 140, 0.15); color: var(--ok); }
.status-badge.inactive { background: rgba(138, 147, 163, 0.15); color: var(--muted); }

.code-display {
  font-size: 2.5rem;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-align: center;
  margin: 0.75rem 0;
}

.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.qr-wrap img {
  width: 220px;
  height: 220px;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem;
}

.qr-countdown {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

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

.actions-row {
  display: flex;
  gap: 0.6rem;
}

.actions-row button { margin-top: 0; }
