.auth-page .auth-main {
    min-height: 100vh;
    padding-top: var(--header-h);
    background-color: #efe8ff;
    background-image: linear-gradient(135deg, rgba(249, 247, 255, .24), rgba(244, 239, 255, .08)), url('../images/register-onboard.jpeg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

.auth-page .auth-section {
    display: flex;
    min-height: calc(100vh - var(--header-h));
    align-items: center;
    padding: 30px 0 60px;
}

.auth-page .auth-card {
    max-width: 1040px;
    padding: 52px 62px 44px;
    border: 1px solid rgba(91, 58, 151, .14);
    border-radius: 32px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(64, 36, 123, .22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-page .auth-card--login {
    max-width: 820px;
}

.auth-login-wizard [hidden] {
    display: none !important;
}

.auth-wizard-header {
    text-align: center;
}

.auth-stepper {
    display: grid;
    max-width: 560px;
    margin: 24px auto 30px;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) minmax(40px, 110px) minmax(0, 1fr);
    align-items: center;
    list-style: none;
}

.auth-stepper__item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    color: #9291a0;
}

.auth-stepper__item:last-child {
    justify-self: end;
}

.auth-stepper__number {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #d9d6e1;
    border-radius: 50%;
    background: #fff;
    font-size: .84rem;
    font-weight: 850;
}

.auth-stepper__item strong,
.auth-stepper__item small {
    display: block;
}

.auth-stepper__item strong {
    color: #5f5e6e;
    font-size: .86rem;
}

.auth-stepper__item small {
    margin-top: 2px;
    font-size: .7rem;
    font-weight: 650;
}

.auth-stepper__item.is-active,
.auth-stepper__item.is-complete {
    color: #6420d2;
}

.auth-stepper__item.is-active .auth-stepper__number,
.auth-stepper__item.is-complete .auth-stepper__number {
    border-color: #6b25d8;
    color: #fff;
    background: linear-gradient(145deg, #7631e2, #5415c5);
    box-shadow: 0 8px 18px rgba(90, 28, 202, .2);
}

.auth-stepper__item.is-active strong,
.auth-stepper__item.is-complete strong {
    color: #29213a;
}

.auth-stepper__line {
    height: 2px;
    margin: 0 14px;
    border-radius: 999px;
    background: #e3dfeb;
}

.auth-wizard-panel {
    animation: auth-panel-enter .24s ease both;
}

@keyframes auth-panel-enter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-panel-heading {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    gap: 15px;
}

.auth-panel-heading__icon {
    display: grid;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 11px;
    place-items: center;
    border-radius: 14px;
    color: #6220ce;
    background: #f1ebff;
}

.auth-panel-heading__icon svg,
.auth-input-icon > svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.auth-panel-heading small {
    display: block;
    margin-bottom: 3px;
    color: #6b27d4;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.auth-panel-heading h2 {
    margin: 0 0 4px;
    color: #18182b;
    font-size: 1.42rem;
    letter-spacing: -.025em;
}

.auth-panel-heading p {
    margin: 0;
    color: #777687;
    font-size: .88rem;
}

.auth-brand-field {
    max-width: 620px;
    margin-inline: auto !important;
}

.auth-input-icon {
    position: relative;
}

.auth-input-icon > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 18px;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    color: #6f6680;
    pointer-events: none;
}

.auth-page .auth-input-icon input {
    min-height: 62px;
    padding-left: 52px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 720;
}

.auth-field-hint,
.auth-field-error {
    margin: 9px 3px 0;
    color: #7c7988;
    font-size: .78rem;
}

.auth-field-error {
    color: #b42318;
    font-weight: 700;
}

.auth-last-used {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5f25bd;
    font-weight: 750;
}

.auth-last-used > span {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #6a27d2;
    font-size: .65rem;
}

.auth-page .auth-actions--single {
    max-width: 620px;
    margin: 24px auto 18px;
}

.auth-page .auth-actions--single .btn {
    width: 100%;
}

.auth-page .auth-actions .btn.is-loading {
    cursor: wait;
}

.auth-selected-brand {
    display: grid;
    margin-bottom: 20px;
    padding: 13px 15px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border: 1px solid #ded8ec;
    border-radius: 14px;
    background: #faf8ff;
}

.auth-selected-brand__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #7631e2, #5015bc);
    font-size: 1.05rem;
    font-weight: 850;
}

.auth-selected-brand small,
.auth-selected-brand strong {
    display: block;
}

.auth-selected-brand small {
    margin-bottom: 2px;
    color: #838090;
    font-size: .7rem;
    font-weight: 700;
}

.auth-selected-brand strong {
    overflow: hidden;
    color: #222134;
    font-size: .94rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-selected-brand button {
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    color: #6321cb;
    background: #eee8fb;
    cursor: pointer;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
}

.auth-selected-brand button:hover,
.auth-selected-brand button:focus-visible {
    background: #e4d9f8;
    outline: none;
}

.auth-account-grid {
    grid-template-columns: 1fr !important;
}

.auth-card__header {
    margin-bottom: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e9e7ee;
}

.auth-card__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #6222d3;
    font-size: .9rem;
    font-weight: 850;
    letter-spacing: .085em;
    text-transform: uppercase;
}

.auth-card__header h1 {
    margin: 0 0 9px;
    color: #11152f;
    font-size: clamp(2.25rem, 4.5vw, 3.35rem);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.auth-card__header p {
    margin: 0;
    color: #6f7080;
    font-size: 1rem;
}

.auth-page .saas-form-grid {
    gap: 14px 18px;
}

.auth-page .field {
    margin: 0;
}

.auth-page .field label {
    margin-bottom: 9px;
    color: #24253b;
    font-size: .9rem;
    font-weight: 700;
}

.auth-page .field input,
.auth-page .field select {
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid #dcdce3;
    border-radius: 11px;
    color: #17182b;
    background: #fff;
    box-shadow: 0 1px 2px rgba(28, 24, 48, .03);
}

.auth-page .field input::placeholder {
    color: #9696a5;
}

.auth-page .field input:focus,
.auth-page .field select:focus {
    border-color: #7b35df;
    box-shadow: 0 0 0 4px rgba(117, 47, 220, .12);
}

.auth-phone {
    position: relative;
    display: grid;
    grid-template-columns: minmax(170px, .85fr) minmax(0, 1fr);
}

.auth-page .auth-phone > input[type="tel"] {
    min-width: 0;
    border-left: 0;
    border-radius: 0 11px 11px 0;
}

.auth-page .auth-country-select {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 36px 0 13px;
    overflow: hidden;
    border: 1px solid #dcdce3;
    border-radius: 11px 0 0 11px;
    color: #28283a;
    background-color: #f9f8fc;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 750;
    text-overflow: ellipsis;
}

.auth-page .auth-country-select:focus {
    position: relative;
    z-index: 2;
    border-color: #7b35df;
    outline: none;
    box-shadow: 0 0 0 4px rgba(117, 47, 220, .12);
}

.auth-country-trigger {
    display: flex;
    min-width: 0;
    min-height: 54px;
    padding: 0 13px;
    align-items: center;
    gap: 8px;
    border: 1px solid #dcdce3;
    border-radius: 11px 0 0 11px;
    color: #28283a;
    background: #f9f8fc;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
}

.auth-country-trigger:hover,
.auth-country-trigger:focus-visible,
.auth-country-trigger[aria-expanded="true"] {
    position: relative;
    z-index: 1;
    border-color: #7b35df;
    outline: none;
    box-shadow: 0 0 0 4px rgba(117, 47, 220, .12);
}

.auth-country-trigger__flag {
    font-size: 1.18rem;
    line-height: 1;
}

.auth-country-trigger svg {
    width: 15px;
    margin-left: auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform .18s ease;
}

.auth-country-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.auth-country-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    width: min(390px, 100%);
    overflow: hidden;
    border: 1px solid #ded9e9;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(50, 31, 89, .2);
}

.auth-country-search {
    position: relative;
    display: block;
    margin: 0 !important;
    padding: 12px;
    border-bottom: 1px solid #ece9f1;
    background: #faf9fc;
}

.auth-country-search svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 25px;
    width: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #777488;
    stroke-linecap: round;
    stroke-width: 1.7;
    pointer-events: none;
}

.auth-page .auth-country-search input {
    min-height: 42px;
    padding: 0 13px 0 39px;
    border-radius: 9px;
    font-size: .88rem;
}

.auth-country-options {
    max-height: 270px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
    scrollbar-color: #c9bddc transparent;
}

.auth-country-option {
    display: grid;
    width: 100%;
    min-height: 48px;
    padding: 7px 10px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    color: #29283b;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.auth-country-option:hover,
.auth-country-option:focus-visible {
    outline: none;
    background: #f4effd;
}

.auth-country-option.is-selected {
    color: #5720be;
    background: #eee7fb;
}

.auth-country-option__flag {
    font-size: 1.15rem;
}

.auth-country-option__name {
    min-width: 0;
}

.auth-country-option__name strong,
.auth-country-option__name small {
    display: block;
}

.auth-country-option__name strong {
    overflow: hidden;
    font-size: .84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-country-option__name small {
    color: #858194;
    font-size: .68rem;
    font-weight: 700;
}

.auth-country-option b {
    font-size: .78rem;
}

.auth-country-empty {
    margin: 0;
    padding: 22px 14px;
    color: #777488;
    font-size: .82rem;
    text-align: center;
}

.auth-password {
    position: relative;
}

.auth-password input {
    padding-right: 54px !important;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 7px;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #77788b;
    background: transparent;
    cursor: pointer;
}

.auth-password__toggle:hover,
.auth-password__toggle:focus-visible {
    color: #6120cd;
    background: #f1ebff;
    outline: none;
}

.auth-password__toggle svg,
.auth-security__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-security {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 13px 16px;
    border-radius: 12px;
    color: #222239;
    background: #f4f0ff;
}

.auth-security__icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 9px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #7430e3, #5013c3);
    box-shadow: 0 8px 18px rgba(85, 22, 196, .2);
}

.auth-security strong,
.auth-security small {
    display: block;
}

.auth-security strong {
    margin-bottom: 3px;
    font-size: .92rem;
}

.auth-security small {
    color: #69697b;
    font-size: .82rem;
}

.auth-remember {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    color: #4d4d60;
    font-size: .9rem;
    font-weight: 650;
    cursor: pointer;
}

.auth-remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #6821d6;
}

.auth-page .saas-form-errors {
    margin-bottom: 26px;
}

.auth-page .auth-actions {
    gap: 28px;
    padding-top: 4px;
}

.auth-page .auth-actions .btn {
    flex: 1 1 0;
    min-height: 56px;
    border-width: 1px;
    border-radius: 16px;
    font-size: .98rem;
}

.auth-page .auth-actions .btn-primary {
    border-color: transparent;
    background: linear-gradient(90deg, #5420d7 0%, #741ee2 100%);
    box-shadow: 0 12px 24px rgba(90, 30, 209, .22);
}

.auth-page .auth-actions .btn-primary:hover {
    background: linear-gradient(90deg, #4817c5 0%, #6315cf 100%);
}

.auth-page .auth-actions .btn-ghost {
    border-color: #dcdce4;
    color: #202137;
    background: #fff;
}

.auth-page .auth-switch {
    margin: -4px 0 0;
    text-align: center;
    color: #707083;
    font-size: .9rem;
}

.auth-page .auth-switch a {
    color: #6020cf;
    font-weight: 800;
}

@media (max-width: 900px) {
    .auth-page .auth-section {
        padding: 24px 0 54px;
    }

    .auth-page .auth-card {
        padding: 38px 34px 34px;
        border-radius: 26px;
    }
}

@media (max-width: 768px) {
    .auth-page .auth-main {
        background-attachment: scroll;
    }

    .auth-page .saas-form-grid {
        gap: 10px;
    }

    .auth-card__header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
}

@media (max-width: 520px) {
    .auth-page .auth-section {
        align-items: flex-start;
        padding: 24px 0 48px;
    }

    .auth-page .auth-card {
        padding: 28px 20px 24px;
        border-radius: 22px;
    }

    .auth-card__header h1 {
        font-size: 2rem;
    }

    .auth-phone {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .auth-page .auth-country-select,
    .auth-page .auth-phone > input[type="tel"] {
        border: 1px solid #dcdce3;
        border-radius: 11px;
    }

    .auth-page .auth-actions {
        gap: 12px;
    }

    .auth-security {
        align-items: flex-start;
    }

    .auth-stepper {
        margin: 20px 0 26px;
        grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    }

    .auth-stepper__item {
        gap: 8px;
    }

    .auth-stepper__item:last-child {
        justify-self: stretch;
    }

    .auth-stepper__number {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .auth-stepper__item small,
    .auth-panel-heading p {
        display: none;
    }

    .auth-stepper__line {
        margin: 0 6px;
    }

    .auth-panel-heading {
        margin-bottom: 20px;
    }

    .auth-panel-heading h2 {
        font-size: 1.2rem;
    }

    .auth-selected-brand {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        padding: 11px;
    }

    .auth-selected-brand__avatar {
        width: 40px;
        height: 40px;
    }
}
