/* Prevent the uncustomized WPUF markup from flashing before custom.js runs. */
body #wpuf-login-form:not(.a2b-wpuf-custom-ready) {
    visibility: hidden;
}

/* Keep the reset errors from inheriting theme form styles. */
body #wpuf-login-form .a2b-wpuf-error-message {
    clear: both;
    color: #d8000c;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 5px;
}

/* Match the older forms' compact password fields while retaining the latest markup. */
body #wpuf-login-form .a2b-wpuf-custom-reset-form .wpuf-fields-inline {
    max-width: 100%;
}

body #wpuf-login-form .a2b-wpuf-custom-reset-form .wpuf-fields-inline input {
    box-sizing: border-box;
}

body #wpuf-login-form .a2b-wpuf-custom-reset-form .wpuf-eye {
    cursor: pointer;
}

/* Keep labels available to assistive technology while matching the older compact UI. */
body #loginform.a2b-wpuf-custom-login-form > p:not(.forgetmenot) > label,
body #lostpasswordform.a2b-wpuf-custom-lost-password-form > p > label,
body #resetpasswordform.a2b-wpuf-custom-reset-form > p > label {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* The current template leaves an empty action-links wrapper after the moved link. */
body #wpuf-login-form .wpuf-action-links:empty {
    display: none;
}

/* Match the old standalone link that was rendered after the login form. */
body #wpuf-login-form .a2b-wpuf-lost-password {
    clear: both;
}
