/* Registration Form */

.wdt-registration-form{width: 100%;max-width: 700px;margin: 0 auto;margin-bottom: 150px;}
.wdt-registration-form form{margin-top: 40px;}
.wdt-registration-form .crest-custom-auth-sc-border-title h2{
    text-align: center;font-size: clamp(2.25rem, 2.1388rem + 0.6135vw, 2.875rem);/* min - 36px to max - 46px */margin-top: 0;}
.wdt-registration-form p{text-align: center;font-weight: calc(var(--wdtFontWeight_Base) - 100);}
.wdt-registration-form p strong { font-weight: var(--wdtFontWeight_Alt); }
.wdt-registration-form form p{text-align: left;color: var(--wdtBodyTxtColor);margin-bottom: 20px;}
.wdt-registration-form form p:last-child{text-align: center;font-weight: var(--wdtFontWeight_Base);margin-bottom: 0;}
.wdt-registration-form form p a.crest-pro-login-link{color: var(--wdtLinkColor);text-decoration: underline;text-decoration-color: transparent; background: linear-gradient(0deg, currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: bottom left; transition-property: background-size; -webkit-transition-property: background-size; } 
.wdt-registration-form form p a.crest-pro-login-link:hover{ background-size: 0% 1px; background-position: bottom right; }
.wdt-registration-form form#loginform{display: block;}
.crest-pro-login-description {text-align: center;}
.wdt-registration-form input[type="submit"]{width: 100%;line-height: 1; border: 0;}
/* .wdt-registration-form input[type="submit"]:hover{background-color: var(--wdtPrimaryColor);color: var(--wdtAccentTxtColor);box-shadow: var(--wdtBodyBGColor) -6px -6px 0px -1px, rgba(var(--wdtPrimaryColorRgb), 1) -6px -6px;} */
.crest-pro-login-form-holder #loginform p {margin: 0 0 0 0;}
.crest-pro-login-form-holder #loginform {display: grid;grid-template-columns: repeat(1,1fr);justify-content: space-between;grid-gap: 20px;margin-bottom: 15px;}
.crest-pro-login-form-holder #loginform input#user_login + label{display: none;}
.wdt-registration-form .crest-custom-auth-register-alert { text-align: center; margin: 10px 0 15px; }
.wdt-registration-form .crest-custom-auth-register-alert.invalid { padding: 20px; border-top: 3px solid var(--wdtPrimaryColor); background-color: var(--wdtTertiaryColor); }
.crest-pro-login-form-holder #loginform button { margin-top: 0; }
.crest-pro-login-form-holder #loginform label[for="rememberme"] { margin-top: 1px; }
.crest-pro-login-form-holder #login-message .error { text-align: center; color: #E94235; }

.woocommerce form .form-row .input-text, .woocommerce form .form-row select { border-color: var(--wdtBorderColor); border-radius: var(--wdtRadius_2X); -webkit-border-radius: var(--wdtRadius_2X); }
.woocommerce form .form-row .input-text:focus, .woocommerce form .form-row select:focus { border-color: var(--wdtPrimaryColor); }

/* Login form */

.crest-pro-login-form-container{display: block;height: 100% !important;margin: 0;padding: 0;pointer-events: none;width: 100%;z-index: 10000;position: fixed;bottom: 0;left: 0;right: 0;top: 0;pointer-events: none;}
.crest-pro-login-form-overlay{position: fixed;bottom: 0;left: 0;right: 0;top: 0;z-index: 9999;background:rgba(var(--wdtBodyBGColorRgb), 1); cursor: url(../images/pop-close.png) 25 25, auto;  }
.login-form-custom-logo {text-align: center;margin: 10px 0;margin-bottom: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);  /*----min-20px and max-40px-----*/display: none;}
.login-form-custom-logo img {max-width: 170px;}
.crest-pro-login-form-holder >*:not(:last-child),
.crest-pro-login-form-container .crest-pro-login-form >*:not(:last-child) {margin-bottom: 30px;}
.crest-pro-login-form-container .crest-pro-login-form {display: grid;padding: 0;pointer-events: auto;position: absolute;left: 0;right: 0;background-color: transparent;width: 100%;margin: auto;height: 100%;place-content: center;pointer-events: none;}
.crest-pro-login-form-container .crest-pro-login-form .crest-pro-login-form-wrapper {padding: 70px;background: var(--wdtAccentTxtColor); border: 1px solid var(--wdtBorderColor); box-shadow: none;-webkit-box-shadow: none;border-radius: var(--wdtRadius_3X);-webkit-border-radius: var(--wdtRadius_3X); pointer-events: all; }
.crest-pro-login-form-container .crest-pro-login-form .crest-pro-title.crest-pro-login-title{display: flex;flex-direction: column;align-items: center;}
#loginform .login-username, #loginform .login-password{width: 100%;}
#loginform .login-remember{text-align: left;}
#loginform p.login-remember input[type="checkbox"]{opacity: 1;-webkit-appearance: none;appearance: none;width: 1em;height: 1em;border: 1px solid var(--wdtBorderColor);transform: translateY(-0.075em);display: inline-grid;place-content: center;background: rgba(var(--wdtTertiaryColorRgb),.0);border-radius: 2px;padding: 0 0;}
#loginform p.login-remember input[type="checkbox"]:after{content: "";width: 0.65em;height: 0.65em;clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);transform: scale(0);transform-origin: bottom left;transition: 120ms transform ease-in-out;box-shadow: inset 1em 1em var(--wdtPrimaryColor);}
#loginform p.login-remember input[type="checkbox"]:checked:after {transform: scale(1);}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus{border-color: var(--wdtPrimaryColor);}
#loginform .login-submit input[type="submit"]{width: 100%;background-color: var(--wdtPrimaryColor);padding-top: 14px;padding-bottom: 14px;}
#loginform .login-submit input[type="submit"]:hover{background-color: var(--wdtSecondaryColor);color: var(--wdtAccentTxtColor);}
.crest-pro-social-logins-divider{text-align: center;margin: 10px 0;}
.crest-pro-title.crest-pro-login-title h2{text-align: center;margin-top: 0;}
.crest-pro-login-form-container .crest-pro-login-form .crest-pro-login-form-holder p.tpl-forget-pwd{margin-bottom: 0px;text-align: center;}
.crest-pro-login-form-container .crest-pro-login-form .crest-pro-login-form-holder p.tpl-forget-pwd a{color: var(--wdtSecondaryColor);transition: all 0.3s linear;}
.crest-pro-login-form-container .crest-pro-login-form .crest-pro-login-form-holder p.tpl-forget-pwd a:hover{color: var(--wdtPrimaryColor);}
a.crest-pro-social-facebook-connect,
a.crest-pro-social-google-connect{width: calc(50% - 20px);padding:var(--wdtPadding_Btn);display: inline-block;text-align: center;color: var(--wdtTertiaryColor);margin: 10px;font-size: var(--wdtFontSize_Ext);font-weight: var(--wdtFontWeight_Alt);line-height: 1;}
a.crest-pro-social-facebook-connect:hover,
a.crest-pro-social-google-connect:hover {background-color: transparent;color: rgba(var(--wdtAccentTxtColorRgb),1);border-color: var(--wdtPrimaryColor);}
a.crest-pro-social-facebook-connect i,
a.crest-pro-social-google-connect i{margin-right: 6px;}
.crest-pro-login-form-container{max-width: 1640px;margin: auto;}
a.crest-pro-social-google-connect{background: #E94235;border: 2px solid #E94235;}
a.crest-pro-social-facebook-connect{background: #1574EA;border: 2px solid #1574EA;}   

/* After Registration */

.mu_register{width: 100%;margin: 0 auto;max-width: 600px;padding: 50px;background: var(--wdtSecondaryColor);box-shadow: rgba(0,0,0,.8) 0 0 40px;border-radius: var(--wdtRadius_3X);}
.mu_register h2{font-size: var(--wdtFontSize_H4);text-align: center;}
.mu_register form input{box-shadow: none;-webkit-box-shadow: none;border: 1px solid transparent;}
.mu_register form input:focus{border-color: var(--wdtPrimaryColor);}
.mu_register form .wp-signup-username-description,
.mu_register form .wp-signup-email-description{margin-bottom: 15px;}
.mu_register p.submit{margin-top: 20px;}
.mu_register form p.submit input[type="submit"]{font-size: var(--wdtFontSize_Base);}


/* New Code */

.wdt-registration-form form#loginform { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; background: var(--wdtAccentTxtColor); border: 1px solid var(--wdtBorderColor); padding: 40px; box-shadow: none; -webkit-box-shadow: none; border-radius: var(--wdtRadius_3X); -webkit-border-radius: var(--wdtRadius_3X);}
.crest-pro-login-form-holder #loginform input#rememberme{margin-right: 10px;margin-top: 0px; background-color: var(--wdtBodyBGColor); }
.wdt-registration-form form p:empty { display: none; }
.wdt-registration-form form p.submit { grid-area: 4 / span 2; }
.wdt-registration-form form p:has(> a) { grid-area: 5 / span 2; }

@media only screen and (max-width:1540px) 
{
    .crest-pro-title.crest-pro-login-title h2 {font-size: var(--wdtFontSize_H3);}
    .crest-pro-login-form #loginform {margin-top: 0;}
    .crest-pro-social-logins-divider {margin-top: 20px;margin-bottom: 30px;}
    #loginform {display: grid;grid-template-columns: repeat(2,1fr);justify-content: space-between;grid-gap: 20px;}
    #loginform .login-submit {margin-bottom: 0;grid-area: 3/1;}
}
/* @media screen and (min-width: 768px) and (max-width: 1540px)
{
    .crest-pro-login-form-holder #loginform {grid-template-columns: repeat(2,1fr);}
} */
@media screen and (min-width:1281px) and (max-width: 1540px)
{
    .crest-pro-login-form-container{max-width: 1080px;margin: auto;}
    .crest-pro-login-form-holder >*:not(:last-child),
    .crest-pro-login-form-container .crest-pro-login-form >*:not(:last-child) {margin-bottom: 20px;}
}
@media screen and (min-width:1025px) and (max-width: 1280px)
{
    .crest-pro-login-form-container{max-width: 900px;margin: auto;}    
}
@media screen and (min-width:768px) and (max-width: 1024px)
{
    .crest-pro-login-form-container{max-width: 710px;margin: auto;}    
}
@media screen and (max-width: 767px)
{
    #loginform .login-username, 
    #loginform .login-password{margin-bottom: 20px;}
    .crest-pro-login-form-container {overflow: scroll;}
    .crest-pro-login-form-container .crest-pro-login-form .crest-pro-login-form-wrapper{padding: 30px;max-width: 420px;margin: 0 20px;width: calc(100% - 40px);}
    .crest-pro-title.crest-pro-login-title h2{font-size: var(--wdtFontSize_H4);}
    .wdt-registration-form{padding: 0px;}
    .wdt-registration-form .crest-custom-auth-sc-border-title h2{font-size: var(--wdtFontSize_H3);}
    .wdt-registration-form form#loginform{ grid-template-columns: repeat(1, 1fr); padding: 30px;}
    .wdt-registration-form form p.submit { grid-area: unset; }
    .wdt-registration-form form p:has(> a) { grid-area: unset; }
}
@media screen and (min-width:480px) and (max-width: 767px)
{ 
    .crest-pro-login-form-container{margin: auto;}    
}
@media screen and (max-width: 479px)
{
    a.crest-pro-social-facebook-connect, a.crest-pro-social-google-connect {padding: 10px;}
    .crest-pro-login-form-container{max-width: 100%;margin: auto;}    
    .crest-pro-title.crest-pro-login-title h2{font-size: var(--wdtFontSize_H4);}
    .wdt-registration-form .crest-custom-auth-sc-border-title h2{font-size: var(--wdtFontSize_H4);}
    .crest-pro-login-form-container .crest-pro-login-form .crest-pro-login-form-wrapper {padding: 20px;margin: 0 15px;width: calc(100% - 30px);}
    .mu_register{padding: 30px;}
}

@media only screen and (min-width:1281px) and (max-width:1540px) { .wdt-registration-form { margin-bottom: 100px; } }
@media only screen and (min-width:1025px) and (max-width:1280px) { .wdt-registration-form { margin-bottom: 80px; } }
@media only screen and (min-width:768px) and (max-width:1024px) { .wdt-registration-form { margin-bottom: 70px; } }
@media only screen and (min-width:480px) and (max-width:767px) { .wdt-registration-form { margin-bottom: 60px; } }
@media only screen and (max-width: 479px) { .wdt-registration-form { margin-bottom: 50px; } }