/* ==========================================================================
   Custom Login — Green Theme (Fixed Clickable Button)
   ========================================================================== */

body.login {
    background: #F7F8FA;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Logo area */
body.login #login h1 a {
    width: 220px;
    height: 90px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto 22px;
}

body.login #login {
    width: 380px;
    padding-top: 48px;
    /* Create stacking context here, not on the form */
    position: relative;
}

/* Main card — NO position: relative, NO overflow: hidden */
body.login form#loginform {
    background: #ffffff;
    border: 1px solid #E4E7EC;
    border-radius: 14px;
    box-shadow: none;
    padding: 32px;
}

/* Decorative soft circle — attached to #login, not form */
body.login #login::before {
    content: "";
    position: absolute;
    top: 60px; /* below logo area */
    right: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #EAF6EE;
    z-index: 0;
    /* CRITICAL: let clicks pass through */
    pointer-events: none;
}

/* Checkmark badge — attached to #login, not form */
body.login #login::after {
    content: "\2713";
    position: absolute;
    top: 80px;
    right: 20px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B5E3F, #2E8B57);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 26px;
    text-align: center;
    z-index: 1;
    /* CRITICAL: let clicks pass through */
    pointer-events: none;
}

/* Labels */
body.login label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

/* Text inputs */
body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
    border: 1px solid #D8DCE3;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #14213D;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
    border-color: #2E8B57;
    box-shadow: 0 0 0 1px #2E8B57;
    outline: none;
}

/* Remember me */
body.login .forgetmenot {
    margin-top: 14px;
}

body.login .forgetmenot label {
    font-size: 13px;
    color: #374151;
}

body.login input#rememberme {
    accent-color: #1B5E3F;
}

/* Submit button — ensure it's clickable */
body.login .button-primary,
body.login #wp-submit {
    background: linear-gradient(90deg, #14213D, #1B5E3F);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 24px;
    height: auto;
    line-height: 2.2;
    text-shadow: none;
    box-shadow: none;
    transition: background 0.15s ease;
    /* Ensure button is above any overlays */
    position: relative;
    z-index: 2;
    cursor: pointer;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
    background: linear-gradient(90deg, #1B5E3F, #2E8B57);
    box-shadow: none;
}

/* Links below the card */
body.login #nav,
body.login #backtoblog {
    text-align: center;
}

body.login #nav a,
body.login #backtoblog a {
    color: #1B5E3F;
    font-weight: 500;
    font-size: 12px;
    text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #2E8B57;
    text-decoration: underline;
}

/* Error / notice messages */
body.login #login_error,
body.login .message {
    border-left-color: #2E8B57;
    border-radius: 8px;
    background: #ffffff;
    border-top: 1px solid #E4E7EC;
    border-right: 1px solid #E4E7EC;
    border-bottom: 1px solid #E4E7EC;
}

/* ==========================================================================
   Optional: Google login button
   ========================================================================== */
body.login .mcqadda-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin-top: 18px;
    border: 1px solid #D8DCE3;
    border-radius: 8px;
    background: #ffffff;
    font-size: 13px;
    color: #14213D;
    font-weight: 500;
    cursor: pointer;
}