/**
 * Auth modals styling for Partner Hub theme
 * Includes styles for both the main registration popup and audio auth modal
 */

/* ======= Main Registration Popup ======= */
.custom-registration-popup {
    display: none;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    font-family: "OpenSans", Sans-serif;
}

.custom-registration-content {
    background-color: #fff;
    margin: 5% auto;
    border: 1px solid #B0B0B0;
    width: 90%;
    max-width: 693px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    animation: animatetop 0.4s;
}

@keyframes animatetop {
    from { top: -300px; opacity: 0 }
    to { top: 0; opacity: 1 }
}

.custom-registration-popup .close-registration {
    color: #3A307F;
    float: right !important;
    font-size: 27px;
    font-weight: bold;
    line-height: 13px;
    cursor: pointer;
    margin-right: 20px;
    margin-top: 20px;
    padding: 6px 6px 6px 6px;
    border: 3px solid #3A307F;
    border-radius: 100%;
    height: 32px;
    width: 32px;
    z-index: 10;
}

.custom-registration-popup .close-registration:hover,
.custom-registration-popup .close-registration:focus {
    color: black;
    text-decoration: none;
}

.custom-registration-popup .signup-form{
    padding: 0px;
    max-width: 413px;
    margin: 0 auto;
    margin-top: 20px;
}

.custom-registration-popup p.signup-shortdesc {
    font-size: 14px;
    line-height: 22px;
    color: #707070;
    font-family: "OpenSans", Sans-serif;
}

.custom-registration-popup .popup-passwordreset {
    padding: 80px 0px 48px;
    position: relative;
}

.custom-registration-popup .popup-signin{
    padding: 50px 0px;
}

.custom-registration-popup .fullname,
.custom-registration-popup .passwordall{
    display: flex;
    gap: 12px;    
}

.custom-registration-popup .passwordall .form-group{
    width: 50% !important;
}

.custom-registration-popup .form-group {
    margin-bottom: 15px;
    position: relative;
}

.custom-registration-popup .form-group label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.custom-registration-popup input, 
.custom-registration-popup button {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.custom-registration-popup input:focus {
    border-color: #ea3934;
    outline: none;
}

.custom-registration-popup a {
    color: #ea3934 !important;
}

.custom-registration-popup .password-group {
    position: relative;
}

.custom-registration-popup #password-strength {
    font-size: 14px;
    margin-top: 3px;
}

.registration_success_title{
    font-size: 25px;
    color: #333;
    margin: 0;
    padding-bottom: 10px;
    padding-top: 48px;
    font-weight: 700;
}

.registration_success_description{
    font-size: 14px;
    padding-bottom: 20px;
}
.custom-registration-popup .validation-message {
    color: #ea3934;
    font-size: 14px;
}

.custom-registration-popup #register-button,
.custom-registration-popup #login-button,
.custom-registration-popup #reset-request-button{
    background-color: #ea3934;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
}

.custom-registration-popup #register-button:hover, 
.custom-registration-popup #login-button:hover, 
.custom-registration-popup #reset-request-button:hover {
    background-color: var( --e-global-color-secondary );
}

.custom-registration-popup #loading {
    text-align: left;
    margin-top: 10px;
    font-size: 14px;
    margin-bottom: 0;
}

.custom-registration-popup .user-signin,
.custom-registration-popup div#login-message,
.custom-registration-popup div#login-loading {
    text-align: left;
    margin-top: 15px;
    width: 100%;
    max-width: 413px;
    margin: 0 auto;
    font-size: 12px;
    line-height: 1.2em;
}
.custom-registration-popup .user-signin{
    text-align: center;
}
.custom-registration-popup div#login-message p{
    margin-bottom: 0;
}
.custom-registration-popup .popup-signup .user-signin p{
    margin: 8px 0 50px 0;
}

.custom-registration-popup .popup-signin .user-signin p{
    margin: 8px 0 15px 0;
}

.custom-registration-popup #userSignIn{
    color: #ea3934 !important;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.custom-registration-popup .user-signin a {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
}

.custom-registration-popup .form-group.terms-condition {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}

.custom-registration-popup .form-group.terms-condition label{
    font-size: 10px;
    font-weight: 400;
    margin: 0;
    padding-left: 20px;
}

.custom-registration-popup .terms-condition input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

/* Custom checkbox container */
.custom-registration-popup .terms-condition label {
    position: relative;
    padding-left: 22px;
    cursor: pointer;
    margin-bottom: 0;
}

/* Custom tick mark icon */
.custom-registration-popup .terms-condition label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
}

/* Checked state */
.custom-registration-popup .terms-condition input[type="checkbox"]:checked + label::before {
    background-color: #3A307F;
    border-color: #3A307F;
}

/* Tick mark icon shape */
.custom-registration-popup .terms-condition label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

/* Show the checkmark when checked */
.custom-registration-popup .terms-condition input[type="checkbox"]:checked + label::after {
    display: block;
}

.custom-registration-popup input#terms_conditions {
    width: 6%;
}

.custom-registration-popup .iti.iti--allow-dropdown.iti--separate-dial-code {
    width: 100%;
}

.custom-registration-popup .iti--separate-dial-code .iti__selected-flag{
    background-color: transparent !important;
}

div#registration-message {
    padding: 0;
    font-size: 12px;
    margin: 0;
}

div#registration-message p{
    margin-bottom: 0;
    font-size: 14px;
    padding-bottom: 20px;
}

.registration_success_resend{
    padding-bottom: 80px !important;
}

.custom-registration-popup #login-form-container,
.custom-registration-popup #reset-password-request-container,
.custom-registration-popup #reset-request-message,
.custom-registration-popup #reset-request-loading{
    width: 100%;
    max-width: 413px;
    margin: 0 auto;
}

.custom-registration-popup #reset-request-message p,
.custom-registration-popup #reset-request-loading{
    font-size: 12px;
    margin-top: 8px;
    margin-bottom: 0;
}

.custom-registration-popup #back-registration, .audio-reset-section .audio-back-btn{
    position: absolute;
    font-size: 12px;
    font-weight: 700;
    top: 30px;
    left: 20px;
    color: #3A307F !important;
    cursor: pointer;
}

.custom-registration-popup .ctm_pfexprt_login_div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    max-width: 413px;
    margin: 0 auto;
}

.custom-registration-popup .ctm_pfexprt_login_div p{
    margin-bottom: 0;
}

.custom-registration-popup .ctm_pfexprt_login_div{
    font-weight: bold;
}

.custom-registration-popup .ctm_pfexprt_login_div a{
    width: 100%;
    background: #4F3290;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.7em;
}

a#forgot-password-link, a#audioForgotPass{
    font-size: 10px;
    padding-left: 8px;
    cursor: pointer;
    color: #ea3934;
}

@media screen and (max-width: 767px){
    .popup-signin,
    .popup-signup .signup-form{
        padding: 0 10px !important;
    }
    .fullname,
    .passwordall {
        display: flex;
        flex-direction: column;
    }
    .custom-registration-popup .passwordall .form-group{
        width: 100% !important;
    }
}

@media(max-width: 675px){
    .ctm_pfexprt_login_div{
        font-size: 15px;
        gap: 10px;
        padding-bottom: 30px;
    }
}

@media(max-width: 375px){
    .ctm_pfexprt_login_div{
        font-size: 12px;
        gap: 8px;
        padding-bottom: 30px;
    }
}

/* ======= Audio Auth Modal ======= */
.audio-auth-modal {
    display: none;
    position: fixed;
    z-index: 99999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    font-family: "OpenSans", Sans-serif;
}

.audio-auth-content {
    background-color: #fff;
    margin: 5% auto;
    border: 1px solid #B0B0B0;
    width: 90%;
    max-width: 693px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    animation: audioAnimateTop 0.4s;
}

.audio-close-btn {
    color: #3A307F;
    float: right;
    font-size: 27px;
    font-weight: bold;
    line-height: 13px;
    cursor: pointer;
    margin-right: 20px;
    margin-top: 20px;
    padding: 6px;
    border: 3px solid #3A307F;
    border-radius: 100%;
    height: 32px;
    width: 32px;
    text-align: center;
}

.audio-signup-wrapper, 
#audio-login-wrapper, 
#audio-reset-wrapper, 
#audio-login-message, 
.audio-pfexpert-section {
    padding: 0px;
    max-width: 413px;
    margin: 0 auto;
    margin-top: 20px;
}
#audio-login-loading, #audio-reset-message, #audio-reset-loading{
    padding: 0px;
    max-width: 413px;
    margin: 0 auto;
    font-size: 12px;
    margin-top: 10px;
}

div#audio-login-message{
    font-size: 14px;
    margin-top: 0;
}

div#audio-login-message p{
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 10px;
}

div#audio-login-message a{
    color: #ea3934;
}

.audio-signup-wrapper{
    margin-top: 35px;
}

.audio-signup-desc {
    font-size: 14px;
    line-height: 22px;
    color: #707070;
}

.audio-name-row,
.audio-password-row {
    display: flex;
    gap: 12px;
}

.audio-password-row .audio-form-group{
    width: 50%;
}

.audio-form-group {
    margin-bottom: 15px;
    position: relative;
}

.audio-form-group label {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.audio-form-group input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    padding: 8px;
}

.audio-form-group input:focus {
    border-color: #ea3934;
    outline: none;
}

#audio-register-btn,
#audio-login-btn,
#audio-reset-btn {
    width: 100%;
    background-color: #ea3934;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.audio-terms {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: left;
}

.audio-terms input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.audio-terms label {
    position: relative;
    padding-left: 22px;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 10px;
    font-weight: 400;
}

.audio-terms label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
}

.audio-terms input[type="checkbox"]:checked+label::before {
    background-color: #3A307F;
    border-color: #3A307F;
}

.audio-terms label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.audio-terms input[type="checkbox"]:checked+label::after {
    display: block;
}

.audio-signin-section,
.audio-reset-section {
    display: none;
    padding: 50px 0px;
    position: relative;
}

.audio-login-wrapper,
.audio-reset-wrapper {
    width: 100%;
    max-width: 413px;
    margin: 0 auto;
}

.audio-account-prompt {
    text-align: center;
    margin-top: 15px;
    width: 100%;
    max-width: 413px;
    margin: 0 auto;
    font-size: 12px;
    line-height: 30px;
}

.audio-account-prompt p{
    margin: 8px 0 15px 0;
}

.audio-account-prompt span, 
.openid-connect-login-button a {
    color: #ea3934;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.audio-pfexpert-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.audio-pfexpert-section a{
    width: 100%;
    background: #4F3290;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.7em;
}

#audio-registration-popup .audio-signup-section .user-signin p{
    margin: 8px 0 50px 0;
}

.audio-pfexpert-section p {
    margin-bottom: 0;
}

.audio-validation-message, 
#audio-password-strength {
    color: #ea3934;
    font-size: 14px;
}

#audio-registration-popup #audio-register-message {
    padding: 0;
    font-size: 12px;
    margin: 10px 0 0 0;
}

#audio-register-loading{
    font-size: 12px;
}

#audio-registration-popup #audio-register-message p{
    margin-bottom: 0;
}

#audioSignUpHeading, 
#audio-register-message h2, 
#audioLoginHeading,
#audio-reset-wrapper h2{
    font-weight: bold;
}

@keyframes audioAnimateTop {
    from {
        top: -300px;
        opacity: 0
    }

    to {
        top: 0;
        opacity: 1
    }
}

@media screen and (max-width: 767px){
    .audio-name-row,
    .audio-password-row {
        flex-direction: column;
    }

    .audio-signin-section,
    .audio-signup-wrapper {
        padding: 0 10px;
    }

    .audio-pfexpert-section {
        font-size: 15px;
        gap: 10px;
        padding-bottom: 30px;
    }
    
    .audio-password-row .audio-form-group{
        width: 100%;
    }
}

@media(max-width: 375px) {
    .audio-pfexpert-section {
        font-size: 12px;
        gap: 8px;
    }
}