:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

body.auth-onboarding-page {
    min-height: 100vh;
    margin: 0;
    color: #edf5ff;
    background: #030b14;
    font-family: var(--ultron-font-family);
}

.auth-onboarding-shell {
    display: grid;
    grid-template-columns: minmax(360px, 42%) minmax(540px, 58%);
    min-height: 100vh;
}

.auth-onboarding-brand {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 4rem clamp(2.5rem, 6vw, 6.5rem);
    border-right: 1px solid #173047;
    background:
        linear-gradient(145deg, rgba(10, 31, 54, .72), rgba(5, 16, 29, .96)),
        radial-gradient(circle at 24% 25%, rgba(19, 125, 255, .35), transparent 22rem),
        #06111e;
}

.auth-onboarding-brand::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: .2;
    background-image: linear-gradient(rgba(74, 148, 211, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 148, 211, .16) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.auth-brand-logo {
    width: min(330px, 82%);
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 0 22px rgba(22, 134, 255, .3));
}

.auth-brand-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #4edcff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.auth-brand-content h1 {
    max-width: 470px;
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.auth-brand-content > p {
    max-width: 450px;
    margin: 0;
    color: #a8bbcf;
    font-size: 1.06rem;
    line-height: 1.65;
}

.auth-brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.auth-brand-features span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem .85rem;
    border: 1px solid #21415d;
    border-radius: 10px;
    color: #c5d5e4;
    background: rgba(5, 19, 33, .7);
    font-size: .82rem;
}

.auth-brand-features i {
    color: #18d6bd;
}

.auth-brand-orbit {
    position: absolute;
    border: 1px solid rgba(30, 144, 255, .17);
    border-radius: 50%;
}

.auth-brand-orbit-one {
    right: -11rem;
    bottom: -12rem;
    width: 32rem;
    height: 32rem;
}

.auth-brand-orbit-two {
    right: -3rem;
    bottom: -4rem;
    width: 18rem;
    height: 18rem;
}

.auth-onboarding-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem clamp(1.5rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 88% 12%, rgba(0, 184, 255, .1), transparent 22rem),
        #030b14;
}

.auth-onboarding-card {
    width: min(100%, 660px);
    padding: clamp(1.5rem, 3.2vw, 2.4rem);
    border: 1px solid #19334a;
    border-radius: 22px;
    background: linear-gradient(150deg, rgba(8, 24, 40, .98), rgba(4, 15, 27, .98));
    box-shadow: 0 26px 80px rgba(0, 0, 0, .42), 0 0 34px rgba(0, 132, 255, .07);
}

.auth-mobile-brand {
    display: none;
}

.auth-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    margin: 0 0 2rem;
    list-style: none;
}

.auth-progress li {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #647c92;
}

.auth-progress li:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 17px;
    left: 38px;
    width: calc(100% - 42px);
    height: 1px;
    content: "";
    background: #1b354b;
}

.auth-progress li > span {
    z-index: 1;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #25435c;
    border-radius: 50%;
    background: #071827;
    font-size: .75rem;
    font-weight: 800;
}

.auth-progress small {
    font-size: .72rem;
    font-weight: 700;
}

.auth-progress .is-active {
    color: #45b9ff;
}

.auth-progress .is-active > span {
    border-color: #168fff;
    color: white;
    background: #168fff;
    box-shadow: 0 0 18px rgba(22, 143, 255, .28);
}

.auth-progress .is-complete {
    color: #19d2ad;
}

.auth-progress .is-complete > span {
    border-color: #0d8f77;
    color: #071a1a;
    background: #18d2ad;
}

.auth-progress .is-complete:not(:last-child)::after {
    background: #128f7b;
}

.auth-form-heading {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.4rem;
}

.auth-form-icon {
    display: grid;
    flex: 0 0 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #17538a;
    border-radius: 13px;
    color: #55c9ff;
    background: #082744;
    font-size: 1.2rem;
}

.auth-form-heading h2 {
    margin: 0;
    color: #f7fbff;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.auth-form-heading p {
    margin: .2rem 0 0;
    color: #91a8bd;
    font-size: .84rem;
    line-height: 1.45;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .8rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid;
    border-radius: 11px;
    font-size: .82rem;
}

.auth-alert-success {
    border-color: rgba(20, 203, 166, .35);
    color: #6ee7ce;
    background: rgba(8, 90, 76, .18);
}

.auth-alert-danger {
    border-color: rgba(255, 75, 94, .38);
    color: #ff9aa5;
    background: rgba(109, 22, 35, .2);
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-field label,
.auth-code-form > label {
    display: block;
    margin: 0 0 .42rem;
    color: #c0d0df;
    font-size: .75rem;
    font-weight: 700;
}

.auth-field label small {
    color: #6f879c;
    font-weight: 500;
}

.auth-input {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: .7rem;
    padding: 0 .9rem;
    border: 1px solid #27435b;
    border-radius: 11px;
    background: #0a1d2f;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-input:focus-within {
    border-color: #168fff;
    background: #0b2238;
    box-shadow: 0 0 0 3px rgba(22, 143, 255, .1);
}

.auth-input > i {
    color: #65bfff;
    font-size: .95rem;
}

.auth-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #f3f8fd;
    background: transparent;
    font-size: .9rem;
}

.auth-input input::placeholder {
    color: #5f788f;
}

.auth-input button {
    display: grid;
    flex: 0 0 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    color: #83a1bb;
    background: transparent;
}

.auth-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: #97adbf;
    font-size: .78rem;
    line-height: 1.5;
}

.auth-consent input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #168fff;
}

.auth-consent strong {
    color: #55b8ff;
}

.auth-primary-button {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    border: 1px solid #35b7ff;
    border-radius: 11px;
    color: white;
    background: linear-gradient(100deg, #225cff, #079fd4);
    box-shadow: 0 10px 28px rgba(19, 110, 255, .2);
    font-size: .9rem;
    font-weight: 800;
    transition: transform .16s ease, filter .16s ease;
}

.auth-primary-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.auth-primary-button:disabled {
    cursor: wait;
    opacity: .68;
}

.auth-form-footer {
    margin: 1.25rem 0 0;
    color: #7f96aa;
    font-size: .8rem;
    text-align: center;
}

.auth-form-footer a {
    color: #42b8ff;
    font-weight: 700;
    text-decoration: none;
}

.auth-destination-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1rem;
}

.auth-destination-summary span,
.auth-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .75rem;
    border: 1px solid #1c435e;
    border-radius: 9px;
    color: #aac0d2;
    background: #081b2c;
    font-size: .78rem;
}

.auth-channel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .65rem;
}

.auth-channel-grid form {
    display: contents;
}

.auth-channel {
    display: grid;
    min-height: 92px;
    place-items: center;
    align-content: center;
    gap: .3rem;
    border: 1px solid #223f57;
    border-radius: 11px;
    color: #c4d3df;
    background: #081a2a;
    font-size: .76rem;
    font-weight: 700;
}

.auth-channel i {
    color: #44bbff;
    font-size: 1.25rem;
}

.auth-channel small {
    color: #607589;
    font-size: .59rem;
}

.auth-channel:not(:disabled):hover,
.auth-channel.is-selected {
    border-color: #168fff;
    background: #0a2842;
}

.auth-channel:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.auth-provider-note {
    display: flex;
    gap: .5rem;
    margin: .85rem 0 0;
    color: #748da2;
    font-size: .72rem;
    line-height: 1.45;
}

.auth-code-form {
    margin-top: 1.25rem;
}

.auth-code-input {
    width: 100%;
    height: 68px;
    border: 1px solid #2a526e;
    border-radius: 12px;
    outline: 0;
    color: #fff;
    background: #081b2d;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: .42em;
    text-align: center;
}

.auth-code-input:focus {
    border-color: #168fff;
    box-shadow: 0 0 0 3px rgba(22, 143, 255, .1);
}

.auth-code-form p {
    margin: -.35rem 0 0;
    color: #6d859a;
    font-size: .7rem;
    text-align: center;
}

.auth-empty-code {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-top: 1rem;
    border: 1px dashed #24445d;
    border-radius: 11px;
    color: #71899e;
    font-size: .8rem;
}

.auth-verified-badge {
    margin-bottom: 1rem;
    border-color: rgba(16, 199, 161, .32);
    color: #67dec5;
    background: rgba(8, 91, 76, .15);
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .85rem;
    border: 1px solid rgba(16, 199, 161, .24);
    border-radius: 11px;
    color: #57d8bd;
    background: rgba(5, 75, 66, .14);
}

.auth-security-note i {
    font-size: 1.2rem;
}

.auth-security-note div {
    display: grid;
    gap: .2rem;
}

.auth-security-note strong {
    color: #c7f7ec;
    font-size: .78rem;
}

.auth-security-note span {
    color: #7eaeaa;
    font-size: .7rem;
    line-height: 1.45;
}

.auth-security-note--authorization {
    margin-bottom: 1rem;
    border-color: rgba(38, 154, 255, .34);
    color: #45b6ff;
    background: linear-gradient(135deg, rgba(18, 91, 154, .2), rgba(8, 40, 68, .32));
}

.auth-security-note--authorization strong {
    color: #d8efff;
}

.auth-security-note--authorization span {
    color: #9fc1d9;
}

@media (max-width: 991.98px) {
    .auth-onboarding-shell {
        grid-template-columns: 1fr;
    }

    .auth-onboarding-brand {
        display: none;
    }

    .auth-onboarding-content {
        min-height: 100vh;
        padding: 1.25rem;
    }

    .auth-mobile-brand {
        display: block;
        margin-bottom: 1.2rem;
        text-align: center;
    }

    .auth-mobile-brand img {
        width: 210px;
        max-width: 72%;
        filter: drop-shadow(0 0 14px rgba(22, 134, 255, .22));
    }
}

@media (max-width: 575.98px) {
    .auth-onboarding-content {
        align-items: flex-start;
        padding: .75rem;
    }

    .auth-onboarding-card {
        padding: 1.15rem;
        border-radius: 16px;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-progress small {
        display: none;
    }

    .auth-progress li {
        justify-content: flex-start;
    }

    .auth-progress li:not(:last-child)::after {
        width: calc(100% - 36px);
    }

    .auth-channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-primary-button,
    .auth-input {
        transition: none;
    }
}
