/* 2FA Modal Styles */

/* Override j-modal content width for 2FA */
#twofa_modal .j-modal__content {
    width: 300px;
    max-width: 90vw;
}

/* Heading styles */
#twofa_modal .h3-title {
    text-align: center;
    margin: 0 0 10px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e7e7e7;
    font-size: 23px;
    font-weight: 400;
}

/* Description text */
#twofa_modal p {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 22px;
    color: #707070;
}

/* Input wrapper */
#twofa_modal .login-item__login-form-wrp {
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Input field */
#twofa_modal .text-input {
    height: 43px;
    border: 1px solid #929292;
    border-radius: 5px;
    width: 100%;
    font-size: 18px;
    padding: 0 15px;
    letter-spacing: -0.5px;
    color: #707070;
    font-family: mr-eaves-xl-modern, Helvetica, Arial, sans-serif;
    outline: none;
    margin-top: 8px;
    box-sizing: border-box;
}

#twofa_modal .text-input:focus {
    border-color: var(--default_color_var, #00a7de);
}

/* Label */
#twofa_modal .login-item-label {
    margin-bottom: -10px;
    font-size: 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Custom checkbox styling */
#twofa_modal .twofa-checkbox {
    display: block;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 23px;
    padding: 0;
    margin: 0;
    height: 23px;
    border: 2px solid #929292;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 1;
}
#verify-2fa p {
    color: white;
}

#twofa_modal .twofa-checkbox:hover {
    border-color: var(--default_color_var, #00a7de);
}

#twofa_modal .twofa-checkbox:checked {
    background-color: var(--default_color_var, #00a7de);
    border-color: var(--default_color_var, #00a7de);
}

#twofa_modal .twofa-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Remember me label */
#twofa_modal .twofa-remember-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 15px;
    margin-bottom: 10px;
    user-select: none;
}

#twofa_modal .twofa-remember-label span {
    margin-left: 10px;
    font-size: 16px;
    color: #000;
    line-height: 1.4;
}

/* Error message */
#twofa_modal .twofa-error {
    color: #EC644B;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    min-height: 20px;
}

/* Button wrapper */
#twofa_modal .cancel-wrapper {
    margin-top: -50px;
    display: flex;
    justify-content: center;
    padding: 20px 40px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
}

/* Buttons */
#twofa_modal .Button-Login,
#twofa_modal .Button-Create-Account {
    margin: 0;
    min-width: 140px;
    cursor: pointer;
}

/* Specific button styling - keep resend button with original look */
#twofa_modal #resend_2fa {
    background-color: #fff;
    color: var(--default_color_var, #00a7de);

    border: none;
}

#twofa_modal #resend_2fa:hover {
    background-color: #f5f5f5;
}

/* Mobile responsiveness */
@media all and (max-width: 430px) {
    #twofa_modal .j-modal__content {
        width: calc(100% - 30px);
        padding: 20px 15px;
    }

    #twofa_modal .cancel-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #twofa_modal .Button-Login,
    #twofa_modal .Button-Create-Account {
        width: 100%;
    }

    #twofa_modal .twofa-remember-label span {
        font-size: 14px;
    }
}

@media all and (max-width: 720px) {
    #twofa_modal .j-modal__content {
        padding: 30px 20px;
    }
}
