:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #fffdf8;
  --ink: #1f2933;
  --muted: #6b7280;
  --accent: #8f3b24;
  --accent-dark: #6d2d1c;
  --border: #e5ddd0;
  --error: #9f1239;
  --info: #1d4ed8;
  --success: #166534;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(143, 59, 36, 0.16), transparent 28%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  min-height: 100vh;
}

.layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 440px);
  padding: 32px;
  background: color-mix(in srgb, var(--panel) 92%, white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(31, 41, 51, 0.08);
}

.card-header h1 {
  margin: 0 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent);
}

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

.form {
  display: grid;
  gap: 12px;
}

label {
  font-size: 0.95rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
  background: white;
}

button {
  margin-top: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.message {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.message-error {
  background: #ffe4e6;
  color: var(--error);
}

.message-info {
  background: #dbeafe;
  color: var(--info);
}

.message-success {
  background: #dcfce7;
  color: var(--success);
}
