/* MHN Secure Login */

/* ---------- login forms: passkey button ---------- */
.mhn-sl-passkey { margin: 0 0 16px; }
.mhn-sl-pk-login {
    display: flex !important; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 44px; box-sizing: border-box; cursor: pointer;
}
.mhn-sl-pk-icon {
    width: 18px; height: 18px; flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2'/%3E%3Ccircle cx='17' cy='14' r='2.5'/%3E%3Cpath d='M17 16.5V22l1.5-1.5L17 19'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2'/%3E%3Ccircle cx='17' cy='14' r='2.5'/%3E%3Cpath d='M17 16.5V22l1.5-1.5L17 19'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mhn-sl-pk-error { margin: 8px 0 0; color: #d63638; font-size: 13px; }

/* With MHN Login Theme (dark) */
.mhn-login #loginform .mhn-sl-passkey { order: 7; margin: 10px 0 0; }
.mhn-login #loginform:not(:has(.wp_google_login)) .mhn-sl-passkey { order: 6; margin-top: 0; }
.mhn-login .mhn-sl-pk-login {
    margin: 0; padding: 10px 16px; background: transparent; border: 1px solid var(--mlt-line-2); border-radius: 3px;
    color: var(--mlt-text); font: 500 15px/1.4 var(--mlt-font); box-shadow: none; min-height: 46px;
}
.mhn-login .mhn-sl-pk-login:hover,
.mhn-login .mhn-sl-pk-login:focus { background: rgba(255, 255, 255, .04); border-color: var(--mlt-accent); color: #fff; box-shadow: none; }
.mhn-login .mhn-sl-pk-login .mhn-sl-pk-icon { background: var(--mlt-accent); }
.mhn-login .mhn-sl-pk-error { color: #fda4af; }

/* WooCommerce My Account login form */
.woocommerce-form-login .mhn-sl-passkey { margin-top: 18px; }

/* ---------- challenge screen ---------- */
.mhn-sl-lead { margin: 0 0 18px; line-height: 1.55; }
.mhn-login .mhn-sl-lead { color: var(--mlt-muted); text-align: center; font-size: 14px; }
.mhn-sl-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .3em; font-size: 20px !important; }
.mhn-login #login .mhn-sl-code { padding-left: 16px !important; background-image: none !important; text-align: center; }
.mhn-sl-form .submit { margin-top: 4px; }
.mhn-sl-resend { margin: 12px 0 0 !important; text-align: center; }
.mhn-sl-resend .button-link { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; text-decoration: underline; font: inherit; }
.mhn-login .mhn-sl-resend .button-link { color: var(--mlt-accent); text-decoration: none; font-size: 13.5px; }
.mhn-sl-other { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid rgba(127, 127, 127, .25); }
.mhn-login .mhn-sl-other { border-top-color: var(--mlt-line); }
.mhn-sl-other__title { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; opacity: .7; }
.mhn-login .mhn-sl-other__title { font-family: var(--mlt-mono); color: var(--mlt-muted); opacity: 1; text-align: center; }
.mhn-sl-other ul { margin: 0; padding: 0; list-style: none; }
.mhn-sl-other li { margin: 0 0 6px; text-align: center; }
.mhn-login .mhn-sl-other a { color: var(--mlt-accent); text-decoration: none; font-size: 14px; }
.mhn-login .mhn-sl-other a:hover { color: #fff; }
.mhn-sl-steps { margin: 0 0 12px 18px; padding: 0; font-size: 14px; line-height: 1.5; }
.mhn-login .mhn-sl-steps { color: var(--mlt-text); }
.mhn-sl-qr { width: 196px; height: 196px; margin: 4px auto 14px; padding: 0; background: #fff; border-radius: 6px; overflow: hidden; }
.mhn-sl-qr svg { width: 100%; height: 100%; display: block; }
.mhn-sl-secret { margin: 0 0 16px; text-align: center; font-size: 13px; }
.mhn-sl-secret code { display: inline-block; margin-top: 4px; padding: 4px 8px; font-size: 13px; letter-spacing: .08em; word-break: break-all; }
.mhn-login .mhn-sl-secret { color: var(--mlt-muted); }
.mhn-login .mhn-sl-secret code { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid var(--mlt-line); border-radius: 3px; font-family: var(--mlt-mono); }

/* ---------- security panel (wp-admin profile + My Account) ---------- */
.mhn-sl-panel { max-width: 720px; --sl-line: rgba(127, 127, 127, .28); --sl-ok: #008a20; --sl-bad: #b32d2e; --sl-accent: var(--dream-color-primary, #2271b1); }
.mhn-sl-status { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 0 0 16px; border: 1px solid var(--sl-line); border-left: 4px solid var(--sl-bad); border-radius: 6px; background: rgba(127, 127, 127, .05); }
.mhn-sl-status.is-on { border-left-color: var(--sl-ok); }
.mhn-sl-status__dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--sl-bad); flex: none; box-shadow: 0 0 0 4px rgba(179, 45, 46, .15); }
.mhn-sl-status.is-on .mhn-sl-status__dot { background: var(--sl-ok); box-shadow: 0 0 0 4px rgba(0, 138, 32, .15); }
.mhn-sl-status strong { display: block; font-size: 15px; }
.mhn-sl-status span { display: block; opacity: .8; font-size: 13.5px; margin-top: 2px; }
.mhn-sl-required { margin: -6px 0 14px; color: var(--sl-bad); font-weight: 600; font-size: 13px; }
.mhn-sl-msg { margin: 0 0 14px; padding: 10px 14px; border-radius: 4px; background: rgba(0, 138, 32, .08); border: 1px solid rgba(0, 138, 32, .3); font-size: 14px; }
.mhn-sl-msg.is-error { background: rgba(179, 45, 46, .07); border-color: rgba(179, 45, 46, .35); }
.mhn-sl-card { padding: 18px 20px; margin: 0 0 14px; border: 1px solid var(--sl-line); border-radius: 6px; background: rgba(255, 255, 255, .6); }
.mhn-sl-card header { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.mhn-sl-card h3 { margin: 0; font-size: 16px; }
.mhn-sl-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.mhn-sl-tag, .mhn-sl-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.mhn-sl-tag { background: rgba(34, 113, 177, .1); color: var(--sl-accent); }
.mhn-sl-pill { background: rgba(127, 127, 127, .14); color: inherit; opacity: .85; }
.mhn-sl-pill.is-on { background: rgba(0, 138, 32, .12); color: var(--sl-ok); opacity: 1; }
.mhn-sl-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 6px; }
.mhn-sl-row input { flex: 1 1 200px; min-width: 0; max-width: 320px; margin: 0 !important; }
.mhn-sl-panel .mhn-sl-code { max-width: 180px; letter-spacing: .25em; font-size: 17px !important; }
.mhn-sl-list { margin: 0 0 14px; padding: 0; list-style: none; border: 1px solid var(--sl-line); border-radius: 6px; }
.mhn-sl-list li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--sl-line); }
.mhn-sl-list li:first-child { border-top: 0; }
.mhn-sl-list__icon { width: 22px; height: 22px; flex: none; background: var(--sl-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2'/%3E%3Ccircle cx='17' cy='14' r='2.5'/%3E%3Cpath d='M17 16.5V22l1.5-1.5L17 19'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2'/%3E%3Ccircle cx='17' cy='14' r='2.5'/%3E%3Cpath d='M17 16.5V22l1.5-1.5L17 19'/%3E%3C/svg%3E") center / contain no-repeat; }
.mhn-sl-list__main { flex: 1; min-width: 0; }
.mhn-sl-list__main strong { display: block; font-size: 14px; }
.mhn-sl-list__main small { display: block; opacity: .7; font-size: 12.5px; }
.mhn-sl-panel .button-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--sl-accent); font: inherit; font-size: 13.5px; text-decoration: underline; }
.mhn-sl-panel .mhn-sl-danger.button-link { color: var(--sl-bad); }
.mhn-sl-panel .button.mhn-sl-danger,
.mhn-sl-panel .button.mhn-sl-danger:hover,
.mhn-sl-panel .button.mhn-sl-danger:focus { background: transparent !important; color: var(--sl-bad) !important; border: 1px solid currentColor !important; box-shadow: none !important; }
.mhn-sl-panel .button.mhn-sl-danger:hover { background: rgba(179, 45, 46, .07) !important; }
.mhn-sl-totp-setup, .mhn-sl-email-setup { margin-top: 12px; }
.mhn-sl-totp-setup ol { margin: 0 0 10px 18px; padding: 0; font-size: 14px; }
.mhn-sl-panel .mhn-sl-qr { margin: 6px 0 10px; border: 1px solid var(--sl-line); }
.mhn-sl-panel .mhn-sl-secret { text-align: left; }
.mhn-sl-codes { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--sl-line); border-radius: 6px; background: rgba(127, 127, 127, .05); }
.mhn-sl-codes ol { columns: 2; margin: 0 0 10px 20px; padding: 0; font: 15px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mhn-sl-note { opacity: .75; font-size: 13px !important; }
.mhn-sl-unsupported { color: var(--sl-bad); font-size: 13px; }
@media (max-width: 520px) { .mhn-sl-codes ol { columns: 1; } .mhn-sl-card { padding: 16px; } }
