:root {
  /* Edit these. Nothing else needs touching to reskin the app. */
  --bg: #101214;
  --surface: #1a1d21;
  --text: #e8e6e3;
  --text-dim: #9a978f;
  --accent: #d4a03c;
  --danger: #c0392b;
  --ok: #3a8f5f;
  --radius: 10px;
  --space: 8px;
  --font: system-ui, sans-serif;
  --font-size: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.5;
}

body {
  min-height: 100dvh;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--space) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 3);
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

header p {
  margin: calc(var(--space) * 0.5) 0 0;
  color: var(--text-dim);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: calc(var(--space) * 2);
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 2);
}

.card h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

label {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space) * 0.5);
  font-size: 0.875rem;
  color: var(--text-dim);
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: calc(var(--space) * 1.5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space) * 1);
}

button {
  appearance: none;
  border: none;
  border-radius: var(--radius);
  padding: calc(var(--space) * 1.5) calc(var(--space) * 2);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
}

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

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.status.error {
  color: var(--danger);
}

.status.ok {
  color: var(--ok);
}

.milestone {
  border-left: 3px solid var(--accent);
  padding-left: calc(var(--space) * 2);
  color: var(--text-dim);
  font-size: 0.875rem;
}