.ll-two-factor-background {
    pointer-events: none;
    user-select: none;
}

.ll-two-factor-prompt {
    position: fixed;
    z-index: 99990;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 32px;
    border: 1px solid #d0e2f5;
    border-radius: 22px;
    background: #fff;
    color: #102b46;
    box-shadow: 0 24px 90px #061d3b55;
}

.ll-two-factor-prompt[hidden] { display: none; }
.ll-two-factor-prompt h2 { margin: 12px 0; font-size: 24px; }
.ll-two-factor-prompt > p { margin-bottom: 24px; line-height: 1.6; }
.ll-two-factor-prompt .ll-text-link { display: inline-block; margin: 16px 0 0; }

.ll-two-factor-notice {
    margin: 20px 0 24px;
    padding: 14px 16px;
    border: 1px solid #9fc9ee;
    border-radius: 12px;
    background: #edf7ff;
    line-height: 1.5;
}

.ll-two-factor-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ll-two-factor-method {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    min-height: 218px;
    padding: 18px;
    border: 1px solid #d4e1ed;
    border-radius: 16px;
    background: #f9fcff;
}

.ll-two-factor-method.is-active {
    border-color: #79b8ec;
    background: #f0f8ff;
    box-shadow: inset 0 0 0 1px #b9dcf8;
}

.ll-two-factor-method__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #0d66b4;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.ll-two-factor-method h3 {
    margin: 2px 0 7px;
    color: #102b46;
    font-size: 17px;
}

.ll-two-factor-method p {
    margin: 0;
    color: #536d84;
    font-size: 14px;
    line-height: 1.45;
}

.ll-two-factor-method .ll-button,
.ll-two-factor-method__status {
    grid-column: 1 / -1;
    align-self: end;
    margin-top: auto;
}

.ll-two-factor-method .ll-button {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
}

.ll-two-factor-method__status {
    color: #087044;
    font-size: 13px;
    font-weight: 800;
}

.ll-two-factor-logout { font-weight: 750; }

.ll-account-security {
    margin-top: 32px;
    padding-top: 30px;
    border-top: 1px solid #d7e4ef;
}

.ll-account-security__heading { margin-bottom: 22px; }
.ll-account-security__heading h2 { margin: 7px 0; }
.ll-account-security__heading p { max-width: 720px; margin: 0; color: #536d84; line-height: 1.55; }

.ll-passkey-list {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #d4e1ed;
    border-radius: 14px;
    background: #fff;
}

.ll-passkey-list h3 { margin: 0 0 12px; font-size: 16px; }
.ll-passkey-record { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ll-passkey-record > div:first-child { display: grid; gap: 4px; }
.ll-passkey-record span { color: #60788e; font-size: 13px; }
.ll-passkey-record__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ll-text-button { padding: 0; border: 0; background: transparent; color: #0968bc; cursor: pointer; font: inherit; font-weight: 750; }
.ll-text-button:hover { text-decoration: underline; }
.ll-text-button--danger { color: #a83232; }

.ll-passkey-login {
    display: grid;
    gap: 10px;
    margin-top: 4px;
    text-align: center;
}

.ll-passkey-login[hidden] { display: none !important; }
.ll-passkey-login > span { color: #73879a; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.ll-passkey-login .ll-button { width: 100%; }
.ll-panel--login .submit,
.ll-panel--login .forgetmenot { margin: 0; }
.ll-panel--login #login_error { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; background: #fff2f2; color: #8f2424; }

.ll-login-email-step { display: none; }
.ll-login-password-step { display: grid; gap: 16px; }
.ll-form.is-email-step .ll-login-email-step { display: grid; gap: 16px; }
.ll-form.is-email-step .ll-login-password-step { display: none; }
.ll-form.is-password-step .ll-login-email-step { display: none; }
.ll-login-email-step > p {
    margin: -2px 0 0;
    color: #dbeaff;
    font-size: 14px;
    line-height: 1.55;
}
.ll-login-email-step .ll-button,
.ll-login-password-step .submit .ll-button { width: 100%; }
.ll-login-change-email {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.ll-login-passkey-status {
    position: relative;
    min-height: 24px;
    margin: 0;
    padding-left: 32px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
}
.ll-login-passkey-status[hidden] { display: none; }
.ll-login-passkey-status::before {
    position: absolute;
    top: 2px;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff55;
    border-top-color: #fff;
    border-radius: 50%;
    content: '';
    animation: ll-passkey-spin .75s linear infinite;
}
@keyframes ll-passkey-spin { to { transform: rotate(360deg); } }

.wp2fa-passkey-overlay { z-index: 100010 !important; }

.wp2fa-setup-wizard-modal {
    border-radius: 22px;
    color: #102b46;
    font-family: inherit;
}

#wp2fa-passkey-register-usb,
#wp2fa-passkey-register {
    appearance: none;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid var(--ll-blue-600, #1672d4);
    border-radius: 999px;
    background: var(--ll-blue-600, #1672d4);
    color: #fff;
    font: inherit;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

#wp2fa-passkey-register-usb:hover,
#wp2fa-passkey-register-usb:focus,
#wp2fa-passkey-register:hover,
#wp2fa-passkey-register:focus {
    border-color: var(--ll-blue-700, #125ca8);
    background: var(--ll-blue-700, #125ca8);
    color: #fff;
}

#wp2fa-passkey-register-usb:focus-visible,
#wp2fa-passkey-register:focus-visible {
    outline: 3px solid #9fc9ee;
    outline-offset: 2px;
}

#wp2fa-passkey-register-usb:disabled,
#wp2fa-passkey-register:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .ll-two-factor-prompt { padding: 24px; }
    .ll-two-factor-methods { grid-template-columns: 1fr; }
    .ll-two-factor-method { min-height: 0; }
    .ll-passkey-record { align-items: flex-start; flex-direction: column; }
    .ll-login-email-step .ll-button,
    .ll-login-password-step .submit .ll-button { min-height: 50px; }
    .wp2fa-passkey-modal__footer { align-items: stretch; flex-direction: column; }
    .wp2fa-passkey-modal__footer-actions { display: grid; grid-template-columns: 1fr; }
    #wp2fa-passkey-register-usb,
    #wp2fa-passkey-register { width: 100%; }
    .wp2fa-passkey-modal__cancel { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .ll-login-passkey-status::before { animation-duration: 1.5s; }
}

@media (min-width: 601px) and (max-width: 820px) {
    .ll-two-factor-methods { grid-template-columns: 1fr; }
    .ll-two-factor-method { min-height: 0; }
}
