:root {
  color-scheme: dark;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: #203522;
  --muted: #d3ddd1;
  --line: #ffffff1a;
  --accent: #f4783b;
  --gradient: linear-gradient(135deg, #f4783b, #ffcb47);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: radial-gradient(1100px 620px at 50% -12%, #f4783b14, transparent 60%), #203522;
}
.account-card {
  position: relative;
  width: min(480px, 100%);
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #203522;
  box-shadow: 0 16px 48px #0c1e1833;
}
.account-card::before {
  content: "";
  position: absolute;
  inset: -1px 15px auto;
  height: 2px;
  background: var(--gradient);
}
.account-card--wide { width: min(640px, 100%); }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  margin-bottom: 28px;
}
.brand__mark { display: block; flex: none; }
.brand__wordmark { display: grid; gap: 4px; line-height: 1.1; }
.brand__name { font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.brand__resources { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .3em; }
.page-heading { margin-bottom: 24px; }
h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; line-height: 1.4; }
p { margin: 0; overflow-wrap: anywhere; }
.page-heading p, .section-description, .consent-summary p, .field-hint { color: var(--muted); font-size: 14px; line-height: 1.6; }
form, .field, .actions { display: grid; }
form { gap: 18px; margin: 0; }
.field { gap: 7px; min-width: 0; }
.field > span { color: var(--muted); font-size: 14px; font-weight: 600; }
input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #ffffff3b;
  border-radius: 9px;
  background: #172a1d;
  color: #fff;
  font: inherit;
}
input:focus-visible { border-color: var(--accent); outline: 3px solid #f4783b33; outline-offset: 1px; }
.field-hint { margin-top: -12px; font-size: 13px; }
.security-check { min-width: 0; }
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.button--primary { background: var(--gradient); color: #203522; }
.button--primary:hover:not(:disabled) { filter: brightness(1.07); }
.button--secondary { border-color: #ffffff3b; background: transparent; color: #fff; }
.button--secondary:hover:not(:disabled) { background: #ffffff08; border-color: #ffffff70; }
.button:disabled { opacity: .55; cursor: not-allowed; }
a { color: var(--muted); text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.actions { gap: 12px; }
.alternative { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted); font-size: 13px; }
.alternative::before, .alternative::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.help-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 24px; font-size: 13px; }
.account-footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; }
.footer-note { color: var(--muted); font-size: 13px; }
#status:empty { display: none; }
#status { margin-bottom: 20px; padding: 12px 14px; border: 1px solid #ffffff3b; border-radius: 9px; background: #ffffff08; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.form-section + .form-section, .account-actions { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.section-description { margin: -4px 0 16px; }
.consent-summary { margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff05; }
.consent-summary .summary-title { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.account-identity { margin-bottom: 24px; font-size: 15px; }
.account-list { list-style: none; padding: 0; margin: 0 0 16px; }
.account-list:empty { display: none; }
.account-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.account-list .list-details { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.list-meta { color: var(--muted); font-size: 13px; }
.account-list .button { flex: none; width: auto; min-height: 40px; padding: 8px 12px; font-size: 13px; }
pre:empty { display: none; }
pre { padding: 16px; margin: 20px 0 0; border: 1px solid var(--line); border-radius: 9px; background: #172a1d; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, monospace; }
noscript { display: block; margin-top: 20px; color: var(--muted); font-size: 14px; }
@media (max-width: 520px) {
  body { padding: 24px 16px; }
  .account-card { padding: 24px 20px; }
  h1 { font-size: 24px; }
  .account-list li { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
