:root {
  color-scheme: light;
  --paper: #f2eee4;
  --paper-deep: #e8e1d3;
  --ink: #222823;
  --muted: #606861;
  --accent: #0d6256;
  --accent-dark: #084b43;
  --line: #c9c1b3;
  --error: #8a2f2a;
  --focus: #b4582d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { min-height: 100vh; margin: 0; }
::selection { color: #fffdf7; background: var(--accent); }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(2rem, env(safe-area-inset-top)) max(1.25rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(1.25rem, env(safe-area-inset-left));
}

.login-panel { width: min(100%, 29rem); }
.archive-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin: 0 0 2.25rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

h1 {
  max-width: 12ch;
  margin: 0 0 .85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 7vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}

.intro {
  max-width: 38ch;
  margin: 0 0 2.6rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-message {
  margin: 0 0 1.25rem;
  padding: .8rem 0;
  border-block: 1px solid color-mix(in srgb, var(--error) 55%, var(--line));
  color: var(--error);
  line-height: 1.5;
}

form { display: grid; gap: .65rem; }
label { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  outline: 0;
  padding: .75rem 0;
  background: transparent;
  color: var(--ink);
  caret-color: var(--accent);
  font: inherit;
  font-size: 1.6rem;
  letter-spacing: .25em;
}
input:focus { border-bottom-color: var(--focus); box-shadow: 0 2px 0 var(--focus); }
button {
  min-height: 3rem;
  margin-top: 1rem;
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: .75rem 1rem;
  background: var(--accent);
  color: #fffdf7;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}
button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button:focus-visible, input:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 42%, transparent); outline-offset: 3px; }
.privacy-note { margin: 1rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
