/* register.novocastrum.online: the public site's palette and fonts (Web/site/assets/site.css), a single card layout.
   No inline styles anywhere (CSP style-src 'self'). */
@font-face { font-family: "Cinzel"; font-weight: 400; font-display: swap; src: url(fonts/Cinzel-Regular.woff2) format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url(fonts/Cinzel-Bold.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-display: swap; src: url(fonts/AlegreyaSans-Regular.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-display: swap; src: url(fonts/AlegreyaSans-Medium.woff2) format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-display: swap; src: url(fonts/AlegreyaSans-Bold.woff2) format("woff2"); }

:root {
  --ink: #0d0a09;
  --ink-2: #16110e;
  --line: rgba(226, 180, 87, 0.16);
  --glass: rgba(22, 17, 14, 0.72);
  --parchment: #f1e6d0;
  --parchment-dim: #c9bba2;
  --muted: #9a8a73;
  --gold: #e2b457;
  --gold-hi: #f6d68e;
  --gold-deep: #b9832f;
  --lapis: #4d8dff;
  --ok: #7fbf6a;
  --bad: #d9674f;
  --radius: 16px;
  --display: "Cinzel", Georgia, serif;
  --body: "Alegreya Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--parchment);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 50% at 50% 18%, rgba(226, 180, 87, 0.10), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(40, 70, 140, 0.22), transparent 70%),
    var(--ink);
  background-attachment: fixed;
}
a { color: var(--gold); text-decoration-color: rgba(226, 180, 87, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; color: #f7ecd8; }
h1 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); }
h2 { font-size: 1.05rem; letter-spacing: 0.03em; color: var(--gold); margin-top: 1.6em; }
p { margin: 0 0 0.9em; }
code { font: 0.86em ui-monospace, Menlo, monospace; background: rgba(255,255,255,0.06); padding: 0.08em 0.4em; border-radius: 6px; word-break: break-all; }

.shell { width: min(560px, 100% - 32px); margin: 0 auto; padding: 28px 0 40px; }
.shell.wide { width: min(760px, 100% - 32px); }
.crest { display: block; width: min(260px, 70%); margin: 0 auto 18px; }
.crest img { display: block; width: 100%; height: auto; }
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lede { color: var(--parchment-dim); }
.small { font-size: 0.92rem; color: var(--muted); }
.center { text-align: center; }
.eyebrow { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.6em; }

form.stack { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
form.inline { display: inline; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 500; color: var(--parchment-dim); font-size: 0.95rem; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
label.check input { margin-top: 0.3em; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
input[type=email], input[type=password], input[type=text] {
  font: inherit; color: var(--parchment);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(226, 180, 87, 0.28);
  border-radius: 10px; padding: 10px 12px;
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 0.86rem var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); color: var(--parchment); background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { color: var(--gold-hi); border-color: rgba(226, 180, 87, 0.5); }
.btn.primary { color: var(--ink); background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border-color: transparent; }
.btn.primary:hover { color: var(--ink); filter: brightness(1.08); }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; }
.btn.google { background: #fff; border-color: transparent; color: #1f1f1f; }
.btn.danger { border-color: rgba(217, 103, 79, 0.6); color: #f0a08f; }
.btn.small { padding: 7px 12px; font-size: 0.72rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .btn, .row > form { flex: 1 1 auto; }
.row > form > .btn { width: 100%; }
form.row { margin-bottom: 12px; }

.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.notice { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.notice.ok { border-color: rgba(127, 191, 106, 0.5); }
.notice.bad { border-color: rgba(217, 103, 79, 0.6); color: #f3c2b6; }
.draft { border: 2px dashed var(--bad); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; color: #f3c2b6; font-weight: 700; }

.code-box { text-align: center; margin: 16px 0; padding: 16px; border-radius: 12px; border: 1px solid rgba(226, 180, 87, 0.4); background: rgba(0, 0, 0, 0.3); }
.code-box span { display: block; color: var(--parchment-dim); font-size: 0.92rem; }
.code { display: block; font: 700 2.4rem ui-monospace, Menlo, monospace; letter-spacing: 0.3em; color: var(--gold-hi); margin-top: 6px; }

ul.list { list-style: none; padding: 0; margin: 0 0 10px; }
ul.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.list li:last-child { border-bottom: 0; }
ul.list .what { display: flex; flex-direction: column; min-width: 0; }
ul.list .what b { color: var(--parchment); }
ul.list .what small { color: var(--muted); overflow-wrap: anywhere; }
.tag { font-size: 0.75rem; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--muted); margin-left: 6px; }

footer { text-align: center; margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
footer a { color: var(--muted); }
