:root {
  --sand: #fbf9f3;
  --paper: #ffffff;
  --ink: #332d24;
  --ink-soft: #756b5a;
  --sun: #b8801e;
  --sun-deep: #7a5410;
  --terracotta: #d97a46;
  --line: rgba(51, 45, 36, 0.09);
  --line-strong: rgba(51, 45, 36, 0.18);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  background: var(--sand);
  color: var(--ink);
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
  padding: 1.5rem;
}
.card {
  width: 100%;
  max-width: 23rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(51, 45, 36, 0.04), 0 16px 32px -16px rgba(51, 45, 36, 0.18);
  padding: 2.75rem 2rem 3rem;
}
.eyebrow {
  display: block;
  font-family: Georgia, 'Iowan Old Style', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--sun-deep);
}
h1 {
  font-family: Georgia, 'Iowan Old Style', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0.7rem 0 0.5rem;
  letter-spacing: -0.005em;
}
p.sub {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
label {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}
input[type='password'] {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--sand);
  color: var(--ink);
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
  transition: border-color 0.2s ease;
}
input[type='password']:hover {
  border-color: var(--ink-soft);
}
input[type='password']:focus-visible {
  outline: 2.5px solid var(--sun);
  outline-offset: 2px;
}
button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.95rem;
  border-radius: 999px;
  border: none;
  background: var(--sun-deep);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
button:hover {
  background: #5e3f0c;
}
button:active {
  transform: scale(0.98);
}
button:focus-visible {
  outline: 2.5px solid var(--terracotta);
  outline-offset: 2px;
}
.error {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--terracotta);
  display: none;
}
.error:target {
  display: block;
}
