:root {
--modal-bg:rgba(0, 0, 0, 0.7);
--head-color:#0E145F;
--head-font-size:25px;
--head-description-font-size:14px;
--text-color:#6B6E98;
--primary-color:#52bab0;
--lable-color:#6B6E98;
--default-border: 1px solid #F5EFFF;
--hover-border: #FFB7A1;
--focus-border:#52bab0;
--error-color:#E20707;
--cta-bg:#52bab0;
--cta-text:#fff;
--cta-bg-hover:#44a198;
--text-cta : #52bab0;
}
.authForm{
    display: none;
    height: 100vh;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 22;
}
.authForm.show{
    display: block;
}
.closedIcon span{
    display: inline-block;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
}
.closedIcon span img:hover{
    filter: brightness(0) saturate(100%) invert(40%) sepia(22%) saturate(3758%) hue-rotate(340deg) brightness(110%) contrast(101%);
}
.modalOverlay {
    position: fixed;
    opacity: 1;
    background:var(--modal-bg);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11;
    backdrop-filter: blur(4px);
}
 
.formWrap{
    overflow: hidden;
    max-width: 465px;
    width:100%;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 15px;
    padding: 50px 25px 47px; 
    box-shadow: 0px 4px 60px 0px #58585826;
    min-height: 522px;
    position: absolute;
    z-index: 111;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}
.formWrap.h-auto{
    min-height: 522px;
}
.formWrap .formHead{
    font-size: var(--head-font-size);
      font-family: 'DM Serif Display';
    font-weight: 400;
    line-height: 26px;
    color:var(--head-color);
    padding-bottom: 8px;
}

.formWrap .formDesc{
    font-size: var(--head-description-font-size);
    font-weight: 400;
    line-height: 16px;
    padding-bottom: 30px;
    color:var(--text-color);
    line-height: 150%;
}
.formWrap .inputGroup{
    position: relative;
}
.formWrap .passwordsFlex,
.formWrap .inputGroup + .inputGroup{
    margin-top: 15px;
}
.formWrap .passwordsFlex .inputGroup{
    margin-top: 0;
    flex: 1;
}
.formWrap .inputGroup input{
    font-size: 13px;
    font-weight: 400;
    line-height: 15.73px;
    height: 45px;
    width: 100%;
    background-color: #fff;
    outline: none;
    border: var(--default-border);
    border-radius: 4px;
    padding: 14px;
}
.showHidePassword {
    position: absolute;
    top: 15px;
    right: 10px;
    cursor: pointer;
}
.showHidePassword:hover {
    transform: scale(1.1);
}
#r_phone{
    padding-left: 78px;
}
.formWrap .inputGroup input:hover{
    border-color: var(--hover-border);
}
.formWrap .inputGroup input:focus{
    border-color:var(--focus-border);
}
.formWrap .inputGroup input.invalid{
    border-color:var(--error-color);
}
.formWrap .inputGroup .errorMsg{
    color: var(--error-color);
    font-size: 13px;
    font-weight: 400;
    line-height: 16.44px;
    position: relative;
    padding: 5px 0 2px;
    display: none;
}
.formWrap .inputGroup .errorMsg::before{
    content:'';
    background: url('images/error-icon.svg');
    width:14px;
    height: 14px;
    display: inline-block;
    margin-right:7px;
    position: relative;
    top: 2px;
}
.formWrap .errorMsg.invalidPhone,
.formWrap input.invalid~.errorMsg,.formWrap select.invalid~.errorMsg {
    display: block;
}
.formWrap .inputGroup label {
    position: absolute;
    font-size: 13px;
    font-weight: 400;
    line-height: 19px;
    color: var(--lable-color);
    z-index: 1;
    top: 14px;
    left: 14px;
    margin-top: 0;
    margin-bottom: 0;
    transition: all ease .3s;
}
.formWrap .inputGroup label[for="r_phone"] {
    left: 78px;
}
.formWrap .inputGroup label[for="r_phone"].invalid{
    color: var(--error-color);
}
.formWrap .inputGroup input:focus~label,
.formWrap .inputGroup label.focused {
    left: 14px;
    top: -9px;
    font-size: 13px;
    padding: 0 5px;
    background: #fff;
    color:var(--primary-color) ;
}
.formWrap .inputGroup label[for="r_phone"].focused{
 
    left: 78px;
} 
.formWrap .inputGroup input.invalid~label{
    color:var(--error-color);
}
.flexInput {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    column-gap: 15px;
}
.flexInput.justify-right{
    justify-content: right;
}
.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: var(--primary-color);
}
input[type=checkbox]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.showPassCheck{
    display: flex;
    align-items: center;
}
.formWrap 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:var(--primary-color);
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: 700;
    line-height: 18.97px;
    text-align: center;
    background: var(--cta-bg);
    outline: none;
    cursor: pointer;
    border-radius: 5px;
    color: var(--cta-text);
    border: 1px solid transparent;
    margin-top:30px;
}
.authBtn:hover{
    background: var(--cta-bg-hover);
}
.loginRedirect{
    font-size: 13px;
    font-weight: 400;
    line-height: 15.73px;
    text-align: center;
    margin-top: 12px;
    color:#585858;
}
.loginRedirect span,
.loginRedirect a{
    cursor: pointer;
    color: var(--primary-color);
}
.loginRedirect span:hover,
.loginRedirect a:hover{
    text-decoration: underline;
}
.formWrap .active{
    display: block;
}
.formWrap .signup,
.formWrap .forgetPass,
.formWrap .loginForm,
.formWrap .otpForm{
    display: none;
}
.formWrap .active{
    display: block;
}
.formWrap .termSec{
    margin-top: 16px;
}
.formWrap .termSec .termsHead{
    font-family: Inter;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #727272;
}
.formWrap .termBody{
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 20px;
}
.formWrap .termText{
font-size: 12px;
font-weight: 400;
line-height: 16px;
color: #727272;
}
.formWrap .termText a{
    color: var(--text-cta);
}
.formWrap .termText a:hover{
    text-decoration: underline;
}
/* Phone intlTel */
.formWrap .iti--allow-dropdown {
    display: block;
}
.formWrap .iti__selected-flag{
    width: 64px;
    background-color: #FBF9FF;
    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: 28px;
}
.forgotModalbody p span{
    color: #1F1F1F;
    font-weight: 700;
}
.modalBtn{
    background:var(--cta-bg);
    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;
    cursor: pointer;
}
.modalBtn:hover{
    background: var(--cta-bg-hover);
}
/* OTP form */
.otpForm .headImg{
    margin: -36px auto 0;
            display: block;
            max-width: 121px;
            width: 100%;
}
.otpForm .formHead{
text-align: center;
}
.otpForm .formDesc{
text-align: center;
padding-bottom: 0;
}
.otpForm .formDesc #userEmailOtp{
color: #0E145F;
font-weight: 700;
}
.otpForm .customHr{
    display: block;
width: 100%;
height: 1px;
background:#FFE0D7;
margin:20px 0 15px;
}
.otpForm .otpFieldsWrapper{
    max-width: 227px;
    width: 100%;
    margin: 20px auto 25px;
}
.otpForm .otpFieldsWrapper p{
    color: #5F6C78;
    font-weight: 500;
    font-size: 13px;
    line-height: 150%;
    position: relative;
}
.otpForm .otpFieldsWrapper p #resendCode{
    cursor: pointer;
    color: var(--primary-color);
}
.otpForm .otpFieldsWrapper p #resendCode[disabled] {
    color: #7c8493bb;
    cursor: not-allowed;
}
.otpForm .otpFieldsWrapper p #timerCode{
    color: #7C8493;
    text-align: right;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.otpInputGroup{
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.otpForm .otpInputGroup .otp-input{
background: #ffffff;
border: 1px solid #FFE0D7;
width: 48px;
height: 49px;
border-radius: 4px;
    font-weight: 400;
    font-size: 17px;
    padding: 9px 15px;
        color: var(--head-color);
        text-align: center;
}
.otpForm .otpInputGroup .otp-input.invalid{
border: 1px solid var(--error-color);
}
.otpForm .otpInputGroup .otp-input:focus{
border: 1px solid #52bab0;
box-shadow: 5px 5px 3px 0px #F9731626;
}
.otpForm .otpInputGroup .otp-input:hover{
box-shadow: 5px 5px 3px 0px #F9731626;
}


@media(max-width:575px){
    .formWrap .formHead{
        font-size: 18px;
        line-height: 21px;
        padding-bottom: 7px;
    }
    .formWrap .formDesc{
        font-size: 13px;
        line-height: 16px;
        padding-bottom: 35px;
    }
    .formWrap .inputGroup input{
        height: 45px;
    }
    .formWrap{
        padding: 20px 20px 20px; 
        max-width: 360px;
        height: 577px;
    }
    .forgotModalbody{
        width: calc(100% - 30px);
    }
    .formWrap.h-auto {
        min-height: 693px;
    }
    .flexInput.passwordsFlex {
        flex-direction: column;
        row-gap: 15px;
    }
    .custom-alert-error{
        padding: 0.75rem 0.25rem;
        font-size: 13px
    }
    #otp_form .formHead{
        font-size: 21px;
        line-height: 130%;
        padding-bottom: 25px;
    }
    #otp_form .formDesc {
        font-size: 15px;
        line-height: 150%;
        padding-bottom: 0px;
    }
    .otpForm .customHr {
        margin: 15px 0 15px;
    }
    .otpForm .headImg{
        margin: 0px auto 0;
    }
    .otpForm .otpFieldsWrapper {
        margin: 20px auto 30px;
    }
    .authForm .formBtnWrapper {
        margin: 0px auto 12px;
    }
    .otpForm .headImg {
        max-width: unset;
        width: 100px;
        height: 100px;
        margin: 0px auto 30px;
    }
    .loginRedirect {
        line-height: 150%;
        margin-top: 0;
    }
    .formWrap .loginRedirect {
        margin-top: 12px;
    }
}

/* Password toggle visual feedback */
.showHidePassword img.clicked {
    transform: scale(0.9);
    opacity: 0.7;
    transition: all 0.15s ease;
}

.showHidePassword img {
    transition: all 0.15s ease;
}

.showHidePassword img:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Alert message styling */
.custom-alert {
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.custom-alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.custom-alert-error,
.custom-alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
 
 


