/* Login, Einladung, Verwaltung – Pergament auf Leder, wie das Spiel-HUD */
@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Alegreya+Sans:wght@400;500;700;800&display=swap");

:root {
  --parch: #FAF3E1; --parch-2: #F2E6C9; --ink: #3B2414; --muted: #6E5638; --line: #D9C08A;
  --gold: #E2A93B; --gold-edge: #8A5A1C; --leather: #24160D; --red: #A8322A; --green: #3F6B22;
  --title: "Cinzel", Georgia, serif; --body: "Alegreya Sans", -apple-system, system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 400 17px/1.5 var(--body); color: var(--ink);
  background: radial-gradient(circle at 50% 30%, #3B2414 0%, #24160D 70%);
  display: grid; place-items: center; padding: 24px 16px;
  padding-top: max(24px, env(safe-area-inset-top));
}
.card {
  width: min(440px, 100%); background: var(--parch); border: 2px solid var(--gold-edge); border-radius: 14px;
  box-shadow: inset 0 0 0 4px var(--parch), inset 0 0 0 5px var(--line);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 16px;
}
.card.wide { width: min(640px, 100%); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 48px; height: 48px; fill: var(--gold); flex: none; }
.logo b { font: 900 22px/1.1 var(--title); }
h1 { margin: 0; font: 900 26px/1.15 var(--title); }
p { margin: 0; }
.muted { color: var(--muted); font-size: 15px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input {
  font: 500 18px/1.3 var(--body); color: var(--ink); padding: 12px 14px; min-height: 50px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; outline: none;
}
input:focus { border-color: var(--gold-edge); box-shadow: 0 0 0 3px rgba(226, 169, 59, .35); }
button, .btn {
  font: 800 17px/1 var(--body); min-height: 52px; padding: 0 18px; border-radius: 10px; cursor: pointer;
  background: var(--gold); color: var(--ink); border: 2px solid var(--gold-edge); border-top-color: #F6D88A;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
button.secondary, .btn.secondary { background: #5A3A1F; color: #FAF3E1; border-color: #2E1B0E; border-top-color: #8A5E34; }
button.small { min-height: 40px; font-size: 15px; padding: 0 12px; }
button:disabled { opacity: .5; cursor: default; }
.error { color: var(--red); font-weight: 700; min-height: 1.5em; }
.ok { color: var(--green); font-weight: 700; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--parch-2); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.list li .grow { flex: 1; min-width: 160px; }
.badge { font: 800 11px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; padding: 5px 7px; border-radius: 6px; background: #E8DCC0; color: var(--muted); }
.badge.open { background: #DDEACB; color: var(--green); }
.badge.used { background: #E2E6EE; color: #3B4A66; }
.badge.expired { background: #F3D9D2; color: var(--red); }
.link-box { font: 600 14px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; background: #fff; border: 1px dashed var(--gold-edge); border-radius: 8px; padding: 10px; user-select: all; }
a { color: var(--gold-edge); font-weight: 700; }
[hidden] { display: none !important; }
