:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #f5f0e8;
  background: #0e1020;
  line-height: 1.5;
  --muted: #b2b7cd;
  --gold: #f4d470;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 280px;
  background: radial-gradient(ellipse at top, #22243b 0, #0e1020 65%);
}
a {
  color: var(--gold);
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.shell {
  width: min(100% - 40px, 540px);
  margin: 0 auto;
  padding: 52px 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(140deg, #f4d470, #d4a843);
  color: #0e1020;
  font-size: 27px;
  font-weight: 850;
}
.wordmark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 5px;
}
.brand p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}
.card {
  padding: 32px;
  border: 1px solid #343950;
  border-radius: 24px;
  background: #151b30;
  box-shadow: 0 18px 64px #0003;
}
.eyebrow {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 750;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(25px, 6vw, 31px);
  line-height: 1.2;
  margin: 0 0 12px;
}
h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 20px;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
  overflow-wrap: anywhere;
}
.field {
  margin-bottom: 20px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
input:not([type='checkbox']) {
  width: 100%;
  min-height: 48px;
  background: #0e1425;
  border: 1px solid #5b637d;
  border-radius: 10px;
  color: #f5f0e8;
  padding: 12px 14px;
}
input:focus {
  border-color: var(--gold);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}
button {
  cursor: pointer;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--gold);
  color: #161925;
  font-weight: 750;
}
button:hover:enabled {
  background: #ffe59d;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.notice {
  padding: 14px 16px;
  border: 1px solid #6a5a2f;
  border-radius: 12px;
  background: #f4d4700b;
  color: #ede2bd;
  font-size: 14px;
  margin: 20px 0;
  overflow-wrap: anywhere;
}
.notice p:last-child {
  margin-bottom: 0;
}
.error {
  color: #ffc8c8;
  border-color: #a45b69;
  background: #d755690b;
}
.account {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #0e1425;
  border: 1px solid #343950;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 20px 0;
}
.account p {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.account > div {
  min-width: 0;
}
.scope-list {
  padding: 0;
  margin: 18px 0;
  list-style: none;
}
.scope-list li + li {
  margin-top: 10px;
}
.scope-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 14px;
  border: 1px solid #5b637d;
  border-radius: 12px;
  background: #0e1425;
  cursor: pointer;
}
.scope-option:has(input:checked) {
  border-color: var(--gold);
  background: #f4d4700b;
}
.scope-option input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--gold);
}
.scope-option small {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.secondary {
  background: transparent;
  color: #f5f0e8;
  border-color: #5b637d;
}
.secondary:hover:enabled {
  background: #232b45;
}
.footer-actions {
  text-align: center;
  display: grid;
  gap: 12px;
  margin-top: 24px;
  font-size: 14px;
}
.footer-actions:has(> [hidden]):not(:has(> :not([hidden]))) {
  display: none;
}
.text-button {
  padding: 8px;
  width: auto;
  color: var(--gold);
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 14px;
  font-weight: 500;
}
.text-button:hover:enabled {
  background: #232b45;
}
.security-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 24px 12px 0;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  display: block;
  padding: 12px;
}
@media (max-width: 480px) {
  .shell {
    width: min(100% - 28px, 540px);
    padding-top: 28px;
  }
  .card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  .brand {
    gap: 12px;
  }
  .brand p {
    font-size: 12px;
  }
}
