.mjf-popup{
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    justify-content: center;
    align-items: center;

    z-index: 9999;

    pointer-events: none;


}

.mjf-popup.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.mjf-popup .mjf-popup-content {
    position: relative;background: #fff;padding: 50px 50px;border-radius: 0px;
    max-width: 740px;box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.mjf-popup .popup-close {position: absolute;top: 6px;right: -1px;background: none;border: none;font-size: 45px;cursor: pointer;color: #C8C8C8;transition: 0.4s all;}
.mjf-popup .popup-buttons {margin-top: 20px;display: flex;justify-content: center;gap: 12px;}
.mjf-popup  .popup-buttons .cta-btn {border: 1px solid #5DBD26;color: #fff;padding: 9px 14px;width: 210px;border-radius: 0px;text-decoration: none;transition: 0.2s;text-transform: uppercase;font-weight: 700;font-size: 17px;line-height: 23px;}
.mjf-popup .popup-buttons .cta-btn.signup-btn, .mjf-popup .popup-buttons .cta-btn.signin-btn {background-color: #5DBD26;}
.mjf-popup .popup-buttons .cta-btn.signup-btn:hover, .mjf-popup .popup-buttons .cta-btn.signin-btn:hover {color: #5DBD26;background-color: #fff;}
.mjf-popup .popup-buttons .signin-reseller-btn {color: #5DBD26;background-color: #fff;}
.mjf-popup .popup-buttons .signin-reseller-btn:hover {background-color: #5DBD26;color: #fff;}
.mjf-popup .popup-close:hover {color: #000;}

@media only screen and (max-width: 1180px){
.mjf-popup .mjf-popup-content {max-width: 665px;padding: 50px 50px;}
}

@media only screen and (max-width: 767px){
.mjf-popup .mjf-popup-content {max-width: 90vw;padding: 50px 50px;}
}
/*
.mjf-popup .popup-buttons {flex-wrap: wrap;}
.mjf-popup .mjf-popup-content {width: 100%;max-width: 92%;padding: 35px 12px;}
.mjf-popup .mjf-popup-content h2 {font-size: 28px !important;}
.mjf-popup .mjf-popup-content p {font-size: 16px;line-height: 24px;}
.mjf-popup  .popup-buttons .cta-btn { padding: 8px 20px;font-size: 16px;width: 100%;}
.mjf-popup .popup-close {top: -5px; right: -9px;font-size: 34px;}
}
*/
@media only screen and (max-width: 992px) and (orientation: landscape){
.mjf-popup .mjf-popup-content {max-width: 640px;padding: 50px 50px;}
.mjf-popup .mjf-popup-content h2 {font-size: 34px;}
}


/*admin area*/

.dashboard-welcome {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}

.dashboard-welcome h1 {
    color: #333;
}


.popup-logo {
    text-align: center;
    margin-bottom: 20px;
}

.popup-logo img {
    max-width: 150px;
    height: auto;
}
/* =========================================================
   MJF POPUP LOGIN — WordPress-style (ROBUST CENTERING)
   ========================================================= */


.login form .login-remember {
    float: left;
}

.login form .login-submit {
    float: right;
}



/* Overlay container MUST handle centering */
#popup-1-container {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 99999;
}

/* Inner login wrapper */
.mjf-popup-login {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
    width: 100%;
    max-width: 320px;
}

/* WordPress login card */
.mjf-popup-login form {
    margin: 0;
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #c3c4c7;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    overflow: hidden;
}

/* Heading */
.mjf-popup-login h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 400;
    margin: 0 0 50px;
    color: #3c434a;

}

/* Labels */
.mjf-popup-login label {
    font-size: 14px;
    line-height: 1.5;
    display: inline-block;
    margin-bottom: 3px;
}

/* Inputs (WP exact feel) */
.mjf-popup-login input.input,
.mjf-popup-login input[type="text"],
.mjf-popup-login input[type="email"],
.mjf-popup-login input[type="password"] {
    font-size: 24px;
    line-height: 1.3333;
    width: 100%;
    border: 1px solid #8c8f94;
    padding: 3px 5px;
    margin: 0 0 16px;
    min-height: 40px;
    background: #fff;
    box-sizing: border-box;
}

/* Focus (WP style) */
.mjf-popup-login input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 2px solid transparent;
}

/* Button */
.mjf-popup-login .button,
.mjf-popup-login .button-primary {
    float: right;
    padding: 0 12px;
    height: 36px;
    line-height: 34px;
    font-size: 13px;
    border-radius: 3px;
    cursor: pointer;
}

.mjf-popup-login .button:hover {
    background: #135e96;
    border-color: #135e96;
}

/* Messages */
.mjf-popup-login .login-error,
.mjf-popup-login .mjf-message {
    border-left: 4px solid #d63638;
    padding: 12px;
    margin-bottom: 16px;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
}

/* Links */
.mjf-popup-login a {

    text-decoration: none;
}

.mjf-popup-login a:hover {
    color: #135e96;
}

/* Mobile */
@media (max-width: 420px) {
    .mjf-popup-login {
        max-width: 100%;
    }

    .mjf-popup-login form {
        padding: 20px;
    }
}