* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--primary);
    background: #F3F7FA;
}

body {
    margin: 0;
    border-top: 5px solid var(--accent);
}

.site-header {
    max-width: 1160px;
    margin: 0 auto;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    display: block;
    width: 240px;
    height: auto;
}

.language-switch {
    display: flex;
    gap: 6px;
}

.language-switch a {
    border: 0;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.language-switch [aria-current="true"] {
    background: #DFEEEF;
    font-weight: 700;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1040px;
    margin: 34px auto 48px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 70px #0B2D4E0D;
    background: white;
    border: 1px solid #DFE8EE;
}

.story {
    padding: 66px 48px;
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.security-symbol {
    border: 1px solid #FFFFFF40;
    border-radius: 20px;
    width: 66px;
    height: 72px;
    display: grid;
    place-items: center;
    font-size: 34px;
    color: var(--mint);
    margin-bottom: 30px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 18px;
}

.story .eyebrow {
    color: var(--mint);
}

h1 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
}

.story > p:not(.eyebrow) {
    color: #D7E6EE;
    line-height: 1.8;
    font-size: 15px;
    margin: 0;
}

.story-line {
    height: 4px;
    width: 58px;
    background: var(--mint);
    border-radius: 4px;
    margin-top: 36px;
}

.form-panel {
    padding: 58px 48px;
}

h2 {
    font-size: 28px;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 0 0 14px;
}

.intro {
    color: #52697B;
    line-height: 1.7;
    font-size: 14px;
    margin: 0 0 30px;
}

label {
    display: block;
    margin: 22px 0 9px;
    font-size: 13px;
    font-weight: 650;
}

input, select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #BECDD7;
    border-radius: 9px;
    font: inherit;
    color: var(--primary);
    background: white;
}

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.primary-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 18px;
    margin-top: 30px;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--primary);
}

.primary-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.notice, .alert {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.7;
    border-radius: 8px;
    background: #E8F5F2;
}

.alert {
    background: #FFF0ED;
    color: #823B31;
    margin-bottom: 24px;
}

.alert p {
    margin: 0;
}

.code-input {
    font-size: 25px;
    letter-spacing: 0.3em;
}

.cancel-form {
    text-align: center;
    margin-top: 20px;
}

.text-button {
    padding: 8px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

footer {
    text-align: center;
    color: #607588;
    font-size: 12px;
    padding: 0 20px 30px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 760px) {
    .site-header {
        padding: 22px;
    }

    .brand img {
        width: 190px;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        margin: 12px 18px 30px;
    }

    .story {
        padding: 30px;
    }

    .security-symbol, .story-line, .story > p:not(.eyebrow) {
        display: none;
    }

    .story h1 {
        font-size: 28px;
        margin: 0;
    }

    .form-panel {
        padding: 34px 28px;
    }
}

.channel-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.channel-options legend { font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.channel-option { display: flex; align-items: center; gap: 14px; border: 1px solid #BECDD7; border-radius: 9px; padding: 16px; cursor: pointer; margin: 12px 0; }
.channel-option:has(input:checked) { border-color: var(--accent); background: #F0F8F7; }
.channel-option input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.channel-address { display: block; margin-top: 7px; font-weight: 400; overflow-wrap: anywhere; }

.resend-form .primary-button { margin-top: 18px; justify-content: center; background: #E8F3F3; color: var(--accent); }
.change-channel { text-align: center; margin-top: 18px; font-size: 13px; }
.change-channel a { color: var(--accent); }

/* Compact verification screens */
.auth-shell--verification {
    display: block;
    max-width: 520px;
    margin: 22px auto 40px;
    border-radius: 20px;
    box-shadow: 0 12px 44px #0B2D4E09;
}

.auth-shell--verification .form-panel {
    padding: 36px 40px 30px;
}

.verification-progress {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    padding: 0 0 26px;
    margin: 0 0 28px;
    border-bottom: 1px solid #E5ECF0;
    font-size: 12px;
    color: #607588;
}

.verification-progress li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verification-progress span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #EBF2F4;
    font-size: 11px;
    font-weight: 700;
}

.verification-progress .complete span {
    color: var(--accent);
    background: #E6F4F0;
}

.verification-progress .current {
    color: var(--primary);
    font-weight: 650;
}

.verification-progress .current span {
    color: white;
    background: var(--accent);
}

.auth-shell--verification h2 {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 12px;
}

.auth-shell--verification .intro {
    margin-bottom: 24px;
}

.auth-shell--verification .channel-option {
    gap: 14px;
    padding: 17px 16px;
    margin: 0 0 12px;
    border-color: #D6E2E8;
    border-radius: 12px;
    transition: border-color 120ms, background 120ms;
}

.auth-shell--verification .channel-option:has(input:checked) {
    border-color: var(--accent);
    background: #F1F8F8;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.channel-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 42px;
    flex-shrink: 0;
    color: var(--accent);
    background: #EAF2F4;
    border-radius: 10px;
}

.channel-icon svg {
    width: 23px;
    height: 23px;
}

.channel-content {
    flex: 1;
    min-width: 0;
}

.channel-content strong {
    font-size: 14px;
    font-weight: 650;
}

.auth-shell--verification .channel-address {
    font-size: 13px;
    line-height: 1.5;
    margin-top: 4px;
    color: #52697B;
}

.auth-shell--verification .channel-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
}

.auth-shell--verification .primary-button {
    justify-content: center;
    min-height: 48px;
    margin-top: 20px;
}

.auth-shell--verification .cancel-form {
    margin-top: 22px;
}

.auth-shell--verification .text-button {
    text-decoration: none;
    font-size: 12px;
    padding: 4px 0;
    color: #607588;
}

.verification-destination {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 16px;
    border: 1px solid #E2EBEF;
    background: #F7FAFB;
    border-radius: 11px;
    margin-bottom: 26px;
    overflow-wrap: anywhere;
}

.destination-symbol {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 23px;
}

.destination-label {
    display: block;
    color: #607588;
    font-size: 11px;
    margin-bottom: 4px;
}

.verification-destination strong {
    font-size: 13px;
    font-weight: 600;
}

.verification-code-form label {
    margin-top: 0;
}

.auth-shell--verification .code-input {
    text-align: center;
    font-size: 30px;
    letter-spacing: 0.4em;
    font-variant-numeric: tabular-nums;
    padding: 15px 8px 15px 20px;
    border-color: #B6C9D4;
}

.code-help {
    text-align: center;
    color: #607588;
    font-size: 11px;
    margin: 10px 0 0;
}

.verification-resend {
    text-align: center;
    margin-top: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #E5ECF0;
}

.verification-resend > p {
    color: #607588;
    font-size: 12px;
    margin: 0 0 6px;
}

.verification-resend .resend-form .primary-button {
    width: auto;
    display: inline-flex;
    min-height: 30px;
    margin: 0;
    padding: 4px 8px;
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}

.verification-resend .resend-form .primary-button:disabled {
    color: #607588;
    opacity: 1;
}

.verification-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.verification-links a {
    color: var(--accent);
    font-size: 12px;
    text-decoration: none;
}

.verification-links a:hover, .auth-shell--verification .text-button:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .auth-shell--verification {
        margin: 10px 18px 28px;
        max-width: none;
    }

    .auth-shell--verification .form-panel {
        padding: 28px 24px 26px;
    }

    .auth-shell--verification h2 {
        font-size: 24px;
    }

    .verification-progress {
        margin-bottom: 24px;
        padding-bottom: 22px;
    }
}

@media (max-width: 380px) {
    .auth-shell--verification .form-panel {
        padding: 24px 18px;
    }

    .auth-shell--verification .channel-option {
        padding: 15px 12px;
        gap: 10px;
    }

    .verification-links {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
}

.country-flag { display: inline-block; width: 20px; height: 15px; object-fit: cover; vertical-align: -2px; border: 1px solid #0B2D4E15; border-radius: 2px; }
.destination-symbol .country-flag { width: 26px; height: 20px; }

/* Six code fields with one logical verification value. */
.otp-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.otp-fieldset legend { display: block; padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 650; }
.otp-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.otp-inputs .otp-digit { width: 100%; min-width: 0; height: 64px; padding: 0; border: 1px solid #BED0DB; border-radius: 10px; background: #FBFDFE; font-size: 29px; font-weight: 550; font-variant-numeric: tabular-nums; text-align: center; caret-color: var(--accent); }
.otp-inputs .otp-digit:focus { border-color: var(--accent); background: white; outline: 3px solid #6AC6B833; outline-offset: 0; }
a.primary-button { text-decoration: none; justify-content: center; }
a.text-button { display: inline-block; }
@media (max-width: 400px) { .otp-inputs { gap: 7px; } .otp-inputs .otp-digit { height: 55px; font-size: 25px; border-radius: 8px; } }

.site-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; line-height: 1.8; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
