/* ---------- Layout ---------- */

.main-dash-content.text-object {
    width: 800px !important;
    max-width: 800px !important;
    min-height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ---------- Card ---------- */

.bl-login-card {
    width: 450px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* ---------- Logo ---------- */

.bl-login-logo {
    background: #1f1f1f;
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
}

.bl-login-logo img {
    max-width: 220px;
    height: auto;
}

/* ---------- Header ---------- */

.bl-login-header {
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.bl-login-header h2 {
    color: #083f52;
    margin-bottom: 10px;
}

.bl-login-header p {
    color: #666;
    margin: 0;
}

/* ---------- Form ---------- */

#bl-direct-login-form {
    text-align: center;
}

#bl-direct-login-form .form-group {
    width: 85%;
    margin: 0 auto 25px auto;
    text-align: left;
}

#bl-direct-login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #083f52;
}

#bl-direct-login-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
}

/* Show/hide password eye. Edge's built-in one is hidden so every browser
   gets the same single button. */
.bl-password-wrap {
    position: relative;
}

#bl-direct-login-form .bl-password-wrap .form-control {
    padding-right: 46px;
}

#bl-login-password::-ms-reveal,
#bl-login-password::-ms-clear {
    display: none;
}

.bl-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #083f52;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bl-password-toggle:hover {
    background: rgba(8, 63, 82, 0.08);
}

.bl-password-toggle:focus-visible {
    outline: 2px solid #083f52;
    outline-offset: 1px;
}

.bl-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bl-password-toggle .bl-eye-off,
.bl-password-toggle[aria-pressed="true"] .bl-eye {
    display: none;
}

.bl-password-toggle[aria-pressed="true"] .bl-eye-off {
    display: block;
}

#bl-login-error {
    width: 75%;
    margin: 0 auto 15px auto;
    text-align: center;
    color: #b91c1c;
    line-height: 1.5;
}

/* ---------- Button ---------- */

.bl-login-button {
    width: 180px;
    background: #f0b323;
    color: #083f52;
    border: none;
    border-radius: 6px;
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Footer Links ---------- */

.bl-login-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.bl-login-links a {
    color: #083f52;
    text-decoration: none;
}

.bl-login-links a:hover {
    text-decoration: underline;
}

#bl-forgot-password-form {
    text-align: center;
}

#bl-forgot-password-form .form-group {
    width: 75%;
    margin: 0 auto 25px auto;
    text-align: left;
}

#bl-forgot-password-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
}

#bl-reset-message {
    width: 75%;
    margin: 0 auto 20px auto;
    text-align: center;
    color: #083f52;
    line-height: 1.6;
}

#bl-forgot-password-view .bl-login-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

#bl-forgot-password-view .bl-login-links a {
    color: #083f52;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border: 1px solid #083f52;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#bl-forgot-password-view .bl-login-links a:hover {
    background: #0a4d5f;
    color: #ffffff !important;
    text-decoration: none;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .main-dash-content.text-object {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
    }

    .bl-login-card {
        width: 100%;
        padding: 25px;
        box-sizing: border-box;
    }

    #bl-direct-login-form .form-group,
    #bl-forgot-password-form .form-group,
    #bl-login-error,
    #bl-reset-message {
        width: 100%;
    }

    .bl-login-button {
        width: 100%;
    }

    .bl-login-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

html,
body {
overflow-y: auto !important;
height: auto !important;
}

#bl-direct-login-form label,
#bl-forgot-password-form label {
    color: #083f52 !important;
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

#dashboard-wrapper.Login-screen .bl-login-card .bl-login-links a {
color: #083f52 !important;
text-decoration: none !important;
}
 
#dashboard-wrapper.Login-screen .bl-login-card .bl-login-links a:hover {
text-decoration: underline !important;
}

#dashboard-wrapper.Login-screen
.bl-login-card
#bl-forgot-password-view
.bl-login-links
a:hover {

    background: #292929 !important;
    color: #ffffff !important;
    text-decoration: none !important;

}

#dashboard-wrapper.Login-screen #wpmem_reg
.button_div {

    text-align: center;

}

#dashboard-wrapper.Login-screen
#wpmem_reg
.button_div
input[type="submit"] {

    display: inline-block;

}

/* ==================================================
   Registration Page (WP-Members)
   ================================================== */

/* Login card default */

.bl-login-card {
    max-width: 650px;
    width: 100%;
}

/* Registration page card */

.bl-login-card #wpmem_reg {
    width: 100%;
}

.bl-login-card:has(#wpmem_reg) {
    max-width: 800px;
}

/* Registration form container */

.bl-login-card #wpmem_reg {
    width: 100%;
}

/* Registration heading */

.bl-login-card #wpmem_reg fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.bl-login-card #wpmem_reg legend {
    display: block;
    width: 100%;
    color: #083f52 !important;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 30px 0;
    padding: 0;
    border: 0;
}

/* Registration labels */

.bl-login-card #wpmem_reg label.text {
    display: block;
    width: 80%;
    margin: 0 auto 8px auto;
    color: #083f52 !important;
    font-weight: 600;
    text-align: left;
}

/* Registration field wrapper */

.bl-login-card #wpmem_reg .div_text {
    width: 80%;
    margin: 0 auto 20px auto;
}

/* Registration inputs */

.bl-login-card #wpmem_reg input[type="text"],
.bl-login-card #wpmem_reg input[type="email"],
.bl-login-card #wpmem_reg input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Register button */

.bl-login-card #wpmem_reg .button_div {
    text-align: center;
    margin-top: 20px;
}

.bl-login-card #wpmem_reg .button_div input[type="submit"] {
    background: #f0b323;
    color: #083f52 !important;
    border: 0;
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
}

/* Required field note */

.bl-login-card #wpmem_reg .req-text {
    width: 80%;
    margin: 20px auto 0 auto;
    color: #083f52;
}

/* Center login/register container */
#dashboard-wrapper.Login-screen .main-dash-content.text-object {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hide duplicate email field */
#wpmem_reg label[for="user_email"],
#wpmem_reg input[name="user_email"] {
display: none !important;
}

/* Hide duplicate Email Address field */
#wpmem_reg label[for="user_email"],
#wpmem_reg label[for="user_email"] + .div_text {
    display: none !important;
}

/* Registration success message */
.bl-login-card .wpmem_msg {
    width: 80%;
    margin: 20px auto 30px auto;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 8px;

    color: #000000 !important;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

/* Force message text dark */
.bl-login-card .wpmem_msg,
.bl-login-card .wpmem_msg * {
    color: #000000 !important;
}

/* Hide WP-Members login form after registration */
.bl-login-card #wpmem_login {
display: none !important;
}

.bl-login-card .bl-login-links {
    margin-top: 25px;
    text-align: center;
}

.bl-login-card .bl-login-links a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #292929;
    border-radius: 6px;
    color: #292929;
    text-decoration: none;
    font-weight: 600;
}

.bl-login-card .bl-login-links a:hover {
    background: #292929 !important;
    color: #ffffff !important;
}

#dashboard-wrapper.Login-screen .bl-login-card .bl-login-links a:hover {
background: #292929 !important;
color: #ffffff !important;
text-decoration: none !important;
}
/* ==================================================
   Account Recovery ("I need help logging in")
   ================================================== */

.bl-recovery-form {
    text-align: center;
}

.bl-recovery-form .form-group {
    width: 75%;
    margin: 0 auto 25px auto;
    text-align: left;
}

.bl-recovery-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #083f52 !important;
}

.bl-recovery-form .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    box-sizing: border-box;
}

.bl-recovery-form button[disabled] {
    opacity: .6;
    cursor: wait;
}

.bl-recovery-error {
    width: 75%;
    margin: 0 auto 15px auto;
    text-align: center;
    color: #b91c1c;
    line-height: 1.5;
}

.bl-recovery-message {
    width: 80%;
    margin: 0 auto 10px auto;
    text-align: center;
    color: #083f52;
    line-height: 1.6;
}

.bl-login-card .bl-recovery-message a {
    color: #083f52 !important;
    font-weight: 600;
    text-decoration: underline !important;
}

/* Card shrinks to fit its content; keep this short view from narrowing */
#bl-find-email-view {
    min-width: 400px;
}

.bl-npn-help {
    margin: -10px auto 25px auto;
    text-align: center;
}

.bl-login-card .bl-npn-help a {
    color: #083f52 !important;
    text-decoration: underline !important;
}

.bl-email-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.bl-recovery-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.bl-recovery-actions .bl-login-button {
    width: 240px;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none !important;
    color: #083f52 !important;
}

.bl-login-card .bl-links-stacked {
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {

    #bl-find-email-view {
        min-width: 0;
    }

    .bl-recovery-form .form-group,
    .bl-recovery-error,
    .bl-recovery-message,
    .bl-recovery-actions .bl-login-button {
        width: 100%;
    }
}

/* ==================================================
   Login layout + temporary notice card
   ================================================== */

.bl-login-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 800px;
    max-width: 100%;
}

.bl-login-layout .bl-login-card {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.bl-login-notice {
    flex: 0 0 260px;
    box-sizing: border-box;
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    border-top: 5px solid #f0b323;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    color: #083f52;
    line-height: 1.6;
}

.bl-login-notice h3 {
    color: #083f52 !important;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.bl-login-notice p {
    color: #083f52 !important;
    margin: 0 0 12px 0;
}

.bl-login-notice p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .bl-login-layout {
        flex-direction: column;
        width: 100%;
    }

    .bl-login-layout .bl-login-card,
    .bl-login-notice {
        flex: 0 0 auto;
        width: 100%;
    }

    /* On phones, show the notice above the login card */
    .bl-login-notice {
        order: -1;
    }
}

/* Match the input width so short errors stay on one line */
#bl-login-error {
    width: 85%;
}

.bl-login-card #bl-login-error a {
    color: #b91c1c !important;
    font-weight: 600;
    text-decoration: underline !important;
}

/* ==================================================
   Set new password: rules checklist
   ================================================== */

#bl-reset-set-view .bl-login-header p {
    color: #333 !important;
    line-height: 1.6;
}

.bl-password-rules {
    width: 75%;
    margin: -10px auto 25px auto;
    padding: 14px 16px;
    box-sizing: border-box;
    text-align: left;
    background: #f5f8fa;
    border: 1px solid #d9e3e8;
    border-radius: 8px;
    color: #083f52;
    font-size: 16px;
    line-height: 1.5;
}

.bl-password-rules p {
    color: #083f52 !important;
}

.bl-password-rules .bl-rules-title {
    font-weight: 600;
    margin: 0 0 8px 0;
}

.bl-password-rules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bl-password-rules ul ul {
    margin-top: 6px;
    padding-left: 4px;
}

.bl-password-rules li {
    position: relative;
    margin: 4px 0;
    padding-left: 28px;
}

/* The theme puts a bullet before every li in .text-object; hide it here */
.bl-login-card .bl-password-rules li::before {
    content: none !important;
    display: none !important;
}

.bl-rule-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 22px;
    text-align: center;
    font-weight: 700;
}

.bl-rule-icon::before {
    content: "\25CB";
    color: #8a969c;
}

/* Child selector so a met "3 of 4" line doesn't tick its sub-items */
.bl-password-rules li.bl-rule-met > .bl-rule-icon::before {
    content: "\2713";
    color: #15803d;
}

.bl-password-rules li.bl-rule-met > span:not(.bl-rule-icon) {
    color: #15803d;
}

.bl-rule-count {
    color: #555;
}

.bl-password-rules .bl-rules-tip {
    margin: 12px 0 0 0;
    font-size: 15px;
    color: #444 !important;
}

.bl-password-match {
    margin: 8px 0 0 0;
    font-size: 15px;
    min-height: 1.5em;
}

.bl-password-match.bl-match-yes {
    color: #15803d !important;
    font-weight: 600;
}

.bl-password-match.bl-match-no {
    color: #b91c1c !important;
}

.bl-recovery-form .bl-show-password label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.bl-show-password input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}

@media (max-width: 768px) {

    .bl-password-rules {
        width: 100%;
    }
}
