/* Pages players reach from emails and the sign-in screen (password reset, email
   confirmation, terms, privacy): the game's own sign-in look, so they feel like
   part of it. Sky backdrop, parchment card in a wooden rim, the logo poking out
   over the top, chunky gold buttons. Mirrors client/src/style.css; art from /app/art. */
:root {
  --panel-shadow: 0 5px 0 rgba(60, 30, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.6);
  --parchment: linear-gradient(180deg, #fff6dc, #f1dcaa);
  --ink: #3b2a14;
  --muted: #7a6a52;
  --wood: #8a5a2b;
  --good: #2f7d3a;
  --bad: #b83232;
  color-scheme: light;
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  padding: 16px 16px 32px;
  background: #8fd3f4 url('/app/art/village/sky.webp') center / cover fixed;
  line-height: 1.5;
}
[hidden] { display: none !important; }

.card {
  max-width: 420px;
  margin: max(8vh, 110px) auto 0;
  padding: 24px;
  background: var(--parchment);
  border: 3px solid var(--wood);
  border-radius: 18px;
  box-shadow: var(--panel-shadow);
}
.card.wide { max-width: 760px; }

/* The title logo pokes out over the top of its card, like the game's title screen. */
.logo { margin: -96px -12px 4px; text-align: center; line-height: 0; }
.logo a { display: inline-block; }
.logo img { width: 100%; height: auto; filter: drop-shadow(0 6px 0 rgba(30, 20, 60, 0.35)); }
.wide .logo { margin: -96px auto 4px; max-width: 420px; }
@media (min-width: 720px) {
  .card { margin-top: max(12vh, 150px); }
  .logo { margin: -140px -90px 4px; }
  .wide .logo { margin: -140px auto 4px; max-width: 480px; }
}
@media (max-width: 460px) {
  .card { margin-top: 96px; }
  .logo { margin-top: -84px; }
}

h1, h2 { color: #5a3510; line-height: 1.2; }
h1.title { font-size: 1.6rem; margin: 8px 0 4px; text-align: center; }
h2 { font-size: 1.25rem; margin: 8px 0 12px; }
.wide h2 { font-size: 1.15rem; margin: 24px 0 6px; }
p { margin: 0 0 12px; }
li { margin: 0 0 6px; }
ul { padding-left: 22px; margin: 0 0 12px; }
.muted, .updated { color: var(--muted); }
.updated { text-align: center; font-size: 0.9rem; margin-bottom: 16px; }
a { color: #8a4a00; font-weight: bold; }

label { display: block; margin: 12px 0 4px; font-weight: bold; }
input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  border: 2px solid var(--muted);
  border-radius: 10px;
  background: #fff;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #2f8fc4; outline-offset: 2px; }

button, .btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px 16px;
  font: inherit;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffd66b 0%, #f2b134 55%, #e09a1c 100%);
  box-shadow: 0 3px 0 var(--ink), inset 0 2px 0 rgba(255, 255, 255, 0.8);
}
button:active, .btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
button:disabled { opacity: 0.5; cursor: default; }

.status { min-height: 1.5em; margin: 16px 0 0; font-weight: bold; color: var(--muted); }
.status:empty { display: none; }
.status.bad { color: var(--bad); }
.status.good { color: var(--good); }

/* Links under the card, on the sky, like the sign-in screen's. */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 16px auto 0; }
.foot a { padding: 6px 14px; border-radius: 999px; background: rgba(20, 50, 90, 0.55); color: #fff; text-decoration: none; white-space: nowrap; }
.foot a:hover { background: rgba(20, 50, 90, 0.75); }
