.authForm {
    padding: 153px 0 137px;
    background: url(../images/authImg/bgImage.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.modalOverlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .7);
    display: block;
    transition: .3s;
    backdrop-filter: blur(4px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.formWrapModal {
    max-width: 465px;
    overflow-x: hidden;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    padding: 16px 20px 47px;
    box-shadow: 0px 4px 60px 0px #58585826;
    height: 670px;
    background-repeat: no-repeat;
    background-position: bottom right;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.formWrapModal.h-auto {
    height: auto;
}

.closeModalDiv:hover {
    opacity: 0.6;
}

.formWrapModal .formHead {
    font-size: 25px;
    font-weight: 700;
    line-height: 35px;
    text-align: center;
    color: var(--secondary-color);
    padding-bottom: 8px;
    margin-bottom: 0px;
    margin-top: 25px;
}

.formWrapModal .formDesc {
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    text-align: center;
    padding-bottom: 41px;
    color: var(--text-color);
}

.formWrapModal .inputGroup {
    position: relative;
}

.formWrapModal .passwordsFlex,
.formWrapModal .inputGroup+.inputGroup {
    margin-top: 10px;
}

.formWrapModal .passwordsFlex .inputGroup {
    margin-top: 0;
}

.formWrapModal .inputGroup input {
    font-size: 13px;
    font-weight: 400;
    line-height: 15.73px;
    height: 45px;
    max-height: 45px;
    width: 100%;
    background-color: #fff;
    outline: none;
    border: 1px solid #F5EFFF;
    border-radius: 4px;
    padding: 14px;
}

#r_phone {
    padding-left: 78px;
}

.formWrapModal .inputGroup input:hover {
    border-color: #2563eb;
}

.formWrapModal .inputGroup input:focus {
    border-color: #2563eb;
}

.formWrapModal .inputGroup input.invalid {
    border-color: #E20707;
}

.formWrapModal .inputGroup .errorMsg {
    color: #E20707;
    font-size: 13px;
    font-weight: 400;
    line-height: 16.44px;
    position: relative;
    padding: 5px 0 2px;
    display: none;
}

.formWrapModal .inputGroup .errorMsg::before {
    content: '';
    background: url('../images/authImage/error-icon.svg');
    width: 14px;
    height: 14px;
    display: inline-block;
    margin-right: 7px;
    position: relative;
    top: 2px;
}

.formWrapModal .errorMsg.invalidPhone,
.formWrapModal input.invalid~.errorMsg,
.formWrapModal select.invalid~.errorMsg {
    display: block;
}

.formWrapModal .inputGroup label {
    position: absolute;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    color: #929292;
    z-index: 1;
    top: 13px;
    left: 14px;
    margin-bottom: 0;
    margin-top: 0;
    transition: all ease .3s;
}

.formWrapModal .inputGroup label[for="r_phone"] {
    left: 78px;
}

.formWrapModal .inputGroup label[for="r_phone"].invalid {
    color: #E20707;
}

.formWrapModal .inputGroup input:focus~label,
.formWrapModal .inputGroup label.focused {
    left: 14px;
    top: -10px;
    font-size: 13px;
    padding: 0 5px;
    background: #fff;
    color: #2563eb;
}

.addingFlex {
    display: flex;
    gap: 10px;
}

.addingFlex .inputGroup {
    width: 207.5px;
}

.formWrapModal .inputGroup label[for="r_phone"].focused {

    left: 78px;
}

.formWrapModal .inputGroup input.invalid~label {
    color: #E20707;
}

/* .flexInput {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    column-gap: 15px;
} */


.flexInputPass {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    column-gap: 15px;
}

.loginForm .flexInput div {
    max-width: 200px;
}

input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #646464;
    border-radius: 2px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
}

input[type=checkbox].invalid {
    border-color: #E20707;
}

input[type=checkbox]:checked::after {
    content: '✓';
    color: #fff;
    font-size: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.showPassCheck:hover input,
input[type=checkbox]:hover {
    border-color: #2563eb;
}

input[type=checkbox]:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

.showPassCheck {
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.formWrapModal p.showPassTxt {
    margin-left: 7px;
    font-size: 13px;
    font-weight: 400;
    line-height: 15.73px;
    text-align: center;
    color: #1F1F1F;
    display: inline-block;
}

.forgotPass {
    font-size: 13px;
    font-weight: 400;
    line-height: 15.73px;
    text-align: center;
    color: #2563eb;
    cursor: pointer;
    display: inline-block;
}

.forgotPass:hover {
    text-decoration: underline;
}

.authBtn {
    width: 100%;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 18.97px;
    text-align: center;
    background: #2563eb;
    outline: none;
    border-radius: 5px;
    color: #fff;
    border: 1px solid transparent;
    margin-top: 42px;
}

.authBtn:hover {
    background: #1b449e;
}

.authLogo {
    cursor: pointer;
    width: 18px;
    height: 18px;

}

.authLogo:hover {
    box-shadow: 0 2px 0 0 #000;
}


.auth-container {
    position: relative;
    display: inline-block;
    /* Add extra bottom padding so the container covers the logout button */

}

.logout-button a {
    color: #2563eb;
}

.logout-button {
    position: absolute;
    top: 100%;
    /* Place it directly below the image */
    left: 50%;
    transform: translateX(-50%);

    background: #fff;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 100;

    /* Start hidden using opacity and visibility (no gap in hover state) */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* When hovering over the container or the logout button itself */
.auth-container:hover .logout-button,
.logout-button:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.loginRedirect {
    font-size: 13px;
    font-weight: 400;
    line-height: 15.73px;
    text-align: center;
    margin-top: 12px;
    color: #585858;
}

.loginRedirect a {
    color: #2563eb;
    cursor: pointer;
}

.loginRedirect a:hover {
    text-decoration: underline;
}

.active {
    display: block;
}

.closeModalDiv {
    display: flex;
    justify-content: end;
    cursor: pointer;
}

.formWrapModal {
    display: none;
}

.authOverlay.show {
    pointer-events: all;
    opacity: 1;

}

.authOverlay {
    position: fixed;
    opacity: 0;
    background: rgba(0, 0, 0, 0.7);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    pointer-events: none;

    backdrop-filter: blur(4px);
}

.formWrapModal.show {
    display: block;
}

.formWrapModal .forgetPass,
.formWrapModal .loginForm,
.formWrapModal .signup {
    display: none;
}

.formWrapModal .active {
    display: block;
}

.formWrapModal .termSec {
    margin-top: 16px;
}

.formWrapModal .termSec .termsHead {
    font-family: Inter;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #727272;
}

.formWrapModal .termBody {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
}

.formWrapModal .termText {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #727272;
}

.formWrapModal .termText a {
    color: var(--text-cta);
}

.formWrapModal .termText a:hover {
    text-decoration: underline;
}

/* Phone intlTel */
.formWrapModal .iti--allow-dropdown {
    display: block;
}

.formWrapModal .iti__selected-flag {
    width: 64px;
    background-color: rgba(227, 239, 249, 0.4);
    border-radius: 4px 0px 0px 4px;
    justify-content: center;
}

.custom-alert {
    position: relative;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    text-align: center;
    font-weight: 500;
    margin-bottom: 25px;
    display: none;
}

.custom-alert-success {
    color: #3AAF48;
    background-color: #EDFAE7;
    border-color: #EDFAE7;
    display: block;
}

.custom-alert-error {
    color: #CF1322;
    background-color: #FFEDED;
    border-color: #FFEDED;
    display: block;
}

/* Modal */
.forgotModal {
    display: none;
}

.forgotModal.show {
    display: block;
}

.forgotModalbody {
    box-shadow: 0px 4px 34.5px 0px #73737326;
    background-color: #fff;
    border-radius: 8px;
    padding: 32px 49px 42px;
    text-align: center;
    max-width: 443px;
    width: 100%;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 111;
}

.forgotModalbody p {
    font-size: 15px;
    font-weight: 400;
    line-height: 18.15px;
    text-align: center;
    color: #585858;
    padding-bottom: 18px;
    padding-top: 10px;
}

.forgotModalbody p span {
    color: #1F1F1F;
}

.iti__country-list {
    width: 424px;
}

.modalBtn {
    background: #2563eb;
    max-width: 158px;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
    line-height: 17.71px;
    outline: none;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
}

.modalBtn:hover {
    background: #1b449e;
}

.auth-containerMob {
    position: absolute;
    padding: 17px 24px;
    bottom: 0;

    width: 100%;
}

.logout-Btn {
    position: absolute;
    padding: 17px 24px;
    bottom: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.logout-Btn:hover {
    background: rgba(235, 244, 255, 0.54);
    color: #2C2C2C;
}

.logout-Btn:hover a {
    color: #2C2C2C;
}

.logout-Btn:hover svg path {
    stroke: #2C2C2C;
    fill: #2C2C2C;
}


.logout-Btn a {
    color: #A3A3AB;
    font-size: 14px;
}

.auth-containerMob:hover {
    background: rgba(235, 244, 255, 0.54);
    color: #2C2C2C;
}

.auth-containerMob:hover .logout-Btn svg {
    stroke: #2C2C2C;
    fill: #2C2C2C;
}

.auth-containerNav {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;

    padding-top: 10px;
}

.logBtn a {
    padding: 8px 20px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
}

.login-button {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;

    padding-top: 10px;

}

.login-button p {

    padding: 8px 20px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
}






/* .login-Btn p:hover {
    color: #2563eb;
} */

.login-Btn {
    position: absolute;
    bottom: 0px;
    padding: 17px 24px;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 12px;
    color: #A3A3AB;
    ;

    font-size: 14px;
    cursor: pointer;
}

.login-Btn:hover svg {
    stroke: #2C2C2C;
    fill: #2C2C2C;
}

.login-Btn:hover {
    background: rgba(235, 244, 255, 0.54);
    color: #2C2C2C;
}

@media(max-width:575px) {
    .addingFlex .inputGroup {
        width: auto;
    }

    .addingFlex {
        display: flow;
    }

    .formWrapModal {
        border-radius: 0px;
        height: 100%;
        max-width: 100%;
    }

    .iti__country-list {
        width: auto;
    }

    .formWrapModal .formHead {
        font-size: 18px;
        line-height: 21px;
        padding-bottom: 7px;
        padding-top: 45px;
        margin-top: 0px;
    }

    .formWrapModal .formDesc {
        font-size: 13px;
        line-height: 16px;
        padding-bottom: 35px;
    }

    .formWrapModal .inputGroup input {
        height: 45px;
    }

    .formWrapModal {
        padding: 20px 15px 35px;

    }

    .forgotModalbody {
        width: calc(100% - 30px);
    }
}


@media (max-width: 1280px) and (max-height: 580px) {
    .formWrapModal {
        height: 450px;
    }
}