/**
 * Auth pages + register wizard — complements style-2.5.1.* and --vr-color-main.
 * Page background stays white (no grey band); emphasis is on the card + steps.
 */

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 1.25rem 4rem;
    min-height: min(720px, calc(100vh - 120px));
    width: 100%;
    background: #fff;
}

.auth-container--register {
    background: #fff;
}

.auth-box {
    width: 100%;
    max-width: 560px;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
    padding: 2.5rem 2.75rem;
    border-radius: 12px;
    border: 1px solid #e4e7ee;
    background: #fff;
    box-shadow:
        0 4px 6px rgba(44, 52, 76, 0.04),
        0 12px 32px rgba(44, 52, 76, 0.08);
}

.auth-box--wizard {
    max-width: 640px;
    padding: 2.25rem 2.5rem 2.5rem;
}

.auth-wizard-alerts {
    margin-bottom: 0.5rem;
}

.auth-box .title,
.auth-box h1.title {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #1a1d26;
}

.auth-wizard-progress {
    margin-bottom: 1rem;
}

.auth-wizard-progress__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.25rem;
    position: relative;
}

.auth-wizard-progress__steps::before {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 18px;
    height: 3px;
    background: #e8eaef;
    border-radius: 2px;
    z-index: 0;
}

.auth-wizard-progress__step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 33.33%;
}

.auth-wizard-progress__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    background: #eef0f5;
    color: #7a8499;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e4e7ee;
    margin-bottom: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-wizard-progress__step.is-reached .auth-wizard-progress__num {
    background: #e6faf8;
    color: var(--vr-color-main, #1bc5bd);
    box-shadow: 0 0 0 2px rgba(27, 197, 189, 0.35);
}

.auth-wizard-progress__step.is-current .auth-wizard-progress__num {
    background: var(--vr-color-main, #1bc5bd);
    color: #fff;
    box-shadow: 0 4px 12px rgba(27, 197, 189, 0.45);
}

.auth-wizard-progress__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b95a8;
    line-height: 1.25;
    padding: 0 0.15rem;
}

.auth-wizard-progress__step.is-current .auth-wizard-progress__label {
    color: #2c344c;
}

.auth-wizard-inline-error {
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.auth-wizard-lead {
    text-align: center;
    margin: 0 0 1.5rem;
    min-height: 3.25rem;
}

.auth-wizard-lead__title {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a1d26;
    margin-bottom: 0.35rem;
}

.auth-wizard-lead__sub {
    display: block;
    font-size: 0.875rem;
    color: #5c6478;
    line-height: 1.45;
    font-weight: 400;
}

.auth-register-step {
    display: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    animation: auth-step-in 0.28s ease;
}

.auth-register-step.is-active {
    display: block;
}

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

.auth-box .form-group {
    margin-bottom: 1rem;
}

.auth-form-input,
.auth-box select.form-control {
    min-height: 48px;
    border-radius: 8px;
    border-color: #dfe3ea;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-input:focus,
.auth-box select.form-control:focus {
    border-color: var(--vr-color-main, #1bc5bd);
    box-shadow: 0 0 0 3px rgba(27, 197, 189, 0.18);
    outline: none;
}

.auth-box .btn.btn-custom.btn-block {
    min-height: 48px;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.01em;
}

.auth-wizard-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
}

/* Step 1: full-width primary at bottom of step (not squeezed beside fields) */
.auth-wizard-actions--footer {
    clear: both;
    margin-top: 1.75rem;
    padding-top: 0.25rem;
}

.auth-wizard-actions--footer .btn-block,
.auth-wizard-actions--footer .btn.btn-custom {
    width: 100% !important;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
    text-align: center;
}

.auth-wizard-actions--split {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.auth-wizard-actions--split .btn {
    min-height: 48px;
    border-radius: 8px;
    font-weight: 600;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.auth-wizard-actions--split .auth-wizard-next,
.auth-wizard-actions--split .auth-wizard-submit {
    flex: 1 1 200px;
}

.auth-wizard-actions--split .auth-wizard-back {
    flex: 0 1 auto;
    background: #fff;
    border: 1px solid #dfe3ea;
    color: #2c344c;
}

.auth-wizard-actions--split .auth-wizard-back:hover {
    background: #f7f8fc;
    border-color: #c5cad6;
}

.auth-section-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5c6478;
    margin-bottom: 0.65rem;
}

.auth-account-type-group .custom-control.custom-radio {
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    border: 1px solid #e4e7ee;
    border-radius: 10px;
    background: #fafbfc;
    margin-bottom: 0.5rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Step 2 (account & role): calmer layout, more air */
#auth_register_wizard .auth-register-step--step2 {
    padding-top: 0.35rem;
}

#auth_register_wizard .auth-register-step--step2 .auth-account-type-group {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.35rem 1.4rem;
    background: #fafbfd;
    border: 1px solid #e8ebf2;
    border-radius: 12px;
}

#auth_register_wizard .auth-register-step--step2 .auth-account-type-group .auth-section-label {
    margin-bottom: 1rem;
}

#auth_register_wizard .auth-register-step--step2 .auth-account-type-group .custom-control.custom-radio {
    padding: 1.05rem 1.15rem 1.05rem 2.65rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
}

#auth_register_wizard .auth-register-step--step2 .auth-account-type-group .custom-control.custom-radio:last-of-type {
    margin-bottom: 0;
}

#auth_register_wizard .auth-register-step--step2 .auth-account-type-group .custom-control-label {
    line-height: 1.55;
    font-size: 0.9375rem;
}

#auth_register_wizard .auth-register-step--step2 .auth-provider-panel {
    margin-top: 0;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.5rem 1.35rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8ebf2;
    border-inline-start: 4px solid var(--vr-color-main, #1bc5bd);
    box-shadow: 0 2px 12px rgba(44, 52, 76, 0.04);
}

#auth_register_wizard .auth-register-step--step2 .auth-provider-intro {
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0 0 1.35rem;
    color: #5c6478;
    max-width: 42em;
}

#auth_register_wizard .auth-register-step--step2 .auth-provider-panel .form-group {
    margin-bottom: 1.35rem;
}

#auth_register_wizard .auth-register-step--step2 .auth-provider-panel .form-group:last-child {
    margin-bottom: 0;
}

#auth_register_wizard .auth-register-step--step2 .auth-provider-panel .control-label {
    margin-bottom: 0.45rem;
    display: block;
    font-size: 0.875rem;
}

#auth_register_wizard .auth-register-step--step2 .auth-provider-panel select.auth-form-input {
    margin-top: 0.15rem;
}

#auth_register_wizard .auth-register-step--step2 .auth-wizard-actions--split {
    margin-top: 0.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eceef3;
    gap: 1rem;
}

.auth-account-type-group .custom-control.custom-radio:last-of-type {
    margin-bottom: 0;
}

.auth-account-type-group .custom-control.custom-radio:has(.custom-control-input:checked) {
    border-color: var(--vr-color-main, #1bc5bd);
    background: #fff;
    box-shadow: 0 0 0 1px var(--vr-color-main, #1bc5bd);
}

.auth-account-type-group .custom-control-label {
    font-size: 0.9375rem;
    line-height: 1.45;
    cursor: pointer;
}

.auth-provider-panel {
    margin-top: 0.5rem;
    padding: 1.25rem 1.35rem 0.5rem;
    border-radius: 10px;
    border: 1px solid #e4e7ee;
    border-inline-start: 4px solid var(--vr-color-main, #1bc5bd);
    background: #fafbfd;
}

.auth-provider-panel .control-label {
    font-weight: 600;
    color: #2c344c;
}

.p-social-media {
    font-size: 0.9375rem;
}

.auth-box .social-login {
    margin-bottom: 0.25rem;
}

.auth-box .form-text.text-muted {
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-top: 0.35rem;
}

.auth-box .link-terms {
    color: var(--vr-color-main, #1bc5bd);
}

.login-modal {
    max-width: 420px !important;
}

.login-modal .modal-content {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #e4e7ee;
    box-shadow: 0 16px 48px rgba(44, 52, 76, 0.12) !important;
}

.login-modal .auth-box {
    padding: 2rem 1.75rem 1.75rem;
}

.location-modal {
    max-width: 520px !important;
}

@media (max-width: 575.98px) {
    .auth-container {
        padding: 1.25rem 0.75rem 2.5rem;
    }

    .auth-box,
    .auth-box--wizard {
        padding: 1.5rem 1.15rem;
        margin-top: 0.5rem;
        border-radius: 10px;
    }

    .auth-box .title,
    .auth-box h1.title {
        font-size: 1.375rem;
        margin-bottom: 1rem;
    }

    .auth-wizard-progress__label {
        font-size: 0.625rem;
    }

    .auth-wizard-progress__num {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }

    .auth-account-type-group .custom-control.custom-radio {
        padding-left: 2.35rem;
    }

    #auth_register_wizard .auth-register-step--step2 .auth-account-type-group,
    #auth_register_wizard .auth-register-step--step2 .auth-provider-panel {
        padding: 1.1rem 1rem 1.15rem;
    }

    .auth-wizard-actions--split {
        flex-direction: column;
    }

    .auth-wizard-actions--split .btn {
        width: 100%;
    }
}
