/* =========================================================
   LOCALPRO — IDENTITY
   Login / Register
========================================================= */


/* PAGE TITLE */

.identity-acceptance { display: flex; align-items: flex-start; gap: 12px; margin-block: 24px 8px; }
.identity-acceptance input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; accent-color: var(--color-blue-solid); }
.identity-acceptance label { font-size: .875rem; line-height: 1.6; cursor: pointer; }
.identity-restart { margin-top: 16px; }
.identity-secondary { padding: 10px 0; border: 0; background: transparent; color: var(--color-blue); text-decoration: underline; cursor: pointer; }

main > h1 {
    max-width: 520px;
    margin: 50px auto 0;
    padding: 0 24px;
    color: var(--color-text);
    font-size: 38px;
    line-height: 1.15;
    font-weight: 750;
}


/* =========================================================
   MAIN IDENTITY LAYOUT
========================================================= */

.row {
    max-width: 520px;
    margin: 20px auto 65px;
    padding: 0 24px;
}


    /*
   LOGIN / REGISTER FORM COLUMN
*/

    .row > div:first-child {
        width: 100%;
        max-width: none;
        padding: 30px;
        border: 1px solid var(--color-border);
        border-radius: 16px;
        background: var(--color-surface);
        box-shadow: 0 8px 28px rgba(var(--color-shadow-rgb), 0.04);
    }


    /*
   Hide the default ASP.NET
   "Use another service to log in" column.
*/

    .row > div:nth-child(2) {
        display: none !important;
    }


    /* =========================================================
   HEADINGS
========================================================= */

    .row h2 {
        margin: 0 0 24px;
        color: var(--color-text);
        font-size: 22px;
        line-height: 1.3;
        font-weight: 700;
    }


/* =========================================================
   INPUTS
========================================================= */

.form-floating {
    margin-bottom: 16px;
}

    .form-floating .form-control {
        width: 100%;
        min-height: 58px;
        padding-left: 15px;
        padding-right: 15px;
        border: 1px solid var(--color-border);
        border-radius: 10px;
        background: var(--color-surface);
        color: var(--color-text);
        font-size: 16px;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

        .form-floating .form-control:focus {
            border-color: var(--color-blue-border);
            outline: none;
            box-shadow: 0 0 0 3px rgba(var(--color-shadow-rgb), 0.10);
        }


    /* FLOATING LABEL */

    .form-floating > label {
        color: var(--color-text);
    }


/* =========================================================
   REMEMBER ME
========================================================= */

.form-check {
    margin: 18px 0 20px;
}

.form-check-label {
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
}

.form-check-input {
    cursor: pointer;
}

    .form-check-input:checked {
        background-color: var(--color-blue-solid);
        border-color: var(--color-blue-border);
    }


/* =========================================================
   PRIMARY LOGIN / REGISTER BUTTON
========================================================= */

.row .btn-primary {
    width: 100%;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--color-blue-solid);
    color: var(--color-on-accent);
    font-size: 15px;
    font-weight: 700;
}

    .row .btn-primary:hover {
        background: var(--color-blue-solid);
        color: var(--color-on-accent);
    }

    .row .btn-primary:focus {
        box-shadow: 0 0 0 3px rgba(var(--color-shadow-rgb), 0.15);
    }


/* =========================================================
   GENERAL IDENTITY LINKS
========================================================= */

.row a {
    color: var(--color-text-muted);
    font-size: 14px;
    text-decoration: none;
}

    .row a:hover {
        color: var(--color-text);
        text-decoration: underline;
    }


/*
   Space out the links under
   the Login button.
*/

.row form p {
    margin: 13px 0 0;
}

/* LocalPro-owned class names for the scaffolded registration page. The legacy
   Identity pages retain their selectors below until they are scaffolded. */
.identity-page {
    max-width: 520px;
    margin: 16px auto 48px;
    padding: 0 24px;
}

.identity-card {
    width: 100%;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 0 8px 28px rgba(var(--color-shadow-rgb), 0.04);
}

.identity-register-heading { margin-top: 24px; margin-bottom: 8px; font-size: 30px; }
.identity-register-page { margin-top: 8px; margin-bottom: 28px; padding-inline: 16px; }
.identity-register-page .identity-card { padding: 18px; }
.identity-register-page .identity-field { margin-bottom: 8px; }
.identity-register-page .identity-acceptance { gap: 9px; margin-block: 12px 6px; }
.identity-register-page .identity-acceptance label { font-size: .8125rem; line-height: 1.45; }
.identity-register-page .identity-login-prompt { margin-top: 9px; }
.identity-register-page #registerSubmit { margin-top: 2px; }
@media (max-width: 600px) {
    .identity-register-page .identity-card { padding-bottom: 84px; }
    .identity-register-page #registerSubmit {
        position: fixed;
        z-index: 850;
        right: max(16px, env(safe-area-inset-right));
        bottom: calc(12px + env(safe-area-inset-bottom));
        left: max(16px, env(safe-area-inset-left));
        width: auto;
        box-shadow: 0 4px 18px rgba(var(--color-shadow-rgb), .24);
    }
    .keyboard-open .identity-register-page .identity-card { padding-bottom: 18px; }
    .keyboard-open .identity-register-page #registerSubmit { position: static; width: 100%; box-shadow: none; }
}

.identity-field { margin-bottom: 12px; }
.identity-field > label { display: block; margin: 0 0 6px; color: var(--color-text); font-size: 14px; font-weight: 650; }
.identity-input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); color: var(--color-text); font: inherit; font-size: 16px; }
.identity-help { display: block; margin-top: 5px; color: var(--color-text-subtle); font-size: 12px; }
.identity-account-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.identity-more-help { margin-top: 12px; color: var(--color-text-subtle); font-size: 13px; }
.identity-more-help summary { cursor: pointer; }
.identity-more-help a { display: inline-block; margin-top: 7px; }
.identity-input:focus { border-color: var(--color-blue-border); outline: none; box-shadow: 0 0 0 3px rgba(var(--color-shadow-rgb), 0.10); }
.identity-validation { color: var(--color-danger); font-size: 13px; }
.identity-submit { width: 100%; min-height: 50px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--color-blue-solid); color: var(--color-on-accent); font: inherit; font-size: 15px; font-weight: 700; }
.identity-submit:hover { background: var(--color-blue-solid); }
.identity-submit:focus-visible { box-shadow: 0 0 0 3px rgba(var(--color-shadow-rgb), 0.15); }
.identity-submit:disabled { cursor: wait; opacity: 0.72; }
.login-turnstile { margin: 12px 0; }
.login-turnstile-status { margin: 0 0 8px; color: var(--color-text-subtle); font-size: 14px; }
.login-turnstile-status[hidden], .cf-turnstile[hidden] { display: none; }
.login-security-details { margin: 8px 0 12px; color: var(--color-text-subtle); font-size: 12px; }
.login-security-details summary { width: fit-content; cursor: pointer; }
.login-security-details p { margin-top: 6px; line-height: 1.5; }
.login-provider-divider { margin: 12px 0 8px; text-align: center; color: var(--color-text-subtle); }
.login-google-button { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); }
.login-google-button:hover { background: var(--color-surface-subtle); color: var(--color-text); }
.login-google-icon { width: 20px; height: 20px; flex: 0 0 20px; }

.identity-confirmation h2 { margin: 0 0 16px; font-size: 23px; line-height: 1.3; }
.identity-confirmation p { line-height: 1.6; }
.identity-confirmation-email { overflow-wrap: anywhere; }
.identity-confirmation-steps { margin: 20px 0 24px; padding-left: 24px; line-height: 1.6; }
.identity-confirmation-steps li + li { margin-top: 12px; }
.identity-confirmation-action { display: flex; align-items: center; justify-content: center; padding: 12px 18px; text-align: center; text-decoration: none; }
.identity-confirmation-action:hover { color: var(--color-on-accent); text-decoration: none; }
.identity-confirmation-note { margin: 18px 0 0; color: var(--color-text-subtle); font-size: 14px; }

.identity-recovery-page { margin-top: 8px; }
.identity-recovery-page .identity-card { margin-top: 0; }
.identity-recovery-intro { margin: 0 0 20px; color: var(--color-text); line-height: 1.6; }
.identity-recovery-back { margin: 16px 0 0; text-align: center; }
.identity-recovery-back a,
.identity-recovery-actions > a:not(.identity-recovery-action) { color: var(--color-blue); }
.identity-recovery-confirmation h2 { margin: 20px 0 10px; color: var(--color-text); font-size: 19px; line-height: 1.35; }
.identity-recovery-steps { margin: 0; padding-left: 24px; color: var(--color-text); line-height: 1.6; }
.identity-recovery-steps li + li { margin-top: 10px; }
.identity-recovery-note { margin: 18px 0 0; color: var(--color-text-subtle); font-size: 14px; line-height: 1.6; }
.identity-recovery-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; text-align: center; }
.identity-recovery-action { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.identity-recovery-action:hover { color: var(--color-on-accent); text-decoration: none; }

.identity-login-prompt {
    color: var(--color-text-subtle);
    font-size: 14px;
    text-align: center;
}

.row form .identity-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-left: 6px;
    padding: 5px 11px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-weight: 700;
    text-decoration: none;
}

.row form .identity-login-link:hover {
    border-color: var(--color-border-strong);
    background: var(--color-surface-subtle);
    color: var(--color-text);
    text-decoration: none;
}


/* =========================================================
   CREATE ACCOUNT BUTTON

   The built-in Identity UI already creates
   the Register link. We turn that existing
   link into a real secondary button.
========================================================= */

.row form a[href*="Register"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 5px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

    .row form a[href*="Register"]:hover {
        border-color: var(--color-border-strong);
        background: var(--color-surface-subtle);
        color: var(--color-text);
        text-decoration: none;
    }


/* =========================================================
   FORGOT / RESEND LINKS
========================================================= */

#forgot-password,
#resend-confirmation {
    display: inline-block;
    color: var(--color-text-subtle);
}


/* =========================================================
   VALIDATION
========================================================= */

.text-danger,
.field-validation-error {
    color: var(--color-danger);
    font-size: 13px;
}

.validation-summary-errors {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid var(--color-danger-border);
    border-radius: 9px;
    background: var(--color-surface);
}

    .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }


/* =========================================================
   SEPARATOR
========================================================= */

.row hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 20px 0;
}

/* Identity's account settings use the same .row markup as the old sign-in
   page. Keep its settings panel visible and give the menu and form room. */
body.identity-manage > main > h1 + div {
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
}

body.identity-manage > main > h1 + div > h2 {
    margin: 20px 0 12px;
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1.35;
}

body.identity-manage > main > h1 + div > hr {
    margin: 0 0 16px;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.identity-manage .row {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 24px;
    max-width: 1080px;
}

.identity-manage .row > div:first-child {
    width: 100%;
    max-width: none;
    padding: 24px;
}

.identity-manage .row > div:nth-child(2) {
    display: block !important;
    width: 100%;
    max-width: none;
    min-width: 0;
}

@media (max-width: 768px) {
    .identity-manage .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    main > h1 {
        margin-top: 32px;
        padding: 0 16px;
        font-size: 32px;
    }


    .row {
        margin: 15px auto 45px;
        padding: 0 16px;
    }


        .row > div:first-child {
            padding: 22px 20px;
        }


        .row h2 {
            font-size: 20px;
        }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    main > h1 {
        font-size: 29px;
    }


    .row > div:first-child {
        padding: 20px 16px;
        border-radius: 13px;
    }


    .form-floating .form-control {
        min-height: 54px;
    }
}

/* ACCOUNT & SECURITY */
.account-security-page {
    width: min(100% - 32px, 680px);
    margin: 32px auto 64px;
}

.report-page { max-width: 680px; }
.report-header { margin: 28px 0 24px; }
.report-header h1 { margin: 8px 0 12px; }
.report-header p { margin: 5px 0; color: var(--color-text-muted); }
.report-header .eyebrow { color: var(--color-text-subtle); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.report-context-card { display: grid; gap: 4px; margin-bottom: 28px; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.report-context-label, .report-context-related, .report-context-type, .report-context-related-label, .report-help { color: var(--color-text-subtle); font-size: 14px; }
.report-context-related { margin-top: 3px; }
.report-context-related-label { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.report-context-job { overflow-wrap: anywhere; line-height: 1.4; }
.report-form { display: grid; gap: 28px; }
.report-reasons { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.report-reasons legend, .report-details-field > label { margin-bottom: 2px; font-size: 18px; font-weight: 700; }
.report-help { margin: 0 0 4px; line-height: 1.45; }
.report-reason-option { display: flex; align-items: flex-start; gap: 12px; min-height: 58px; padding: 13px 14px; border: 1px solid var(--color-border); border-radius: 9px; cursor: pointer; }
.report-reason-option:hover { border-color: var(--color-border-strong); background: var(--color-surface); }
.report-reason-option:focus-within { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.report-reason-option input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.report-reason-option span { display: grid; gap: 3px; }
.report-reason-option small { color: var(--color-text-subtle); font-size: 14px; line-height: 1.35; }
.report-details-field { display: grid; gap: 8px; }
.report-details-field textarea { width: 100%; box-sizing: border-box; min-height: 150px; font-size: 16px; }
.report-validation { color: var(--color-danger); font-size: 14px; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.report-actions .primary-button, .report-actions .secondary-button { min-height: 44px; padding: 11px 18px; text-decoration: none; }
.report-actions .secondary-button { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); }

@media (max-width: 420px) {
    .report-page { width: min(100% - 24px, 680px); }
    .report-header { margin-top: 20px; }
    .report-actions { align-items: stretch; flex-direction: column; }
    .report-actions .primary-button, .report-actions .secondary-button { width: 100%; text-align: center; box-sizing: border-box; }
}

.account-security-page h1 {
    margin: 0 0 18px;
    color: var(--color-text);
    font-size: clamp(1.8rem, 4vw, 2.25rem);
    line-height: 1.15;
}

.account-card {
    margin: 14px 0;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
}

.account-card h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.account-value { margin: 0 0 8px; color: var(--color-text); font-weight: 600; }
.account-muted { color: var(--color-text-subtle); }
.account-state { margin: 0 0 14px; font-size: 14px; font-weight: 600; }
.is-confirmed { color: var(--color-green); }
.is-unconfirmed { color: var(--color-amber); }
.account-status { padding: 12px 14px; border-radius: 9px; background: var(--color-surface-subtle); color: var(--color-blue); }
.account-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 6px 8px 0 0; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); color: var(--color-text); text-decoration: none; cursor: pointer; }
.account-action:hover { background: var(--color-surface-subtle); }
.account-signout-form { margin: 0; }
.blocked-users-header { margin-bottom: 24px; }
.blocked-users-page { text-align: center; }
.blocked-users-page > .back-link { margin-inline: auto; }
.blocked-users-header h1 { margin-bottom: 8px; }
.blocked-users-list { display: grid; gap: 12px; }
.blocked-user-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.blocked-user-card > div { width: 100%; }
.blocked-user-card .account-muted { margin: 0; font-size: 14px; }
.blocked-user-card .account-action { min-width: 112px; margin: 0; }
.blocked-users-empty { border-style: dashed; }
.account-form { display: grid; gap: 8px; }
.account-form input:not([type="checkbox"]) { min-height: 44px; padding: 8px 10px; border: 1px solid var(--color-border); border-radius: 8px; }
.account-form button { width: fit-content; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 9px; background: var(--color-blue-solid); color: var(--color-on-accent); font-weight: 700; cursor: pointer; }
.account-form button:hover { background: var(--color-blue-solid); }
.account-security-page > p { color: var(--color-text-muted); line-height: 1.55; }
.account-security-page > .account-action { margin-top: 8px; }
.account-security-page .account-status { color: var(--color-blue); }
.account-security-page .account-card > p:last-of-type { margin-bottom: 0; }
.danger-zone { border-color: var(--color-danger-border); background: var(--color-surface); }
.danger-action { color: var(--color-danger); border-color: var(--color-danger-border); }
.account-form .danger-action { background: var(--color-danger-solid); color: var(--color-on-accent); }

.privacy-requests-page {
    width: min(100% - 32px, 860px);
}

.privacy-requests-page > p {
    margin: 0 0 14px;
}

.privacy-requests-page > h2 {
    margin: 26px 0 8px;
    font-size: 1.25rem;
}

.privacy-requests-page form {
    display: grid;
    gap: 9px;
}

.privacy-requests-page form label {
    margin-top: 4px;
    font-weight: 650;
}

.privacy-requests-page select,
.privacy-requests-page textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--color-text);
}

.privacy-requests-page textarea {
    min-height: 130px;
    resize: vertical;
}

.privacy-requests-page form button {
    width: fit-content;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid var(--ui-brand, var(--color-brand-border));
    border-radius: 10px;
    background: var(--ui-brand, var(--color-brand-solid));
    color: var(--color-on-accent);
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(var(--color-shadow-rgb), .14);
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.privacy-requests-page form button:hover:not(:disabled) {
    border-color: var(--ui-brand-deep, var(--color-brand-border));
    background: var(--ui-brand-deep, var(--color-brand-solid));
    box-shadow: 0 5px 12px rgba(var(--color-shadow-rgb), .2);
    transform: translateY(-1px);
}

.privacy-requests-page form button:active:not(:disabled) {
    transform: translateY(0) scale(.985);
}

.privacy-requests-page form button:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
}

/* Pages supplied by the Identity UI share the account stylesheet, while
   keeping their standalone headings and helper copy aligned with the forms. */
body.identity-two-factor > main > p {
    width: min(100% - 48px, 520px);
    margin: 12px auto;
    color: var(--color-text-muted);
    line-height: 1.5;
}

body.identity-two-factor > main > hr { display: none; }

body.identity-two-factor > main > p:last-of-type { margin-top: 18px; }
body.identity-two-factor > main > p a { color: var(--color-blue); }

body.identity-email-form > main > h2 {
    width: min(100% - 48px, 520px);
    margin: 0 auto 16px;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.35;
}

.authenticator-setup-card { display: grid; gap: 16px; }
.authenticator-setup-qr { display: flex; justify-content: center; }
.authenticator-setup-qr img { display: block; width: 260px; max-width: 100%; height: auto; border-radius: 8px; background: #fff; }
.authenticator-setup-manual { color: var(--color-text); line-height: 1.5; }
.authenticator-setup-manual summary { cursor: pointer; font-weight: 650; }
.authenticator-setup-manual > p { margin: 12px 0 0; }
.authenticator-setup-steps { display: grid; gap: 10px; margin: 0; padding-left: 22px; color: var(--color-text); line-height: 1.5; }
.authenticator-setup-key { margin: 0; padding: 14px; border: 1px solid var(--color-border); border-radius: 9px; background: var(--color-surface); overflow-wrap: anywhere; }
.authenticator-setup-key code { display: inline-block; margin: 4px 0 0; color: var(--color-text); font-size: 1rem; letter-spacing: .08em; }
.authenticator-setup-note { margin: 0; color: var(--color-text-subtle); line-height: 1.5; }
.authenticator-setup-form { display: grid; gap: 9px; }
.authenticator-setup-form label { font-weight: 650; }
.authenticator-setup-form .identity-submit { margin-top: 4px; }

/* Keep the scaffolded two-factor page inside the same card-based settings
   layout as Account & Security, while preserving the selected site theme. */
body.identity-two-factor-settings > main > h1 {
    width: min(100% - 48px, 1080px);
    max-width: none;
    margin: 32px auto 0;
    padding: 0;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
}

body.identity-two-factor-settings > main > h1 + div {
    width: min(100% - 48px, 1080px);
    margin: 0 auto 48px;
}

body.identity-two-factor-settings > main > h1 + div > h2 {
    margin: 20px 0 12px;
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.35;
}

body.identity-two-factor-settings > main > h1 + div > hr {
    margin: 0 0 16px;
    border: 0;
    border-top: 1px solid var(--color-border);
}

body.identity-two-factor-settings .row {
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 20px;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.identity-two-factor-settings .row > div:first-child {
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(var(--color-shadow-rgb), .045);
}

body.identity-two-factor-settings .row > div:first-child ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.identity-two-factor-settings .row > div:first-child li { margin: 0; }

body.identity-two-factor-settings .row > div:first-child a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: .9375rem;
    text-decoration: none;
}

body.identity-two-factor-settings .row > div:first-child a:hover {
    background: var(--color-surface-subtle);
    color: var(--color-text);
    text-decoration: none;
}

body.identity-two-factor-settings .row > div:first-child a.active,
body.identity-two-factor-settings .row > div:first-child a[aria-current="page"] {
    background: var(--color-brand-surface);
    color: var(--color-brand);
    font-weight: 700;
}

body.identity-two-factor-settings .row > div:nth-child(2) {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgba(var(--color-shadow-rgb), .045);
}

body.identity-two-factor-settings .row > div:nth-child(2) h3 {
    margin: 0 0 20px;
    color: var(--color-text);
    font-size: 1.25rem;
    line-height: 1.35;
}

body.identity-two-factor-settings .row > div:nth-child(2) h4 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.4;
}

body.identity-two-factor-settings .row > div:nth-child(2) p {
    color: var(--color-text-muted);
    line-height: 1.5;
}

body.identity-two-factor-settings .row > div:nth-child(2) a.btn,
body.identity-two-factor-settings .row > div:nth-child(2) button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 6px 8px 0 0;
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: .9375rem;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
}

body.identity-two-factor-settings .row > div:nth-child(2) a.btn:hover,
body.identity-two-factor-settings .row > div:nth-child(2) button.btn:hover {
    border-color: var(--color-border-strong);
    background: var(--color-surface-subtle);
    color: var(--color-text);
}

body.identity-two-factor-settings .row > div:nth-child(2) a.btn:focus-visible,
body.identity-two-factor-settings .row > div:nth-child(2) button.btn:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    body.identity-two-factor-settings > main > h1,
    body.identity-two-factor-settings > main > h1 + div { width: min(100% - 24px, 680px); }
    body.identity-two-factor-settings > main > h1 { margin-top: 24px; }
    body.identity-two-factor-settings .row { grid-template-columns: 1fr; gap: 14px; }
    body.identity-two-factor-settings .row > div:first-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.identity-two-factor-settings .row > div:nth-child(2) { padding: 18px; }
}

@media (max-width: 420px) {
    body.identity-two-factor-settings .row > div:first-child ul { grid-template-columns: 1fr; }
    body.identity-two-factor-settings .row > div:nth-child(2) a.btn,
    body.identity-two-factor-settings .row > div:nth-child(2) button.btn { width: 100%; margin-right: 0; }
}

@media (max-width: 420px) {
    .account-security-page { width: min(100% - 24px, 680px); margin-top: 24px; }
    .account-card { padding: 16px; }
    .account-action, .account-form button { width: 100%; text-align: center; }
    .blocked-user-card { align-items: center; gap: 12px; }
    .blocked-user-card .account-action { width: 100%; }
}
