#loginSignupModal {
    .error { color: red; }
    .text-orange { color: var(--ce-main-color) !important; }
    .text-grey { color: #6b7280; }
    .cursor-pointer { cursor: pointer; }
    span.text-danger { font-weight: 700; }
    .hidden { display: none !important; }
    .text-dark-label { color: #1f2937 !important; }

    .popup-modal-dialog {
        max-width: 500px !important;
    }
    .modal-content {
        overflow: hidden;
        border-radius: 16px !important;
    }
    .modal-body { 
        overflow-y: auto;
        overflow-x: hidden;
    }
    .modal-header {
        border-radius: 50%;
        background: #f3f4f6;
        color: #374151;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 8px;
        border: none;
        i { font-size: 1rem !important; }
    }
    .modalAuthSection {
        min-height: auto !important;
        padding: 0 !important;
    }

    .rightPanel {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    .emailCheckPanel,
    .signupFormPanel {
        display: none;
        padding: 32px 32px 24px !important;
        &.active {
            display: block;
        }
    }

    .login-fields-inline {
        margin-top: 4px;
    }

    .popup-heading {
        font-size: 1.4rem !important;
        color: #1f2937 !important;
        letter-spacing: -0.01em;
    }

    /* Logo wrapper */
    .popup-logo-wrap {
        width: 200px;
        margin: auto;
        margin-bottom: 16px;
    }
    .popup-logo {
        max-width: 100%;
        height: auto;
    }

    .social-login-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        margin-bottom: 16px;
        border-top: 1px solid #ddd;
        padding-top: 16px;
    }
    .social-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 10px;
        border-radius: 10px;
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1.5px solid #e5e7eb;
        background: #fff;
        color: #374151;
        &:hover {
            background: #f9fafb;
            border-color: #d1d5db;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        }
        i, svg {
            font-size: 1.15rem;
            flex-shrink: 0;
        }
        span {
            font-size: 0.85rem !important;
        }
    }
    .social-btn-facebook {
        i { color: #1877F2; }
    }
    .social-btn-linkedin {
        i { color: #0A66C2; }
    }

    .or-separator {
        display: flex;
        align-items: center;
        margin: 16px 0 8px 0;
        span {
            padding: 0 14px;
            color: #9ca3af;
            font-size: 0.8rem !important;
            font-weight: 500;
            white-space: nowrap;
        }
        &::before,
        &::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #e5e7eb;
        }
    }

    .dotted-separator {
        border: none;
        border-top: 2px dotted #d1d5db;
        margin: 12px 0;
    }

    .popup-back-row {
        display: flex;
        align-items: center;
    }
    .back-arrow {
        background: none;
        border: none;
        cursor: pointer;
        padding: 4px 0;
        border-radius: 6px;
        color: #374151;
        font-size: 1rem;
        transition: background 0.2s;
    }

    .modal-form-step {
        display: none;
    }
    .modal-form-step.active {
        display: block;
    }
    #modal-multi-step-form-0 {
        padding: 0;
    }
    .form-container {
        padding: 0 !important;
    }
    .content-wrapper {
        padding: 0 !important;
    }

    .form-group {
        margin: 0 0 0.5rem 0 !important;
    }
    label {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        color: #374151;
    }
    .domicile-block label{
        margin-bottom: 0 !important;
    }
    .iti__country {
        display: flex;
        font-size: 12px;
    }
    .form-control,
    .form-select {
        font-size: 0.85rem !important;
        padding: 10px 12px !important;
        height: auto !important;
        min-height: unset !important;
        border: 1px solid #e5e7eb;
        border-radius: 8px !important;
        background-color: #f9fafb !important;
        transition: border-color 0.2s, box-shadow 0.2s;
        &:focus {
            border-color: var(--ce-main-color) !important;
            box-shadow: 0 0 0 3px rgba(9, 124, 172, 0.1) !important;
            background-color: #fff !important;
        }
    }
    p {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }
    small {
        font-size: 0.7rem !important;
    }

    .input-group {
        position: relative !important;
        .form-control {
            padding-right: 36px !important;
        }
        .input-group-append {
            position: absolute !important;
            right: 12px !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            z-index: 5 !important;
            i {
                font-size: 0.85rem !important;
                line-height: 1 !important;
                color: #6b7280;
            }
        }
    }

    .btn-primary-action {
        background-color: var(--ce-main-color) !important;
        color: #fff !important;
        border: none;
        font-size: 0.9rem !important;
        padding: 10px 20px !important;
        border-radius: 8px !important;
        transition: opacity 0.2s, transform 0.1s;
        &:hover {
            opacity: 0.9;
        }
        &:active {
            transform: scale(0.99);
        }
    }
    .btn-secondary-action {
        background-color: var(--ce-main-color-dark-blue) !important;
        color: #fff !important;
        border: none;
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
        border-radius: 8px !important;
        &:hover {
            opacity: 0.9;
        }
    }

    .button-group {
        margin-top: 8px !important;
        gap: 10px !important;
        display: flex !important;
        justify-content: center !important;
    }
    .text-blue{
        color: var(--ce-main-color)!important;
    }

    .radio-row {
        gap: 8px;
        display: flex;
    }
    .radio-label-text {
        font-size: 11px !important;
        line-height: 1.3;
        cursor: pointer;
    }
    .radio-label-text a {
        font-size: 11px !important;
    }

    .customInputs {
        position: relative;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        display: block;
    }
    .customInputs input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        margin: 0;
        z-index: 1;
    }
    .checkmark {
        position: absolute;
        top: 0;
        left: 0;
        width: 18px !important;
        height: 18px !important;
        background-color: #e5e7eb;
        border-radius: 50%;
        &::after {
            content: "";
            position: absolute;
            display: none;
            border-radius: 50%;
            background: white;
            width: 8px !important;
            height: 8px !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
        }
    }
    .customInputs:hover input ~ .checkmark { background-color: #d1d5db; }
    .customInputs input:checked ~ .checkmark { background-color: var(--ce-main-color); }
    .customInputs input:checked ~ .checkmark:after { display: block; }
    .customInputs.iAgree .error,
    .customInputs.marketing_emails .error {
        display: block;
        position: absolute;
        left: 0;
        top: 100%;
        white-space: nowrap;
    }
    .iAgreeText .error {
        display: block;
    }

    .code-block { flex-direction: row !important; }
    .otp-step-panel .otp-input {
        font-size: 1.2rem !important;
        padding: 8px !important;
        height: 46px !important;
        width: 46px !important;
        border: 1.5px solid #d1d5db !important;
        border-radius: 10px !important;
        flex-shrink: 0;
        background: #f9fafb !important;
    }
    .otp-step-panel .otp-input:focus {
        border-color: var(--ce-main-color) !important;
        box-shadow: 0 0 0 3px rgba(9, 124, 172, 0.12) !important;
        background: #fff !important;
    }
    .otp-buttons .btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
        min-height: 42px !important;
        white-space: nowrap;
    }
    .code-block {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    .cloudflare-captcha {
        display: flex !important;
        justify-content: center !important;
        .captcha-loading {
            font-size: 0.75rem;
            padding: 8px 0;
        }
    }

    .iti {
        width: 100% !important;
    }
    .iti__flag-container {
        height: 100% !important;
    }
    .iti__selected-flag {
        padding: 0 6px !important;
        height: 100% !important;
    }
    .iti__selected-dial-code {
        font-size: 0.8rem !important;
        display: none;
    }
    .iti__selected-flag:after {
        content: '';
        width: 1px;
        height: 24px;
        margin-left: 6px;
        background: #d1d5db;
    }
    .iti--allow-dropdown .iti__flag-container:hover .iti__selected-flag { background-color: transparent; }
    .iti--separate-dial-code .iti__selected-flag {
        background: transparent !important;
    }
    #phone_number {
        padding-left: 50px !important;
    }

    #cphContent_LoginControl_pnlErrorMsg {
        display: none;
        font-size: 0.78rem !important;
        padding: 8px 12px !important;
        margin-bottom: 8px !important;
        border-radius: 8px !important;
        h6 {
            margin: 0 !important;
            font-size: 0.75rem !important;
        }
    }
    .otp_field {
        width: 10% !important;
        display: inline-flex;
    }

    .popup-disclaimer {
        border-top: 1px solid #f3f4f6;
        padding-top: 12px;
        p {
            font-size: 0.7rem !important;
            color: #9ca3af !important;
            line-height: 1.4 !important;
            margin-bottom: 4px !important;
        }
        a {
            font-size: 0.7rem !important;
            color: var(--ce-main-color) !important;
        }
    }

    .email-check-error {
        font-size: 0.78rem !important;
    }

    #TwoFA_modal {
        .modal-header {
            border-radius: 0 !important;
            width: 100% !important;
            height: auto !important;
            padding: 12px 16px !important;
            margin: 0 !important;
            background-color: #097CAC !important;
            color: #fff !important;
        }
        h1 {
            font-size: 1.2rem !important;
            margin-top: 10px !important;
            margin-bottom: 10px !important;
        }
    }
}

@media (max-width: 576px) {
    #loginSignupModal {
        .popup-modal-dialog {
            max-width: calc(100% - 1rem) !important;
            margin: 0.5rem auto;
        }
        .emailCheckPanel,
        .signupFormPanel {
            padding: 24px 20px 20px !important;
        }
        .social-login-btns {
            flex-direction: column;
            gap: 8px;
        }
        .social-btn {
            width: 100%;
        }
        .otp-step-panel .otp-input {
            height: 40px !important;
            width: 40px !important;
            font-size: 1rem !important;
        }
    }
}
