.provider-auth {
    --auth-navy: #0b1830;
    --auth-navy-light: #12244a;
    --auth-ink: #0e1a2e;
    --auth-muted: #4b5a70;
    --auth-accent: #ff5c7c;
    --auth-accent-deep: #b51f46;
    --auth-accent-soft: #fff0f3;
    --auth-line: #e3e8f0;
    --auth-surface: #f5f7fb;
    --auth-paper: #fff;
    --auth-danger: #b42336;
    --auth-radius: 16px;
    --auth-radius-lg: 24px;
    --auth-space-1: 0.5rem;
    --auth-space-2: 1rem;
    --auth-space-3: 1.5rem;
    --auth-space-4: 2rem;
    --auth-gutter: clamp(1rem, 3vw, 2.5rem);
    --auth-shadow: 0 2px 4px rgb(14 26 46 / 4%), 0 12px 32px -8px rgb(14 26 46 / 14%);
    --bs-danger: var(--auth-danger);
    color: var(--auth-ink);
    background: var(--auth-surface);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.provider-auth *,
.provider-auth *::before,
.provider-auth *::after {
    box-sizing: border-box;
}

.provider-auth .login-wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.provider-auth .register-wrap.style__two {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

/* Left brand panel keeps the original image background and glass box. */
.provider-auth .tf-box h2 {
    font-size: clamp(1.25rem, 1.7vw, 2.25rem);
    white-space: nowrap;
    line-height: 1.35;
    padding-inline: 0 !important;
}

.provider-auth .tf-box h2 br {
    display: inline;
}

.provider-auth .login-logo {
    max-inline-size: 180px;
    block-size: auto;
    max-block-size: 100px;
    object-fit: contain;
}

.provider-auth :is(.login-right-wrap, .register-right-wrap) {
    padding: var(--auth-gutter);
    background: var(--auth-paper) !important;
    scrollbar-gutter: stable;
}

.provider-auth :is(.login-right, .register-right) {
    inline-size: 100%;
    padding: var(--auth-space-4) !important;
    border: 1px solid var(--auth-line);
    border-radius: var(--auth-radius-lg);
    background: var(--auth-paper);
    box-shadow: var(--auth-shadow);
}

.provider-auth .login-right {
    max-inline-size: 500px;
}

.provider-auth .register-right {
    max-inline-size: 760px;
}

.provider-auth :is(.login-right, .register-right) > .mb-5 {
    margin-block: 0 var(--auth-space-4) !important;
}

.provider-auth :is(.login-right, .register-right) h2 {
    color: var(--auth-navy) !important;
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700 !important;
    line-height: 1.3;
}

.provider-auth :is(.login-right, .register-right) p {
    color: var(--auth-muted);
}

.provider-auth .login-right .badge {
    flex-shrink: 0;
    max-inline-size: 9rem;
    padding: var(--auth-space-1);
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: var(--auth-surface);
    color: var(--auth-muted);
    opacity: 1 !important;
    line-height: 1.5;
}

.provider-auth a {
    color: var(--auth-accent-deep);
    text-underline-offset: 0.2em;
}

.provider-auth a:hover {
    color: var(--auth-navy);
}

.provider-auth .ff-field {
    --ff-border: #b7c3d3;
    --ff-border-hover: #7b8da6;
    --ff-border-focus: var(--auth-accent-deep);
    --ff-bg: var(--auth-paper);
    --ff-bg-disabled: var(--auth-surface);
    --ff-text: var(--auth-ink);
    --ff-text-muted: var(--auth-muted);
    --ff-danger: var(--auth-danger);
    --ff-radius: 10px;
    --ff-height: 3.125rem;
    --ff-font: 1rem;
    --ff-label-font: 0.875rem;
    --ff-pad-x: 0.875rem;
    margin-block-end: 0;
}

.provider-auth :is(.ff-field__label, .form-check-label) {
    color: var(--auth-ink);
    font-weight: 600;
    line-height: 1.5;
}

.provider-auth .ff-field__label-text {
    flex-wrap: wrap;
}

.provider-auth .form-control {
    min-block-size: 50px;
    border-color: #b7c3d3;
    border-radius: 10px;
    color: var(--auth-ink);
    background-color: var(--auth-paper);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.provider-auth .form-control:hover:not(:disabled):not([readonly]) {
    border-color: #7b8da6;
}

.provider-auth .form-control:focus {
    border-color: var(--auth-accent-deep);
    box-shadow: 0 0 0 4px rgb(255 92 124 / 16%);
}

.provider-auth textarea.form-control {
    min-block-size: 120px;
    resize: vertical;
}

.provider-auth .form-control:is(:disabled, [readonly]) {
    background-color: var(--auth-surface);
    color: var(--auth-muted);
}

.provider-auth .form-control::placeholder {
    color: var(--auth-muted);
    opacity: 1;
}

.provider-auth .ff-field--password .ff-field__input {
    padding-inline-end: 3rem;
}

.provider-auth :is(.form-control.error, .form-control.is-invalid,
    .ff-field--invalid .ff-field__input, .form-control[aria-invalid="true"]) {
    border-color: var(--auth-danger);
}

.provider-auth :is(label.error, .ff-field__error, .ff-field__messages .error) {
    color: var(--auth-danger) !important;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-block-start: 0.375rem;
}

.provider-auth :is(input[type="checkbox"], input[type="radio"]) {
    accent-color: var(--auth-accent-deep);
    flex-shrink: 0;
    inline-size: 1.25rem;
    block-size: 1.25rem;
    cursor: pointer;
}

.provider-auth .form-check-input {
    border-color: #7b8da6;
}

.provider-auth .form-check-input:checked {
    background-color: var(--auth-accent-deep);
    border-color: var(--auth-accent-deep);
}

.provider-auth .form-check .form-check-label {
    margin-block-start: 0;
    margin-inline: 0.5rem 0;
}

.provider-auth :is(.global-image-upload, .additional-upload-dropzone) {
    border: 1px dashed #7b8da6 !important;
    border-radius: var(--auth-radius) !important;
    background-color: var(--auth-surface) !important;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.provider-auth :is(.global-image-upload, .additional-upload-dropzone):hover {
    border-color: var(--auth-accent-deep) !important;
    box-shadow: 0 0 0 3px rgb(255 92 124 / 10%);
}

.provider-auth :is(.business-plan-option, .payment-method-option, .price-box) {
    border-color: var(--auth-line) !important;
    border-radius: var(--auth-radius) !important;
    color: var(--auth-ink);
    background: var(--auth-paper);
    box-shadow: 0 2px 8px rgb(14 26 46 / 4%);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.provider-auth :is(.business-plan-option, .payment-method-option, .price-box):hover {
    border-color: #7b8da6 !important;
    box-shadow: var(--auth-shadow);
}

.provider-auth :is(.business-plan-option.active, .payment-method-option.active,
    .price-box.active) {
    border-color: var(--auth-accent-deep) !important;
    background: var(--auth-accent-soft);
    color: var(--auth-ink);
    box-shadow: 0 0 0 1px var(--auth-accent-deep), var(--auth-shadow);
}

.provider-auth .business-plan-option.active:not(.payment_methods_list_container) {
    background: var(--auth-accent-soft);
    border-color: var(--auth-accent-deep) !important;
}

.provider-auth :is(.business-plan-option, .payment-method-option):focus-within {
    outline: 3px solid var(--auth-navy-light);
    outline-offset: 3px;
}

.provider-auth .price-box.active .price-box__top h5 {
    color: var(--auth-navy) !important;
}

.provider-auth .price-box__top {
    border-radius: var(--auth-radius) var(--auth-radius) 0 0;
    background: var(--auth-surface);
}

.provider-auth .price-box.active .price-box__top {
    background: #ffd3dd;
}

.provider-auth .price-box.active .check-icon {
    color: var(--auth-accent-deep) !important;
}

.provider-auth :is(.business-plan-option h4, .price-box h5) {
    font-size: 1rem;
    line-height: 1.5;
}

.provider-auth :is(.swiper-button-next, .swiper-button-prev) {
    --swiper-navigation-color: var(--auth-navy);
}

.provider-auth :is(.btn--primary, .wizard .actions a) {
    min-block-size: 48px;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: linear-gradient(125deg, var(--auth-accent), #ff7a59);
    color: var(--auth-navy) !important;
    box-shadow: 0 8px 20px -8px rgb(181 31 70 / 40%);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.provider-auth :is(.btn--primary, .wizard .actions a):is(:hover, :focus-visible) {
    background: var(--auth-accent);
    background-color: var(--auth-accent) !important;
    box-shadow: 0 10px 24px -8px rgb(181 31 70 / 50%);
}

.provider-auth :is(.btn--primary, .wizard .actions a):active {
    background: #ff8ba2;
    background-color: #ff8ba2 !important;
    box-shadow: inset 0 2px 4px rgb(14 26 46 / 12%);
}

.provider-auth .wizard .actions a[href="#previous"] {
    background: var(--auth-paper);
    border-color: #b7c3d3;
    box-shadow: none;
}

.provider-auth .wizard .actions a[href="#previous"]:hover {
    background: var(--auth-surface);
    background-color: var(--auth-surface) !important;
    border-color: var(--auth-navy);
}

.provider-auth :is(.btn:disabled, .btn.disabled, .wizard .actions .disabled a,
    .wizard .actions a.wizard-finish-disabled) {
    background: #e3e8f0 !important;
    color: var(--auth-muted) !important;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

.provider-auth .login-footer {
    margin-block-start: var(--auth-space-3);
    border-radius: var(--auth-radius);
    background: var(--auth-navy);
}

.provider-auth :is(.login-left, .register-left, .login-right-wrap, .register-right-wrap,
    .login-right, .register-right, .content, .body, .ff-field, .ff-field__control,
    .row > *, .d-flex > *, .swiper, .global-multi-image-upload) {
    min-inline-size: 0;
}

.provider-auth :is(.login-right, .register-right, form, .form-control, .iti,
    .global-image-upload, .global-multi-image-upload, .additional-data-file-upload) {
    max-inline-size: 100%;
}

.provider-auth :is(.form-control, select, .btn, .wizard .actions a) {
    min-block-size: 50px;
}

.provider-auth :is(.btn, .wizard .actions a, .badge) {
    white-space: normal;
    overflow-wrap: anywhere;
}

.provider-auth .provider-auth-account-link {
    color: var(--auth-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.provider-auth .provider-auth-account-link a {
    display: inline-block;
    padding-block: 0.5rem;
    font-weight: 600;
    color: var(--auth-accent-deep) !important;
    margin-inline-start: 0.25rem;
}

.provider-auth .provider-auth-account-link a:hover {
    color: var(--auth-navy) !important;
}

.provider-auth :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--auth-navy-light) !important;
    outline-offset: 3px;
}

.provider-auth :is(.global-image-upload, .global-multi-image-picker, .additional-data-file-upload):focus-within {
    outline: 3px solid var(--auth-navy-light);
    outline-offset: 3px;
}

.provider-auth button.ff-field__toggle-password {
    border: 0;
    background: transparent;
    padding: 0;
    inline-size: 44px;
    block-size: 44px;
    inset-inline-end: 0;
}

.provider-auth .iti {
    display: block;
    inline-size: 100%;
    direction: ltr;
    text-align: left;
}

.provider-auth .iti input {
    inline-size: 100%;
    min-inline-size: 0;
    direction: ltr;
    text-align: left;
}

.provider-auth :is(.iti__country-list, .iti__dropdown-content) {
    max-inline-size: min(360px, calc(100vw - 2rem));
    white-space: normal;
}

.provider-auth .iti__container {
    max-inline-size: calc(100vw - 2rem);
}

.provider-auth .register-form {
    padding-block: 2rem;
}

.provider-auth .register-form ul {
    padding-inline-start: 1.25rem;
    padding-inline-end: 0;
}

.provider-auth #pac-input {
    max-inline-size: calc(100% - 1rem);
}

.provider-auth #register-vertical-steps.wizard.vertical {
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: var(--auth-space-3);
}

.provider-auth #register-vertical-steps.wizard .content {
    margin: 0;
}

.provider-auth #register-vertical-steps.wizard .content .border-bottom {
    padding-block-end: var(--auth-space-2) !important;
    border-color: var(--auth-line) !important;
    color: var(--auth-navy);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
}

.provider-auth #register-vertical-steps.wizard .steps {
    padding-block-start: 0;
}

.provider-auth #register-vertical-steps.wizard .steps ul {
    padding: 0;
    list-style: none;
}

.provider-auth #register-vertical-steps.wizard .steps ul li:not(:first-child) {
    padding-block-start: var(--auth-space-4);
}

.provider-auth #register-vertical-steps.wizard .steps ul li:not(:first-child)::after {
    inset-inline-start: 25px;
    inset-block-start: 0;
    block-size: var(--auth-space-4);
    transform: none;
    background: var(--auth-line);
}

.provider-auth #register-vertical-steps.wizard .steps ul li a {
    min-block-size: 44px;
    gap: var(--auth-space-1);
    border-radius: 10px;
    background: transparent;
    color: var(--auth-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1;
}

.provider-auth #register-vertical-steps.wizard .steps ul .number {
    inline-size: 36px;
    min-inline-size: 36px;
    block-size: 36px;
    border: 1px solid #7b8da6;
    border-radius: 50%;
    background: var(--auth-surface);
    color: var(--auth-muted);
    font-size: 0.875rem;
    font-weight: 700;
}

.provider-auth #register-vertical-steps.wizard .steps ul li.current a {
    color: var(--auth-accent-deep);
}

.provider-auth #register-vertical-steps.wizard .steps ul li.current .number {
    background: var(--auth-accent);
    border-color: var(--auth-accent-deep);
    color: var(--auth-navy);
    box-shadow: 0 0 0 4px var(--auth-accent-soft);
}

.provider-auth #register-vertical-steps.wizard .steps ul li.done a .number {
    background: var(--auth-navy-light);
    border-color: var(--auth-navy-light);
    color: var(--auth-paper);
}

.provider-auth #register-vertical-steps.wizard .steps ul li.done + li::after {
    background: var(--auth-navy-light);
}

.provider-auth #register-vertical-steps.wizard .steps ul li.error .number {
    border-color: var(--auth-danger);
    color: var(--auth-danger);
    background: var(--auth-accent-soft);
}

.provider-auth #register-vertical-steps.wizard.vertical .actions {
    grid-column: 1 / -1;
    margin-block-start: var(--auth-space-3);
    border-block-start: 1px solid var(--auth-line);
    background: var(--auth-paper);
}

.provider-auth .wizard .actions ul {
    padding: 0;
    gap: var(--auth-space-1);
}

.provider-auth #toast-container {
    max-inline-size: calc(100vw - 1.5rem);
}

.provider-auth #toast-container > div {
    inline-size: min(300px, calc(100vw - 1.5rem));
    max-inline-size: 100%;
    overflow-wrap: anywhere;
}

.provider-auth :is(.alert, .ff-field__messages, label.error) {
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

[dir="rtl"] .provider-auth .form-check {
    padding-left: 0;
    padding-inline-start: 1.5em;
}

[dir="rtl"] .provider-auth .form-check .form-check-input {
    float: right;
    margin-left: 0;
    margin-inline-start: -1.5em;
}

[dir="rtl"] .provider-auth .additional-data-file-upload .additional-file-remove-btn {
    right: auto !important;
    left: 0 !important;
    transform: translate(-50%, -50%) !important;
}

@media (max-width: 991.98px) {
    .provider-auth :is(.login-wrap, .register-wrap.style__two) {
        grid-template-columns: minmax(0, 1fr);
    }

    .provider-auth :is(.login-left, .register-left) {
        display: flex !important;
        min-block-size: clamp(220px, 36vw, 320px);
        padding: var(--auth-space-2);
    }

    .provider-auth :is(.login-left, .register-left) .tf-box {
        inline-size: min(100%, 520px);
        block-size: auto !important;
        min-block-size: 0;
        margin: var(--auth-space-2) auto !important;
        padding: var(--auth-space-3) !important;
    }

    .provider-auth :is(.login-left, .register-left) .login-logo {
        max-block-size: 72px;
    }

    .provider-auth :is(.login-right-wrap, .register-right-wrap) {
        inline-size: 100%;
        max-block-size: none;
        overflow: visible;
    }

    .provider-auth :is(.login-right, .register-right) {
        inline-size: 100%;
        padding: 1.5rem !important;
    }

    .provider-auth #register-vertical-steps.wizard.vertical {
        display: flex;
        flex-direction: column;
    }

    .provider-auth #register-vertical-steps.wizard .steps {
        padding-block-start: 0;
        margin-block-end: 1.5rem;
    }

    .provider-auth #register-vertical-steps.wizard .steps ul {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .provider-auth #register-vertical-steps.wizard .steps ul li,
    .provider-auth #register-vertical-steps.wizard .steps ul li:not(:first-child) {
        padding: 0;
        min-inline-size: 0;
    }

    .provider-auth #register-vertical-steps.wizard .steps ul::after,
    .provider-auth #register-vertical-steps.wizard .steps ul li::after {
        display: none;
    }

    .provider-auth #register-vertical-steps.wizard .steps ul li a {
        min-block-size: 44px;
        padding-block: 0.375rem;
    }

    .provider-auth #register-vertical-steps.wizard .content {
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .provider-auth :is(.login-right-wrap, .register-right-wrap) {
        padding: var(--auth-space-2) var(--auth-space-1);
    }

    .provider-auth :is(.login-right, .register-right) {
        max-inline-size: none;
        padding: 1rem !important;
    }

    .provider-auth .login-right .d-flex.justify-content-between {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .provider-auth .register-form {
        padding-block: 1rem;
    }

    .provider-auth .register-form .card {
        padding: 1rem !important;
    }

    .provider-auth .form-control {
        font-size: 1rem;
    }

    .provider-auth :is(button[type="submit"], .wizard .actions, .wizard .actions ul,
        .wizard .actions li, .wizard .actions a) {
        inline-size: 100%;
    }

    .provider-auth #register-vertical-steps.wizard.vertical .actions {
        position: static;
    }

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

    .provider-auth .wizard .actions a {
        display: flex;
        justify-content: center;
    }

    .provider-auth :is(.global-multi-image-upload-grid, .global-multi-image-picker .spartan_item_row) {
        flex-direction: column;
    }

    .provider-auth :is(.global-multi-image-picker, .spartan_item_wrapper, .global-multi-image-item) {
        inline-size: 100% !important;
        max-inline-size: 100% !important;
        min-inline-size: 0;
    }

    .provider-auth .spartan_item_row {
        margin-inline: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .provider-auth *,
    .provider-auth *::before,
    .provider-auth *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
