﻿:root {
    --auth-primary: #5b4df5;
    --auth-primary-2: #6658f6;
    --auth-primary-soft: #f0efff;

    --auth-ink: #10182d;
    --auth-muted: #667085;

    --auth-border: #dde3ec;
    --auth-border-soft: #edf0f5;

    --auth-bg: #f6f8fc;

    --auth-success: #10b981;

    --auth-left:
        linear-gradient(
            145deg,
            #11182c 0%,
            #141b30 50%,
            #1e1a4d 100%
        );
}


* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    min-height: 100%;
}


body.jfx-auth-body {
    min-height: 100vh;

    overflow-x: hidden;

    background: var(--auth-bg);

    color: var(--auth-ink);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


.jfx-auth-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, .95fr)
        minmax(560px, 1.05fr);
}


/* ================================================================
   LEFT PANEL
================================================================ */

.jfx-auth-brand-panel {
    position: relative;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    padding:
        42px;

    background: var(--auth-left);

    color: #fff;
}


.jfx-auth-brand-panel::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    top: -160px;
    right: -150px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .08
        );

    border-radius: 50%;
}


.jfx-auth-brand-panel::after {
    content: "";

    position: absolute;

    width: 390px;
    height: 390px;

    left: -220px;
    bottom: -170px;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .07
        );

    border-radius: 50%;
}


.jfx-auth-brand-glow {
    position: absolute;

    pointer-events: none;

    border-radius: 50%;

    filter: blur(20px);
}


.jfx-auth-brand-glow-one {
    width: 420px;
    height: 420px;

    top: -120px;
    left: -170px;

    background:
        radial-gradient(
            circle,
            rgba(
                93,
                77,
                245,
                .30
            ),
            transparent 70%
        );
}


.jfx-auth-brand-glow-two {
    width: 450px;
    height: 450px;

    bottom: -220px;
    right: -190px;

    background:
        radial-gradient(
            circle,
            rgba(
                112,
                69,
                246,
                .26
            ),
            transparent 70%
        );
}


.jfx-auth-brand {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 11px;

    width: max-content;

    color: inherit;

    font-size: 16px;

    font-weight: 850;

    letter-spacing: -.025em;

    text-decoration: none;
}


.jfx-auth-logo {
    position: relative;

    width: 40px;
    height: 40px;

    overflow: hidden;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #6958fa,
            #895ff7
        );

    box-shadow:
        0 12px 30px
        rgba(
            95,
            77,
            245,
            .32
        );
}


.jfx-auth-logo-layer {
    position: absolute;

    width: 20px;
    height: 10px;

    left: 50%;

    border-radius: 2px;

    transform:
        translateX(-50%)
        rotate(30deg)
        skewX(-29deg);
}


.jfx-auth-logo-layer-one {
    top: 11px;

    background: #fff;
}


.jfx-auth-logo-layer-two {
    top: 18px;

    background:
        rgba(
            255,
            255,
            255,
            .60
        );
}


.jfx-auth-brand-content {
    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 530px;

    margin:
        auto 0;
}


.jfx-auth-eyebrow {
    color: #7163ff;

    font-size: 14px;

    font-weight: 850;

    letter-spacing: .11em;
}


.jfx-auth-brand-panel
.jfx-auth-eyebrow {
    color: #aaa4ff;
}


.jfx-auth-brand-content h1 {
    max-width: 500px;

    margin:
        22px 0 20px;

    color: #fff;

    font-size: 16px;

    line-height: .98;

    font-weight: 900;

    letter-spacing: -.055em;
}


.jfx-auth-brand-content h1 span {
    display: block;
}


.jfx-auth-brand-content p {
    max-width: 500px;

    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            .78
        );

    font-size: 16px;

    line-height: 1.8;
}


.jfx-auth-benefits {
    display: grid;

    gap: 16px;

    margin-top: 34px;
}


.jfx-auth-benefit {
    display: flex;

    align-items: center;

    gap: 13px;

    color:
        rgba(
            255,
            255,
            255,
            .92
        );

    font-size: 15px;
}


.jfx-auth-benefit-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .10
        );

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            .07
        );

    color: #aaa4ff;
}


.jfx-auth-brand-footer {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        rgba(
            255,
            255,
            255,
            .42
        );

    font-size: 14px;
}


/* ================================================================
   RIGHT PANEL
================================================================ */

.jfx-auth-form-panel {
    min-width: 0;

    display: flex;

    flex-direction: column;

    min-height: 100vh;

    background:
        linear-gradient(
            145deg,
            #f8faff,
            #f2f5fa
        );
}


.jfx-auth-mobile-header {
    display: none;
}


.jfx-auth-form-wrap {
    width: min(
        100% - 60px,
        440px
    );

    margin: auto;

    padding:
        50px 0;
}


.jfx-auth-register-wrap {
    padding:
        34px 0;
}


.jfx-auth-form-heading {
    margin-bottom: 27px;
}


.jfx-auth-form-heading h2 {
    margin:
        10px 0 7px;

    color: var(--auth-ink);

    font-size: 16px;

    line-height: 1.1;

    font-weight: 880;

    letter-spacing: -.045em;
}


.jfx-auth-form-heading p {
    margin: 0;

    color: var(--auth-muted);

    font-size: 15px;

    line-height: 1.55;
}


/* ================================================================
   CARD
================================================================ */

.jfx-auth-card {
    padding: 28px;

    border:
        1px solid
        var(--auth-border);

    border-radius: 19px;

    background:
        rgba(
            255,
            255,
            255,
            .96
        );

    box-shadow:
        0 16px 45px
        rgba(
            15,
            23,
            42,
            .055
        );
}


.jfx-auth-form {
    display: grid;

    gap: 18px;
}


/* ================================================================
   FORM
================================================================ */

.jfx-auth-field {
    min-width: 0;
}


.jfx-auth-field label {
    display: block;

    margin-bottom: 7px;

    color: #29334a;

    font-size: 14px;

    font-weight: 750;
}


.jfx-auth-label-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.jfx-auth-label-row label {
    margin-bottom: 7px;
}


.jfx-auth-small-link {
    margin-bottom: 7px;

    color: var(--auth-primary);

    font-size: 14px;

    font-weight: 750;

    text-decoration: none;
}


.jfx-auth-small-link:hover {
    text-decoration: underline;
}


.jfx-auth-input-wrap {
    position: relative;

    display: flex;

    align-items: stretch;

    min-height: 48px;

    overflow: hidden;

    border:
        1px solid
        #ccd4e1;

    border-radius: 9px;

    background: #fff;

    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}


.jfx-auth-input-wrap:focus-within {
    border-color: #7065ff;

    box-shadow:
        0 0 0 3px
        rgba(
            91,
            77,
            245,
            .11
        );
}


.jfx-auth-input-icon {
    width: 42px;

    flex:
        0 0
        42px;

    display: grid;

    place-items: center;

    border-right:
        1px solid
        #e3e7ee;

    color: #718096;

    font-size: 16px;
}


.jfx-auth-input-wrap input {
    width: 100%;
    min-width: 0;

    border: 0;

    outline: none;

    padding:
        11px 13px;

    background: transparent;

    color: #101828;

    font: inherit;

    font-size: 15px;
}


.jfx-auth-input-wrap input::placeholder {
    color: #a5adba;
}


.jfx-auth-password-toggle {
    width: 42px;

    flex:
        0 0
        42px;

    display: grid;

    place-items: center;

    border: 0;

    border-left:
        1px solid
        #e3e7ee;

    background: transparent;

    color: #718096;

    cursor: pointer;
}


.jfx-auth-password-toggle:hover {
    color: var(--auth-primary);
}


/* ================================================================
   PASSWORD RULES
================================================================ */

.jfx-password-help {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        6px 10px;

    margin-top: 9px;
}


.jfx-password-help > div {
    display: flex;

    align-items: center;

    gap: 5px;

    color: #98a2b3;

    font-size: 14px;

    line-height: 1.4;

    transition:
        color 150ms ease;
}


.jfx-password-help > div i {
    font-size: 14px;
}


.jfx-password-help > div.is-valid {
    color: var(--auth-success);
}


/* ================================================================
   SUBMIT
================================================================ */

.jfx-auth-submit {
    width: 100%;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-top: 2px;

    border: 0;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #5546ef,
            #665cf4
        );

    color: #fff;

    font-size: 15px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 24px
        rgba(
            91,
            77,
            245,
            .22
        );

    transition:
        transform 150ms ease,
        box-shadow 150ms ease;
}


.jfx-auth-submit:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 14px 30px
        rgba(
            91,
            77,
            245,
            .28
        );
}


.jfx-auth-submit:active {
    transform:
        translateY(0);
}


/* ================================================================
   SECURITY NOTE
================================================================ */

.jfx-auth-security-note {
    display: grid;

    grid-template-columns:
        24px 1fr;

    gap: 9px;

    align-items: flex-start;

    padding:
        12px;

    border:
        1px solid
        #e6eaf0;

    border-radius: 10px;

    background: #f8fafc;
}


.jfx-auth-security-note > span {
    width: 22px;
    height: 22px;

    display: grid;

    place-items: center;

    color: var(--auth-primary);

    font-size: 14px;
}


.jfx-auth-security-note p {
    margin: 0;

    color: #667085;

    font-size: 14px;

    line-height: 1.55;
}


/* ================================================================
   FOOTER LINKS
================================================================ */

.jfx-auth-switch {
    margin-top: 22px;

    text-align: center;

    color: #667085;

    font-size: 14px;
}


.jfx-auth-switch a {
    color: var(--auth-primary);

    font-weight: 750;

    text-decoration: none;
}


.jfx-auth-switch a:hover {
    text-decoration: underline;
}


.jfx-auth-back {
    margin-top: 17px;

    text-align: center;
}


.jfx-auth-back a {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #98a2b3;

    font-size: 14px;

    text-decoration: none;
}


.jfx-auth-back a:hover {
    color: #667085;
}


/* ================================================================
   EXISTING ALERT COMPATIBILITY
================================================================ */

.jfx-auth-form-wrap
.alert,
.jfx-auth-form-wrap
.alert-success,
.jfx-auth-form-wrap
.alert-danger,
.jfx-auth-form-wrap
.alert-error,
.jfx-auth-form-wrap
.alert-warning {
    margin-bottom: 16px;
}


/* ================================================================
   RESPONSIVE
================================================================ */

@media (max-width: 940px) {

    .jfx-auth-shell {
        grid-template-columns:
            minmax(340px, .85fr)
            minmax(480px, 1.15fr);
    }


    .jfx-auth-brand-panel {
        padding:
            34px;
    }


    .jfx-auth-brand-content h1 {
        font-size: 16px;
    }

}


@media (max-width: 780px) {

    .jfx-auth-shell {
        display: block;
    }


    .jfx-auth-brand-panel {
        display: none;
    }


    .jfx-auth-form-panel {
        min-height: 100vh;
    }


    .jfx-auth-mobile-header {
        display: flex;

        align-items: center;

        height: 72px;

        padding:
            0 22px;

        border-bottom:
            1px solid
            var(--auth-border-soft);

        background:
            rgba(
                255,
                255,
                255,
                .86
            );

        color: var(--auth-ink);
    }


    .jfx-auth-form-wrap {
        width:
            min(
                100% - 32px,
                460px
            );

        padding:
            42px 0;
    }

}


@media (max-width: 480px) {

    .jfx-auth-form-wrap {
        width:
            calc(
                100% - 24px
            );

        padding:
            30px 0;
    }


    .jfx-auth-form-heading h2 {
        font-size: 16px;
    }


    .jfx-auth-card {
        padding:
            20px 16px;

        border-radius: 15px;
    }


    .jfx-password-help {
        grid-template-columns:
            1fr;
    }


    .jfx-auth-mobile-header {
        height: 64px;

        padding:
            0 14px;
    }

}
/* ================================================================
   EXTENDED AUTH FLOWS
================================================================ */

.jfx-development-box {
    margin-top: 18px;
    padding: 15px;
    border: 1px solid #fde68a;
    border-radius: 11px;
    background: #fffbeb;
    color: #854d0e;
}

.jfx-development-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .07em;
}

.jfx-development-box p {
    margin: 7px 0 10px;
    font-size: 14px;
    line-height: 1.55;
}

.jfx-development-link {
    display: inline-flex;
    align-items: center;
    color: #6d28d9;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.jfx-development-link:hover {
    text-decoration: underline;
}


.jfx-auth-state {
    text-align: center;
}

.jfx-auth-state-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 18px;
    font-size: 16px;
}

.jfx-auth-state-success {
    background: #ecfdf3;
    color: #059669;
}

.jfx-auth-state-error {
    background: #fff1f2;
    color: #e11d48;
}

.jfx-auth-state-warning {
    background: #fff7ed;
    color: #ea580c;
}

.jfx-auth-state h2,
.jfx-auth-state h3 {
    margin: 8px 0 8px;
    color: var(--auth-ink);
    font-size: 16px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.jfx-auth-state p {
    max-width: 350px;
    margin: 0 auto 22px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.jfx-auth-submit-link {
    text-decoration: none;
}

.jfx-password-match {
    min-height: 16px;
    margin-top: 7px;
    font-size: 14px;
}

.jfx-password-match.is-valid {
    color: #059669;
}

.jfx-password-match.is-invalid {
    color: #e11d48;
}

/* ================================================================
   JFX TWO-FACTOR AUTHENTICATION
================================================================ */

.jfx-auth-2fa-wide {
    max-width: 520px;
}

.jfx-2fa-icon-block {
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.jfx-2fa-main-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #eeedff;
    color: var(--auth-primary);
    font-size: 16px;
}

.jfx-otp-input {
    width: 100%;
    min-height: 56px;
    border: 1px solid #ccd4e1;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    padding: 10px 16px;
    color: #111827;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: .36em;
    text-align: center;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.jfx-otp-input:focus {
    border-color: #7065ff;
    box-shadow:
        0 0 0 3px
        rgba(91, 77, 245, .11);
}

.jfx-2fa-field-note {
    margin-top: 7px;
    color: #98a2b3;
    font-size: 14px;
    line-height: 1.5;
}

.jfx-auth-divider {
    position: relative;
    margin: 5px 0;
    text-align: center;
}

.jfx-auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #edf0f4;
}

.jfx-auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    background: #fff;
    color: #98a2b3;
    font-size: 14px;
    text-transform: uppercase;
}

.jfx-auth-secondary-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #dce2ea;
    border-radius: 9px;
    padding: 9px 13px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    text-decoration: none;
}

.jfx-auth-secondary-action:hover {
    background: #f8fafc;
}

.jfx-2fa-recovery-panel {
    padding-top: 5px;
}

.jfx-2fa-start-panel {
    text-align: center;
}

.jfx-2fa-start-panel .jfx-2fa-main-icon {
    margin: 0 auto 18px;
}

.jfx-2fa-start-panel h3 {
    margin: 0 0 8px;
    color: var(--auth-ink);
    font-size: 16px;
    letter-spacing: -.03em;
}

.jfx-2fa-start-panel > p {
    margin: 0 auto;
    max-width: 390px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.jfx-2fa-check-list {
    display: grid;
    gap: 9px;
    margin: 22px 0;
    padding: 15px;
    border: 1px solid #e8ebf2;
    border-radius: 11px;
    background: #fafbfc;
    text-align: left;
}

.jfx-2fa-check-list div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475467;
    font-size: 14px;
    line-height: 1.5;
}

.jfx-2fa-check-list i {
    margin-top: 1px;
    color: #10b981;
}

.jfx-2fa-step-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.jfx-2fa-step-number {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #eeedff;
    color: var(--auth-primary);
    font-size: 14px;
    font-weight: 850;
}

.jfx-2fa-step-header strong {
    display: block;
    color: #101828;
    font-size: 15px;
}

.jfx-2fa-step-header p {
    margin: 3px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.jfx-2fa-qr-shell {
    display: flex;
    justify-content: center;
    margin: 16px 0 18px;
}

.jfx-2fa-qr {
    width: 250px;
    min-height: 250px;
    display: grid;
    place-items: center;
    padding: 14px;
    border: 1px solid #e2e7ee;
    border-radius: 15px;
    background: #fff;
}

.jfx-2fa-qr img {
    max-width: 100%;
    height: auto;
}

.jfx-2fa-qr-loading {
    color: #98a2b3;
    font-size: 14px;
}

.jfx-2fa-secret-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background: #f8fafc;
}

.jfx-2fa-secret-label {
    display: block;
    margin-bottom: 4px;
    color: #98a2b3;
    font-size: 14px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.jfx-2fa-secret-block strong {
    display: block;
    max-width: 330px;
    color: #344054;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 14px;
    word-break: break-all;
}

.jfx-2fa-copy-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
    color: #475467;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
}

.jfx-2fa-separator {
    height: 1px;
    margin: 24px 0;
    background: #eef1f5;
}


/* ================================================================
   RECOVERY CODES
================================================================ */

.jfx-2fa-success-banner,
.jfx-2fa-warning {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 11px;
    align-items: flex-start;
    padding: 13px;
    border-radius: 11px;
}

.jfx-2fa-success-banner {
    border: 1px solid #d1fae5;
    background: #ecfdf5;
}

.jfx-2fa-success-banner > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #d1fae5;
    color: #059669;
}

.jfx-2fa-success-banner strong,
.jfx-2fa-warning strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.jfx-2fa-success-banner strong {
    color: #065f46;
}

.jfx-2fa-success-banner p,
.jfx-2fa-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.jfx-2fa-success-banner p {
    color: #047857;
}

.jfx-2fa-warning {
    margin-top: 14px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.jfx-2fa-warning > i {
    margin-top: 2px;
    text-align: center;
    font-size: 16px;
}

.jfx-recovery-code-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.jfx-recovery-code-grid code {
    display: block;
    padding: 11px 8px;
    border: 1px solid #e4e8ef;
    border-radius: 9px;
    background: #fafbfc;
    color: #344054;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.jfx-recovery-actions {
    display: flex;
    gap: 8px;
    margin: 15px 0 20px;
}


/* ================================================================
   2FA MANAGEMENT
================================================================ */

.jfx-2fa-status-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 13px;
}

.jfx-2fa-status-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eeedff;
    color: var(--auth-primary);
    font-size: 16px;
}

.jfx-2fa-status-content > span {
    display: block;
    color: #98a2b3;
    font-size: 14px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.jfx-2fa-status-content strong {
    display: block;
    margin-top: 3px;
    color: #101828;
    font-size: 16px;
}

.jfx-2fa-status-content p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.jfx-2fa-toggle {
    position: relative;
    width: 52px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #d0d5dd;
    cursor: pointer;
    transition:
        background .18s ease,
        opacity .18s ease;
}

.jfx-2fa-toggle span {
    position: absolute;
    width: 22px;
    height: 22px;
    left: 4px;
    top: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow:
        0 2px 5px
        rgba(16, 24, 40, .18);
    transition:
        transform .18s ease;
}

.jfx-2fa-toggle.is-enabled {
    background: #12b76a;
}

.jfx-2fa-toggle.is-enabled span {
    transform: translateX(22px);
}

.jfx-2fa-toggle:disabled {
    opacity: .55;
    cursor: wait;
}

.jfx-2fa-enabled-tools {
    margin-top: 20px;
    padding-top: 6px;
    border-top: 1px solid #eef1f5;
}

.jfx-2fa-tool-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
}

.jfx-2fa-tool-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.jfx-2fa-tool-row > div {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.jfx-2fa-tool-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #f2f1ff;
    color: var(--auth-primary);
}

.jfx-2fa-tool-icon.is-danger {
    background: #fff1f2;
    color: #e11d48;
}

.jfx-2fa-tool-row strong {
    display: block;
    color: #344054;
    font-size: 14px;
}

.jfx-2fa-tool-row p {
    max-width: 310px;
    margin: 3px 0 0;
    color: #98a2b3;
    font-size: 14px;
    line-height: 1.45;
}

.jfx-2fa-inline-button {
    flex: 0 0 auto;
}

.jfx-2fa-danger-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    padding: 8px 12px;
    background: #fff1f2;
    color: #be123c;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}


/* ================================================================
   2FA MODALS
================================================================ */

body.jfx-modal-open {
    overflow: hidden;
}

.jfx-2fa-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background:
        rgba(15, 23, 42, .58);
    backdrop-filter:
        blur(5px);
}

.jfx-2fa-modal-backdrop[hidden] {
    display: none;
}

.jfx-2fa-modal {
    width: min(100%, 510px);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    border: 1px solid #e4e8ef;
    border-radius: 18px;
    background: #fff;
    box-shadow:
        0 30px 90px
        rgba(15, 23, 42, .28);
}

.jfx-2fa-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
    border-bottom: 1px solid #eef1f5;
}

.jfx-2fa-modal-header h2 {
    margin: 6px 0 0;
    color: #101828;
    font-size: 16px;
    letter-spacing: -.035em;
}

.jfx-2fa-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: #f8fafc;
    color: #667085;
    cursor: pointer;
}

.jfx-2fa-modal-body {
    padding: 20px;
}

.jfx-2fa-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #eef1f5;
}

.jfx-2fa-modal-intro {
    text-align: center;
}

.jfx-2fa-modal-intro .jfx-2fa-main-icon {
    margin: 0 auto 14px;
}

.jfx-2fa-modal-intro p {
    margin: 0 0 18px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.jfx-2fa-modal-submit {
    width: auto;
    min-width: 160px;
}


/* ================================================================
   RESPONSIVE 2FA
================================================================ */

@media (max-width: 520px) {

    .jfx-recovery-code-grid {
        grid-template-columns: 1fr;
    }

    .jfx-recovery-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .jfx-2fa-status-row {
        grid-template-columns:
            42px 1fr auto;
    }

    .jfx-2fa-tool-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .jfx-2fa-tool-row > div {
        width: 100%;
    }

    .jfx-2fa-inline-button,
    .jfx-2fa-danger-button {
        width: 100%;
    }

    .jfx-2fa-modal-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .jfx-2fa-modal-footer > * {
        width: 100%;
    }

    .jfx-2fa-secret-block {
        align-items: flex-start;
        flex-direction: column;
    }

    .jfx-otp-input {
        font-size: 16px;
        letter-spacing: .28em;
    }

}
/* MonXri email verification UX */
.jfx-auth-resend{margin-top:18px;color:var(--jfx-auth-muted,#7b8493);font-size:13px}.jfx-auth-resend summary{cursor:pointer;font-weight:700;color:inherit}.jfx-auth-resend-form{display:grid;gap:10px;margin-top:12px}.jfx-auth-resend-form label{font-weight:700}.jfx-auth-secondary-button{min-height:44px;border:1px solid rgba(109,93,252,.28);border-radius:12px;background:rgba(109,93,252,.08);color:#6557e8;font:inherit;font-weight:800;cursor:pointer}.monxri-modal-backdrop{position:fixed;inset:0;z-index:9999;display:none;place-items:center;padding:20px;background:rgba(11,16,32,.58);backdrop-filter:blur(6px)}.monxri-modal-backdrop.is-open{display:grid}.monxri-modal{width:min(440px,100%);padding:30px;border:1px solid rgba(148,163,184,.22);border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(15,23,42,.25);text-align:center;color:#3f4754}.monxri-modal-icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 16px;border-radius:18px;background:rgba(109,93,252,.12);color:#6557e8;font-size:27px}.monxri-modal h3{margin:0 0 9px;font-size:22px}.monxri-modal p{margin:0 0 22px;color:#7b8493;line-height:1.65}@media(prefers-color-scheme:dark){.monxri-modal{background:#151c29;color:#c9d0db}.monxri-modal p{color:#8491a4}}
