:root {
    --au-brand: #3d8bd4; --au-primary: #326b9f; --au-primary-hover: #285782; --au-primary-ink: #fff;
    --au-text: #142a40; --au-muted: #5b6e82; --au-subtle: #8394a6;
    --au-bg: #eef3f8; --au-surface: #fff; --au-soft: #f5f8fc; --au-tint: #eaf3fc; --au-tint-strong: #d6e8f8;
    --au-line: #dde6ef; --au-line-soft: #edf2f7;
    --au-green: #1f8a5b; --au-green-bg: #e6f6ee; --au-green-line: #b9e1cb;
    --au-amber: #a8680f; --au-amber-bg: #fdf3e2; --au-amber-line: #f0d9a6;
    --au-red: #d23c4e; --au-red-bg: #fdecee; --au-red-line: #f1c4c7;
    --au-shadow: 0 1px 2px rgba(20,42,64,.05), 0 18px 48px rgba(20,42,64,.10);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --au-brand: #7ab4ea; --au-primary: #8fbde9; --au-primary-hover: #b0d2f3; --au-primary-ink: #0f2236;
        --au-text: #ecf2f9; --au-muted: #a9b8c8; --au-subtle: #8a9db2;
        --au-bg: #111a24; --au-surface: #19232f; --au-soft: #1e2a38; --au-tint: #23384d; --au-tint-strong: #2c4761;
        --au-line: #2f4052; --au-line-soft: #263546;
        --au-green: #6fd4a3; --au-green-bg: #18352a; --au-green-line: #2f5e48;
        --au-amber: #f1c46a; --au-amber-bg: #3a301d; --au-amber-line: #64512a;
        --au-red: #ff8f9b; --au-red-bg: #3c2127; --au-red-line: #6a353c;
        --au-shadow: 0 18px 48px rgba(0,0,0,.35);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
.au-body { margin: 0; background: var(--au-bg); color: var(--au-text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.au-body :focus-visible { outline: 3px solid var(--au-brand); outline-offset: 2px; }
.au-body [hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.au-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 44%) 1fr; }

.au-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; color: #eaf2fb;
    background: radial-gradient(900px 420px at 110% -10%, rgba(80,160,240,.45), transparent 60%), radial-gradient(700px 380px at -20% 110%, rgba(61,220,151,.18), transparent 60%), linear-gradient(150deg, #0b1a2c 0%, #12304f 55%, #174a73 100%); }
.au-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.au-brand > * { position: relative; z-index: 1; }
.au-logo { display: inline-flex; align-items: center; background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.au-logo img { height: 34px; display: block; }
.au-brand-copy h2 { margin: 0 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.au-brand-copy > p { margin: 0 0 28px; font-size: 16px; color: #c6d8ec; max-width: 420px; }
.au-brand-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 440px; }
.au-brand-copy li { display: flex; gap: 14px; align-items: flex-start; }
.au-brand-copy li i { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #9fd0ff; flex: 0 0 auto; }
.au-brand-copy li span { font-size: 13.5px; color: #c6d8ec; }
.au-brand-copy li b { display: block; color: #fff; font-size: 14.5px; font-weight: 700; }
.au-brand-foot { font-size: 12.5px; color: #9fb4ca; }

.au-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 24px; min-width: 0; }
.au-mobile-logo { display: none; margin-bottom: 20px; background: #fff; border-radius: 12px; padding: 8px 14px; box-shadow: 0 6px 18px rgba(20,42,64,.12); }
.au-mobile-logo img { height: 30px; display: block; }
.au-card { width: 100%; max-width: 420px; background: var(--au-surface); border: 1px solid var(--au-line); border-radius: 20px; box-shadow: var(--au-shadow); padding: 32px 32px 28px; }
.au-card.is-wide { max-width: 480px; }
.au-head { margin-bottom: 22px; }
.au-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; background: var(--au-tint); color: var(--au-primary); }
.au-icon.is-green { background: var(--au-green-bg); color: var(--au-green); }
.au-icon.is-amber { background: var(--au-amber-bg); color: var(--au-amber); }
.au-icon.is-red { background: var(--au-red-bg); color: var(--au-red); }
.au-head h1 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.01em; color: var(--au-text); }
.au-head p { margin: 6px 0 0; color: var(--au-muted); font-size: 14px; }
.au-foot { margin-top: 22px; font-size: 12.5px; color: var(--au-subtle); text-align: center; }

.au-form { display: grid; gap: 16px; }
.au-field { display: grid; gap: 6px; }
.au-field > label, .au-label { font-size: 13px; font-weight: 650; color: var(--au-text); display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0; }
.au-field > label a, .au-label a { font-weight: 600; font-size: 12.5px; }
.au-control { position: relative; display: flex; align-items: center; }
.au-control > i.au-lead { position: absolute; left: 14px; color: var(--au-subtle); font-size: 14px; pointer-events: none; }
.au-input { width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--au-line); background: var(--au-surface); color: var(--au-text); padding: 0 14px 0 42px; font-size: 15px; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.au-input::placeholder { color: var(--au-subtle); }
.au-input:focus { outline: none; border-color: var(--au-brand); box-shadow: 0 0 0 4px var(--au-tint-strong); }
.au-input[readonly] { background: var(--au-soft); color: var(--au-muted); }
.au-input.input-validation-error, .au-input[aria-invalid="true"] { border-color: var(--au-red); }
.au-input.has-toggle { padding-right: 48px; }
.au-eye { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--au-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.au-eye:hover { background: var(--au-soft); color: var(--au-text); }
.au-error, .field-validation-error { font-size: 12.5px; color: var(--au-red); }
.field-validation-valid { display: none; }
.au-hint { font-size: 12.5px; color: var(--au-subtle); }
.au-caps { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--au-amber); font-weight: 600; }

.au-code { letter-spacing: .5em; font-size: 22px; font-weight: 700; text-align: center; padding: 0 14px; font-variant-numeric: tabular-nums; height: 56px; }

.au-check { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--au-text); cursor: pointer; user-select: none; margin: 0; }
.au-check input { width: 18px; height: 18px; accent-color: var(--au-primary); margin: 0; }

.au-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 12px; border: 1px solid transparent; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s; }
.au-btn-primary { background: var(--au-primary); color: var(--au-primary-ink); }
.au-btn-primary:hover:not(:disabled) { background: var(--au-primary-hover); color: var(--au-primary-ink); box-shadow: 0 10px 22px rgba(50,107,159,.28); transform: translateY(-1px); }
.au-btn-ghost { background: var(--au-surface); color: var(--au-text); border-color: var(--au-line); }
.au-btn-ghost:hover { background: var(--au-soft); color: var(--au-text); border-color: var(--au-brand); }
.au-btn:disabled { opacity: .7; cursor: progress; }
.au-btn .au-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: auSpin .7s linear infinite; }
@keyframes auSpin { to { transform: rotate(360deg); } }

.au-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--au-muted); margin-top: 4px; }
.au-body a { color: var(--au-primary); font-weight: 650; text-decoration: none; }
.au-body a:hover { text-decoration: underline; }
.au-body a.au-btn { text-decoration: none; }
.au-body a.au-btn-primary, .au-body a.au-btn-primary:hover { color: var(--au-primary-ink); }
.au-body a.au-btn-ghost, .au-body a.au-btn-ghost:hover { color: var(--au-text); }
.au-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }

.au-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; border: 1px solid var(--au-red-line); background: var(--au-red-bg); color: var(--au-text); }
.au-alert > i { color: var(--au-red); margin-top: 3px; }
.au-alert ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.au-alert.is-ok { border-color: var(--au-green-line); background: var(--au-green-bg); }
.au-alert.is-ok > i { color: var(--au-green); }
.au-alert.is-info { border-color: var(--au-tint-strong); background: var(--au-tint); }
.au-alert.is-info > i { color: var(--au-primary); }
.au-alert.is-warn { border-color: var(--au-amber-line); background: var(--au-amber-bg); }
.au-alert.is-warn > i { color: var(--au-amber); }
.au-alert b { display: block; }
.validation-summary-valid { display: none; }

.au-meter { display: grid; gap: 6px; }
.au-meter-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.au-meter-bar i { height: 5px; border-radius: 4px; background: var(--au-line); transition: background .2s; }
.au-meter[data-level="1"] .au-meter-bar i:nth-child(-n+1) { background: var(--au-red); }
.au-meter[data-level="2"] .au-meter-bar i:nth-child(-n+2) { background: #e8a33a; }
.au-meter[data-level="3"] .au-meter-bar i:nth-child(-n+3) { background: #7cb342; }
.au-meter[data-level="4"] .au-meter-bar i { background: var(--au-green); }
.au-meter-text { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--au-muted); }
.au-meter-text b { color: var(--au-text); }
.au-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.au-rules li { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--au-muted); }
.au-rules li i { width: 16px; text-align: center; color: var(--au-subtle); }
.au-rules li.is-ok { color: var(--au-text); }
.au-rules li.is-ok i { color: var(--au-green); }
.au-match { font-size: 12.5px; display: inline-flex; gap: 6px; align-items: center; }
.au-match.is-ok { color: var(--au-green); }
.au-match.is-bad { color: var(--au-red); }

.au-steps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.au-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--au-muted); }
.au-steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--au-tint); color: var(--au-primary); font-weight: 800; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.au-steps b { color: var(--au-text); }
.au-email { font-weight: 700; color: var(--au-text); word-break: break-all; }
.au-divider { height: 1px; background: var(--au-line-soft); margin: 4px 0; }
.au-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--au-soft); border: 1px solid var(--au-line); border-radius: 6px; padding: 1px 6px; }
.au-countdown { font-variant-numeric: tabular-nums; }


.au-qr-wrap { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--au-line); border-radius: 14px; background: var(--au-soft); }
.au-qr { width: 192px; height: 192px; padding: 8px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--au-line); }
.au-qr img, .au-qr canvas { display: block; }
.au-qr-side { display: grid; gap: 8px; min-width: 0; }
.au-key-row { display: flex; align-items: center; gap: 6px; position: relative; }
.au-key-row .au-eye { position: static; flex: 0 0 auto; }
.au-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; letter-spacing: .04em; background: var(--au-surface); border: 1px solid var(--au-line); border-radius: 8px; padding: 8px 10px; word-break: normal; overflow-wrap: break-word; color: var(--au-text); flex: 1 1 auto; line-height: 1.7; }
.au-codes { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; border: 1px dashed var(--au-line); border-radius: 14px; background: var(--au-soft); }
.au-codes code { display: block; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; font-weight: 700; letter-spacing: .06em; padding: 8px; background: var(--au-surface); border: 1px solid var(--au-line); border-radius: 8px; color: var(--au-text); }
.au-btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.au-steps[start] { counter-reset: s 2; }
.au-alert span b { display: block; }

@media (max-width: 959px) {
    .au-shell { grid-template-columns: 1fr; }
    .au-brand { display: none; }
    .au-mobile-logo { display: block; }
    .au-main { justify-content: flex-start; padding-top: 40px; }
}
@media (max-width: 479px) {
    .au-qr-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .au-key-row { justify-content: center; }
    .au-main { padding: 24px 16px 16px; }
    .au-card { padding: 24px 20px 22px; border-radius: 16px; }
    .au-head h1 { font-size: 21px; }
    .au-rules { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .au-body * { animation: none !important; transition: none !important; } }
.au-brand.has-video { position: sticky; top: 0; height: 100vh; align-self: start; background: linear-gradient(180deg, #123a5a 0%, #0b2239 40%, #071a2d 100%); }
.au-video { position: absolute; top: max(28px, 4vh); left: 50%; transform: translateX(-50%); z-index: 0; width: min(100%, calc((100vh - max(28px, 4vh) - 60px) * .8)); height: auto; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; background: transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 92%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%); -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 92%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%); mask-composite: intersect; }
.au-brand.has-video::after { display: none; }
.au-brand.has-video .au-brand-copy { visibility: hidden; }
.au-brand.has-video .au-brand-top, .au-brand.has-video .au-brand-foot { z-index: 2; }
.au-brand.has-video .au-brand-foot { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.au-brand.has-video .au-brand-top { display: none; }
.au-brand.has-video .au-logo { padding: 8px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.au-brand.has-video .au-logo img { height: 28px; }
@media (prefers-reduced-motion: reduce) { .au-video { display: none; } .au-brand.has-video .au-brand-top { display: block; } .au-brand.has-video .au-logo { padding: 10px 16px; } .au-brand.has-video .au-logo img { height: 34px; } .au-brand.has-video .au-brand-copy { visibility: visible; } .au-brand.has-video::after { display: block; } }
