:root {
  color-scheme: light;
  --ink: #0a1d3f;
  --muted: #526078;
  --line: #d9e0ec;
  --surface: #ffffff;
  --page: #f5f2eb;
  --primary: #123f88;
  --gold: #c89220;
  --danger: #b3261e;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  line-height: 1.75;
}
.shell {
  width: min(820px, calc(100% - 32px));
  margin: 32px auto;
  padding: clamp(24px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgb(10 29 63 / 8%);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}
.brand::before {
  content: "R";
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: var(--gold);
  font-size: 1.4rem;
}
h1 { margin: 0 0 8px; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.2; }
h2 { margin-top: 32px; font-size: 1.25rem; }
p, li { color: var(--muted); }
.lede { font-size: 1.08rem; }
.meta, .notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fbff;
}
.notice { border-inline-start: 5px solid var(--gold); }
.danger { border-inline-start-color: var(--danger); }
a { color: var(--primary); font-weight: 700; }
hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }
label { display: block; margin: 18px 0 6px; font-weight: 750; }
input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #aeb9ca;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
input:focus { outline: 3px solid rgb(18 63 136 / 18%); border-color: var(--primary); }
button {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 14px;
  background: var(--danger);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
button:disabled { cursor: wait; opacity: .65; }
.status { min-height: 28px; margin-top: 14px; font-weight: 700; }
.status.error { color: var(--danger); }
.status.success { color: #176b3a; }
.footer { margin-top: 40px; font-size: .92rem; }
[dir="ltr"] { text-align: left; }
@media (max-width: 560px) { .shell { margin: 0; width: 100%; min-height: 100vh; border: 0; border-radius: 0; } }
