:root {
  --ink: #1b2a4a;
  --paper: #f7f5f2;
  --accent: #c8532b;
  --accent-dark: #a34422;
  --success: #2e6b3f;
  --error: #9c2f2f;
  --border: #d8d3cc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.5;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.08);
}

h1 {
  font-size: 28px;
  margin: 0 0 8px;
  line-height: 1.2;
}

.lede {
  color: var(--ink);
  opacity: 0.75;
  margin: 0 0 24px;
  font-size: 16px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-weight: bold;
  font-size: 15px;
}

input {
  font: inherit;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 100%;
  color: var(--ink);
  background: var(--paper);
}

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

button {
  font: inherit;
  font-weight: bold;
  padding: 12px 20px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

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

button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.message {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 15px;
}

.message.success { background: #e6f0e8; color: var(--success); }
.message.error { background: #f7e6e6; color: var(--error); }

@media (max-width: 480px) {
  .card { padding: 24px; }
  h1 { font-size: 24px; }
}
