/* Reset & theme tokens */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button {
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 14px;
  background: var(--surface);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}
button:hover { background: var(--surface-hover); }
button.primary {
  background: var(--accent);
  color: #0d1117;
  border-color: var(--accent);
}
button.primary:hover { filter: brightness(1.1); }
button:disabled { opacity: 0.4; cursor: not-allowed; }

input[type="text"], input[type="password"], input[type="email"] {
  font: inherit;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
}
input:focus {
  outline: none;
  border-color: var(--accent);
}

:root,
:root[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-hover: #1f2630;
  --text: #c9d1d9;
  --muted: #8b949e;
  --border: #30363d;
  --accent: #58a6ff;
  --success: #3fb950;
  --warning: #d29922;
  --danger: #f85149;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-hover: #e9ecef;
  --text: #24292f;
  --muted: #6e7781;
  --border: #d0d7de;
  --accent: #0969da;
  --success: #1a7f37;
  --warning: #9a6700;
  --danger: #cf222e;
}
