/* Chaos Age — registro de contas. Mesmo visual do site (www.chaosage.com.br): escuro, dourado, serifado. */
:root {
  --bg: #15110d;
  --gold: #d9b26a;
  --gold-soft: #b8935a;
  --gold-light: #ecc98a;
  --line: rgba(217, 178, 106, .35);
  --text: #efe6d6;
  --muted: #b9ad98;
  --input: #120e0a;
  --bad: #e0675c;
  --bad-bg: rgba(224, 103, 92, .1);
  --good: #6fcf86;
  --radius: 4px;
  --font-title: "Cinzel", "Palatino Linotype", Georgia, serif;
  --font-body: "EB Garamond", "Palatino Linotype", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg) 40%, rgba(21, 17, 13, .35) 78%, rgba(21, 17, 13, .55) 100%) fixed,
    url("../images/cta-paisagem.jpg") center bottom / 100% auto no-repeat fixed,
    radial-gradient(1200px 600px at 70% 0%, rgba(120, 90, 50, .14), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-light); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- menu do site ---------- */
.topnav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 14, 10, .9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topnav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(1080px, 100% - 32px); height: 56px; margin-inline: auto;
}
.topnav-brand { font: 500 22px/1 var(--font-title); letter-spacing: .06em; color: var(--gold); text-decoration: none; }
.topnav nav { display: flex; gap: clamp(14px, 3.5vw, 38px); }
.topnav nav a { color: var(--text); text-decoration: none; font-size: 17px; }
.topnav nav a:hover { color: var(--gold); }

/* ---------- estrutura ---------- */
.stage { width: 100%; max-width: 580px; margin: 0 auto; padding: 26px 16px 48px; }

.brand { text-align: center; margin-bottom: 18px; }
.crest {
  display: block; width: 130px; height: auto; margin: 0 auto 4px;
  mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent);
          mask-image: radial-gradient(closest-side, #000 75%, transparent);
}
.brand-name {
  margin: 0;
  font: 500 clamp(2.2rem, 8vw, 3.2rem)/1.05 var(--font-title);
  letter-spacing: .04em;
  color: #efe3cc;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.brand-sub { margin: 6px 0 0; font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- painel (antes era um pergaminho; as classes ficaram) ---------- */
.scroll { position: relative; }
.scroll.wide { max-width: 720px; }
.scroll-rod { display: none; }

.parchment {
  padding: 30px clamp(18px, 6vw, 40px) 30px;
  background: linear-gradient(180deg, rgba(35, 28, 21, .96), rgba(24, 19, 14, .96));
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.parchment.center { text-align: center; }

.parchment h2 {
  margin: 0;
  font: 500 2rem/1.15 var(--font-body);
  text-align: center;
  color: var(--text);
}
.parchment h2::after { content: ""; display: block; width: 56px; height: 2px; margin: 10px auto 0; background: var(--gold); }
.lead { margin: 12px 0 18px; text-align: center; color: var(--muted); }

/* ---------- formulário ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 5px; }
.field label { font-weight: 600; font-size: 1.02rem; color: var(--gold-light); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  font: 400 1rem/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--input);
  border: 1px solid rgba(217, 178, 106, .45);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #6f6455; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 178, 106, .22); }
.field.has-error input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(224, 103, 92, .18); }
.field.is-valid input { border-color: var(--good); }

.hint { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.error { color: var(--bad); font-size: .92rem; font-weight: 600; }
.error:empty { display: none; }

.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 40px; height: 36px;
  border: 0; border-radius: var(--radius);
  background: transparent; color: var(--text);
  cursor: pointer; font-size: 1.1rem; opacity: .6;
}
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { opacity: 1; background: rgba(217, 178, 106, .12); }

.meter { height: 5px; border-radius: 3px; background: rgba(217, 178, 106, .15); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .25s, background-color .25s; }

.check .checkbox { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--gold); flex: none; }

/* campo-armadilha para robôs */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- botão (igual ao "Baixar launcher" do site) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 50px; margin-top: 6px; padding: 10px 24px;
  font: 500 1.25rem/1.2 var(--font-body);
  text-decoration: none;
  color: #1a130b;
  background: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
}
.btn:hover { background: var(--gold-light); color: #1a130b; box-shadow: 0 0 24px rgba(217, 178, 106, .35); }
.btn .btn-busy { display: none; }
.btn.is-busy { cursor: progress; opacity: .75; }
.btn.is-busy .btn-label { display: none; }
.btn.is-busy .btn-busy { display: inline; }
.btn[disabled] { pointer-events: none; }

/* ---------- mensagens ---------- */
.alert {
  padding: 12px 16px;
  color: #f3c4be;
  background: var(--bad-bg);
  border: 1px solid rgba(224, 103, 92, .5);
  border-left: 4px solid var(--bad);
  border-radius: var(--radius);
  font-weight: 500;
}
.alert:focus { outline: none; }

.success { text-align: center; }
.success:focus { outline: none; }
.seal {
  width: 72px; height: 72px; margin: 0 auto 12px;
  display: grid; place-items: center;
  font-size: 2rem; color: var(--gold);
  border: 1.5px solid var(--gold); border-radius: 50%;
  box-shadow: 0 0 24px rgba(217, 178, 106, .3);
}
.success-lead { font-size: 1.1rem; }
.howto {
  margin: 18px 0; padding: 12px 18px; text-align: left;
  background: rgba(217, 178, 106, .05);
  border-left: 2px solid var(--gold);
}
.howto div { display: flex; gap: 10px; padding: 4px 0; flex-wrap: wrap; }
.howto dt { min-width: 80px; color: var(--gold-light); font-weight: 600; }
.howto dd { margin: 0; overflow-wrap: anywhere; }
.note { color: var(--muted); }

.is-hidden { display: none !important; }

/* ---------- termos ---------- */
.terms h3 { margin: 22px 0 4px; font-size: 1.2rem; font-weight: 600; color: var(--gold-light); }
.terms p { margin: 0 0 8px; }
.terms .btn { margin-top: 22px; }

/* ---------- rodapé ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px;
  margin-top: 26px; font-size: .95rem; color: var(--muted);
  text-shadow: 0 1px 3px #000;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 480px) {
  body { font-size: 17px; background-attachment: scroll; }
  .topnav-brand { font-size: 18px; }
  .topnav nav a { font-size: 15px; }
  .crest { width: 100px; }
}
