/* Reset 1 (2026-10-23): hubba.app's one stylesheet. System font, a centred
   card, light and dark from prefers-color-scheme, a 16px gutter at phone
   width. No external fonts. */

:root {
  --bg: #f8f8f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6e6e6e;
  --border: #edeff1;
  --field: #f8f8f8;
  --accent: #00aaff;
  --on-accent: #ffffff;
  --ok: #0a7552;
  --error: #c62828;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --card: #1e1e1e;
    --text: #e5e7eb;
    --muted: #999999;
    --border: #2a2a2a;
    --field: #121212;
    --ok: #34d399;
    --error: #f87171;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.email {
  font-weight: 600;
  word-break: break-all;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0 6px;
}

.field {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field);
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
}

.field:focus-within {
  border-color: var(--accent);
}

.toggle {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 14px;
  cursor: pointer;
}

.rules {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 14px;
}

.rules li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  margin: 4px 0;
}

.rules li::before {
  content: "○";
  position: absolute;
  left: 0;
}

.rules li.met {
  color: var(--ok);
}

.rules li.met::before {
  content: "✓";
}

.button {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.45;
  cursor: default;
}

/* No inline styles: the CSP allows only this stylesheet */
.after-button {
  margin-top: 12px;
}

.error {
  color: var(--error);
  font-size: 14px;
  margin: 12px 0 0;
}

[hidden] {
  display: none !important;
}
