:root {
    font-family: system-ui, sans-serif;
    color: #17213a;
    background: #101238;
    --blue: #2520d9;
    --line: #dbe2f3;
    --tint: #eff2ff;
    --muted: #46516b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 50% 5%, #3736aa, #15174f 66%, #101238);
}
.portal-main { flex: 1; display: grid; place-items: center; padding: 32px 16px; }
.portal-brand { display: block; width: 105px; margin: 0 auto 22px; border-radius: 4px; }
.portal-brand img { display: block; width: 100%; height: auto; }
h1 { margin: 0 0 26px; text-align: center; font-size: clamp(1.6rem, 4vw, 2rem); letter-spacing: -.04em; line-height: 1.15; }
h2 { margin: 0; letter-spacing: -.025em; }
p { line-height: 1.6; color: var(--muted); }
.card { width: 100%; max-width: 620px; padding: clamp(24px, 6vw, 40px); background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 60px #070b344d; }
.access-card { max-width: 420px; }
.access-card h1 { font-size: 1.6rem; }
.access-card form .button { width: 100%; justify-content: center; margin-top: 4px; }
.access-register { margin: 22px 0 0; text-align: center; font-size: .9rem; }
.access-register a { font-weight: 650; text-underline-offset: 3px; }
.portal-footer { padding: 16px; }
.portal-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; }
.portal-footer a { color: #e1e4ff; text-underline-offset: 3px; }
.portal-footer a[aria-current="page"] { color: white; font-weight: 650; }
.back { display: inline-block; margin-top: 24px; font-size: .9rem; text-underline-offset: 3px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 24px 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 8px; border-radius: 8px; background: #f4f6fc; color: var(--muted); font-size: .85rem; }
.steps li::before { content: counter(step); display: block; font-weight: 750; }
.steps li[aria-current="step"] { color: white; background: var(--blue); font-weight: 750; }
[data-registration-step] > p { margin: 0; }
.registration-done { display: grid; gap: 14px; justify-items: start; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
a { color: var(--blue); }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 650; color: white; background: var(--blue); text-decoration: none; cursor: pointer; }
.button:hover { background: #1b16aa; }
.secondary { color: var(--blue); background: var(--tint); border-color: var(--line); }
.secondary:hover { background: #e2e8ff; }
:focus-visible { outline: 2px solid #1673d1; outline-offset: 3px; }
form { display: grid; gap: 14px; justify-items: start; }
form > label:not(.check) { width: 100%; display: grid; gap: 6px; font-weight: 650; }
input:not([type=checkbox]) { width: 100%; padding: 10px 12px; border: 1px solid #aab7d4; border-radius: 8px; font: inherit; color: inherit; }
.check { display: flex; align-items: baseline; gap: 8px; }
.check input { accent-color: var(--blue); }
.captcha { background: #f4f6fc; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.small, footer { font-size: .9rem; }
[role=status]:empty { display: none; }
dl { margin-block: 16px; }
dl div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
dd { margin: 0; overflow-wrap: anywhere; }
#extend { margin-top: 14px; }
.license-status { display: inline-block; padding: 2px 8px; border-radius: 20px; color: var(--blue); background: var(--tint); font-size: .85rem; font-weight: 650; }
@media (max-width: 420px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.approval-code, .license-action { margin-top: 16px; }
.license-action p { margin: 0; }
.license-action .button:disabled { opacity: .55; cursor: not-allowed; }
.cf-turnstile { width: 100%; }
.form-error { color: #9b243d; }
.legal-document { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
