body.page-template-page-login .mp_login_form * {
    text-decoration: none;
    color: #929C97;
    font-family: 'GT Pressura LCG Mono', monospace;
}

/* Basic styles for the default log-in wrapper */
body.page-template-page-login .mp_login_form,
/* Add another selector for "forgot' dialogue */
body.page-template-page-login .mp_wrapper:has(#mepr_forgot_password_form),
body.page-template-page-login .mp_wrapper.mepr_password_reset_requested {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,  -50%);
    padding: var(--one-point-five-spacer);
    border: 1px solid;
    border-radius: 10px;
    width: 50%;
}
@media screen and (max-width: 959px) {
    body.page-template-page-login .mp_login_form,
    /* Add another selector for "forgot' dialogue */
    body.page-template-page-login .mp_wrapper:has(#mepr_forgot_password_form),
    body.page-template-page-login .mp_wrapper.mepr_password_reset_requested {
        width: 75% !important;
    }
}

/* Remove padding on 'Hide/Show' password icon */
body.page-template-page-login button.mp-hide-pw {
    padding: 0 !important;
}

/* 'Remember Me' div doesn't have any identifiers, targeting it here */
body.page-template-page-login .mp-form-row.mepr_password + div {
    font-size: var(--wp--preset--font-size--small);
    font-weight: bold;
    text-transform: uppercase;
}

body.page-template-page-login .mp-form-row.mepr_password + div > label {
    display: flex;
    gap: var(--zero-point-five-spacer);
    align-items: baseline;
}

body.page-template-page-login input#rememberme {
    -webkit-appearance: none !important;
    appearance: none !important;
    /* For iOS < 15 to remove gradient background */
    background-color: transparent !important;
    /* Not removed via appearance */
    margin: 0 !important;
    font: inherit !important;
    color: currentColor !important;
    width: 10px !important;
    height: 10px !important;
    border: 1px solid currentColor !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

body.page-template-page-login input#rememberme:checked {
    background-color: var(--wp--preset--color--orange) !important;
    border-color: var(--wp--preset--color--orange) !important;
}

body.page-template-page-login div.submit {
    text-align: right;
}

body.page-template-page-login input#wp-submit {
    background-color: var(--wp--preset--color--orange) !important;
    color: var(--wp--preset--color--off-white) !important;
    border: none !important;
    border-radius: 5px !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: var(--zero-point-five-spacer) !important;
    line-height: 1 !important;
    font-size: var(--wp--preset--font-size--small) !important;
}

body.page-template-page-login form#mepr_loginform  {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--one-point-five-spacer);
}
body.page-template-page-login .mp-spacer {
    display: none;
}

body.page-template-page-login .mepr-login-actions {
    position: absolute;
    left: var(--one-point-five-spacer);
    bottom: var(--one-point-five-spacer);
}

body.page-template-page-login .mepr-login-actions a {
    font-size: var(--wp--preset--font-size--small);
    background-color: var(--wp--preset--color--red);
    color: var(--wp--preset--color--off-black) !important;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    padding: var(--zero-point-five-spacer);
    line-height: 1;
}

body.page-template-page-login .dashicons {
    font-family: dashicons;
}

/* Password reset page */
body.page-template-page-login .mp_wrapper:has(#mepr_forgot_password_form) h3,
body.page-template-page-login .mp_wrapper.mepr_password_reset_requested h3 {
    margin-bottom: var(--one-point-five-spacer);
}
body.page-template-page-login .mepr_forgot_password_input {
    font: var(--bold-small-pressura-mono);
    color: #929C97;
}
body.page-template-page-login .mp_wrapper.mepr_password_reset_requested *:not(h3) {
    font: var(--bold-small-pressura-mono);
}