:root {
  --plum: #4b1f4e;
  --plum-dark: #321537;
  --peach: #f2b59a;
  --cream: #fffaf6;
  --ink: #2d2530;
  --muted: #6f6570;
  --line: #e7dce1;
  --success: #196b4b;
  --danger: #9a3b47;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.panel { width: min(100%, 520px); padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 45px rgba(75, 31, 78, .08); }
.panel.wide { width: min(100%, 720px); }
.loading { text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--plum); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0 0 12px; color: var(--plum-dark); line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: 1.65rem; }
p { margin: 0 0 16px; }
.intro { color: var(--muted); }
.notice { margin: 18px 0; padding: 13px 15px; border-radius: 12px; background: #fbf1f7; color: var(--plum-dark); }
.notice.success { background: #edf8f2; color: var(--success); }
.notice.error { background: #fff0f1; color: var(--danger); }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--plum-dark); font-weight: 700; }
input { width: 100%; padding: 13px 14px; border: 1px solid #cdbfc9; border-radius: 10px; color: var(--ink); background: #fff; font: inherit; }
input:focus { outline: 3px solid rgba(242, 181, 154, .55); border-color: var(--plum); }
.password-field { position: relative; }
.password-field input { padding-right: 68px; }
.password-toggle { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; background: transparent; color: var(--plum); font-size: .76rem; font-weight: 800; }
.password-toggle:hover { background: #f5edf1; }
.password-toggle:focus-visible { outline: 3px solid rgba(242, 181, 154, .55); }
.password-mismatch { margin: -6px 0 0; color: var(--danger); font-size: .82rem; }
.turnstile-wrap { display: grid; gap: 4px; justify-items: start; }
.turnstile-slot { min-height: 65px; }
button, .button { border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; text-align: center; }
button.primary, .button.primary { background: var(--plum); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--plum-dark); }
button.secondary, .button.secondary { background: var(--peach); color: var(--plum-dark); }
button.link, .button.link { padding: 4px 0; background: transparent; color: var(--plum); text-align: left; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.actions.stacked { display: grid; }
.small { color: var(--muted); font-size: .9rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.topbar .eyebrow { margin: 0; }
.protected-mark { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-size: .82rem; font-weight: 800; }
.protected-mark::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.shell-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fffafc; }
.shell-card p:last-child { margin-bottom: 0; }
.divider { height: 1px; margin: 22px 0; background: var(--line); }
a { color: var(--plum); }
@media (max-width: 520px) {
  main { padding: 14px; }
  .panel { padding: 25px 20px; border-radius: 17px; }
  .topbar { align-items: flex-start; }
}
