:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1f1d1a;
  --muted: #6b665f;
  --border: #e4dfd8;
  --accent: #b4432b;
  --accent-text: #ffffff;
  --error: #a52a1f;
  --radius: 8px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.container {
  max-width: 34rem;
  margin: 2rem auto;
  padding: 0 1rem;
}

.muted { color: var(--muted); }

.inline { display: inline; margin: 0; }

form p, form > div { margin: 0 0 1rem; }

label { display: block; font-weight: 600; margin-bottom: 0.25rem; }

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

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

button, .button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.link-button {
  padding: 0;
  font-weight: inherit;
  color: var(--accent);
  background: none;
  text-decoration: underline;
}

.errorlist {
  margin: 0.25rem 0;
  padding: 0;
  list-style: none;
  color: var(--error);
}

.helptext, .helptext ul { color: var(--muted); font-size: 0.875rem; }

.messages { padding: 0; list-style: none; }

.message {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
