:root {
    --jf-navy: #031b3c;
    --jf-navy-deep: #06162f;
    --jf-gold: #d5a33a;
    --jf-text: #091832;
    --jf-muted: #65718a;
    --jf-border: #d9e1ec;
    --jf-surface: #ffffff;
}

body.kfms-auth-body {
    background: #f4f6f9;
    color: var(--jf-text);
    font-family: "Segoe UI", "Inter", Arial, sans-serif;
    margin: 0;
}

.jf-auth-stage {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 18px;
}

.jf-login-stage {
    background:
        radial-gradient(1100px 520px at 50% -8%, rgba(213, 163, 58, 0.12), transparent 60%),
        radial-gradient(900px 520px at 50% 118%, rgba(3, 27, 60, 0.10), transparent 58%),
        #eef1f6;
    overflow: hidden;
    position: relative;
}

.jf-login-stage::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(3, 27, 60, 0.05), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(213, 163, 58, 0.07), transparent 45%);
    content: "";
    display: block;
    inset: 0;
    position: absolute;
    z-index: 0;
}

.jf-login-shell {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    width: min(100%, 468px);
    z-index: 1;
}

.jf-login-brandmark {
    display: flex;
    justify-content: center;
    margin: 2px 0 14px;
    width: 100%;
}

.jf-login-logo-image {
    display: block;
    filter: drop-shadow(0 14px 26px rgba(3, 27, 60, 0.16));
    height: auto;
    max-width: 300px;
    object-fit: contain;
    width: 82%;
}

.jf-login-logo-mark {
    align-items: center;
    background: var(--jf-navy);
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(3, 27, 60, 0.26);
    color: #ffffff;
    display: inline-flex;
    font-size: 48px;
    font-weight: 900;
    height: 128px;
    justify-content: center;
    min-width: 128px;
}

.jf-auth-card {
    background: var(--jf-surface);
    border: 1px solid #e6ebf2;
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(9, 24, 50, 0.16);
    display: grid;
    overflow: hidden;
    width: min(100%, 1060px);
}

.jf-login-card {
    grid-template-columns: minmax(390px, 1fr) minmax(420px, 0.98fr);
    min-height: 680px;
}

.jf-login-card-centered {
    grid-template-columns: minmax(0, 430px);
    min-height: auto;
    width: min(100%, 470px);
}

.jf-login-refined {
    border-color: rgba(213, 163, 58, 0.38);
    box-shadow: 0 24px 62px rgba(9, 24, 50, 0.14);
    position: relative;
}

.jf-login-card-accent {
    display: none;
}

.jf-login-card-centered .jf-form-panel {
    padding: 26px 38px 22px;
}

.jf-login-card-centered .jf-form-wrap {
    margin: 0;
}

.jf-login-refined .jf-form-panel {
    background:
        linear-gradient(180deg, rgba(213, 163, 58, 0.08), rgba(255, 255, 255, 0) 90px),
        #ffffff;
}

.jf-register-card {
    grid-template-columns: 360px minmax(0, 1fr);
    max-width: 1120px;
    min-height: 690px;
}

.jf-register-refined {
    border-color: rgba(213, 163, 58, 0.38);
    box-shadow: 0 24px 62px rgba(9, 24, 50, 0.14);
    position: relative;
}

.jf-register-refined .jf-register-panel {
    background:
        linear-gradient(180deg, rgba(213, 163, 58, 0.08), rgba(255, 255, 255, 0) 110px),
        #ffffff;
}

.jf-brand-panel {
    background: #ffffff;
    border-right: 1px solid #e7edf4;
    color: var(--jf-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 58px 64px;
    position: relative;
}

.jf-brand-panel::before {
    display: none;
}

.jf-brand-panel::after {
    display: none;
}

.jf-product-lockup,
.jf-brand-copy,
.jf-feature-row,
.jf-feature-list,
.jf-help-box {
    position: relative;
    z-index: 1;
}

.jf-product-lockup img,
.jf-product-logo {
    display: block;
    height: 112px;
    object-fit: contain;
    object-position: left center;
    width: 290px;
}

.jf-product-mark {
    align-items: center;
    background: var(--kfms-secondary, #ffffff);
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    color: var(--kfms-primary, #031b3c);
    display: inline-flex;
    font-size: 34px;
    font-weight: 900;
    height: 86px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 112px;
    padding: 0 22px;
}

.jf-brand-copy {
    margin-top: 42px;
}

.jf-brand-copy h1,
.jf-brand-copy h2 {
    color: var(--jf-navy);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0;
}

.jf-brand-copy h2 {
    color: var(--jf-gold);
    margin-top: 8px;
}

.jf-brand-copy p {
    color: #4d5d76;
    font-size: 15px;
    line-height: 1.55;
    margin: 28px 0 0;
    max-width: 360px;
}

.jf-feature-row {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: auto;
    padding-top: 60px;
}

.jf-feature-row div,
.jf-feature-list div,
.jf-help-box {
    display: grid;
    gap: 8px;
}

.jf-feature-row i,
.jf-feature-list i,
.jf-help-box i {
    align-items: center;
    border: 2px solid var(--jf-gold);
    border-radius: 999px;
    color: var(--jf-gold);
    display: inline-flex;
    font-size: 24px;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.jf-feature-row strong,
.jf-feature-list strong,
.jf-help-box strong {
    color: var(--jf-navy);
    font-size: 13px;
    font-weight: 800;
}

.jf-feature-row span,
.jf-feature-list small,
.jf-help-box small {
    color: #607086;
    font-size: 13px;
    line-height: 1.45;
}

.jf-form-panel {
    display: flex;
    flex-direction: column;
    padding: 36px 68px 26px;
    position: relative;
}

.jf-language {
    align-items: center;
    color: var(--jf-text);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
}

.jf-form-wrap {
    margin: auto 0;
}

.jf-form-title {
    margin-bottom: 22px;
    text-align: center;
}

.jf-form-logo {
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.jf-form-logo-image {
    background: #fff;
    border: 1px solid #d9e1ec;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(9, 24, 50, 0.08);
    height: 50px;
    max-width: 210px;
    object-fit: contain;
    padding: 8px 12px;
}

.jf-form-logo-mark {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e1ec;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(9, 24, 50, 0.08);
    color: var(--kfms-primary, #031b3c);
    display: inline-flex;
    font-size: 21px;
    font-weight: 900;
    height: 50px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 76px;
    padding: 0 16px;
}

.jf-form-title h2,
.jf-register-heading h2 {
    color: var(--jf-text);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
}

.jf-form-title p,
.jf-register-heading p {
    color: var(--jf-muted);
    font-size: 15px;
    margin: 0;
}

.jf-form-title .jf-company-message {
    color: var(--jf-navy);
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.jf-login-kicker {
    align-items: center;
    color: var(--jf-navy);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    margin-bottom: 8px;
}

.jf-login-kicker i {
    color: var(--jf-gold);
    font-size: 18px;
}

.jf-login-refined .jf-form-title {
    margin-bottom: 14px;
}

.jf-login-refined .jf-form-title h2 {
    color: var(--jf-navy);
    font-size: 25px;
    margin-bottom: 6px;
}

.jf-login-refined .jf-form-title p {
    color: #5d6b80;
    font-size: 13px;
    line-height: 1.45;
}

.jf-login-refined .jf-form-logo {
    margin-bottom: 10px;
}

.jf-login-refined .jf-form-logo-image,
.jf-login-refined .jf-form-logo-mark {
    border-color: rgba(213, 163, 58, 0.34);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(3, 27, 60, 0.09);
}

.jf-login-refined .jf-form-logo-image {
    height: 48px;
}

.jf-login-refined .jf-form-logo-mark {
    height: 48px;
}

.jf-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.jf-field > span {
    color: var(--jf-text);
    font-size: 13px;
    font-weight: 800;
}

.jf-field b {
    color: #dc2626;
}

.jf-field > div {
    align-items: center;
    background: #fff;
    border: 1px solid var(--jf-border);
    border-radius: 7px;
    display: grid;
    gap: 10px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    min-height: 42px;
    padding: 0 13px;
}

.jf-field > div:focus-within {
    border-color: #6e8bb5;
    box-shadow: 0 0 0 3px rgba(3, 27, 60, 0.08);
}

.jf-login-refined .jf-field {
    margin-bottom: 10px;
}

.jf-login-refined .jf-field > span {
    color: #17233a;
}

.jf-login-refined .jf-field > div {
    background: #fbfcfe;
    border-color: #cfd8e5;
    min-height: 42px;
}

.jf-login-refined .jf-field > div:focus-within {
    background: #fff;
    border-color: var(--jf-gold);
    box-shadow: 0 0 0 3px rgba(213, 163, 58, 0.16);
}

.jf-login-refined .jf-field i {
    color: var(--jf-navy);
}

.jf-field i {
    color: #64748b;
    font-size: 19px;
}

.jf-field input,
.jf-field select {
    background: transparent;
    border: 0;
    color: var(--jf-text);
    font-size: 14px;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.jf-field select {
    cursor: pointer;
}

.jf-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    display: inline-flex;
    justify-content: center;
    padding: 0;
}

.jf-password-toggle i {
    color: #64748b;
    font-size: 20px;
}

.jf-auth-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: -2px 0 20px;
}

.jf-auth-row label,
.jf-terms {
    align-items: center;
    color: var(--jf-text);
    display: inline-flex;
    font-size: 13px;
    gap: 8px;
}

.jf-auth-row input,
.jf-terms input {
    height: 16px;
    width: 16px;
}

.jf-auth-row a,
.jf-register-top-link a,
.jf-auth-footer a,
.jf-terms a {
    color: #0759b8;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.jf-primary-button,
.jf-outline-button {
    align-items: center;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    min-height: 48px;
    text-decoration: none;
    width: 100%;
}

.jf-primary-button {
    background: linear-gradient(135deg, #061a38, #052a5f);
    border: 1px solid #061a38;
    box-shadow: 0 10px 18px rgba(3, 27, 60, 0.2);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    gap: 10px;
}

.jf-primary-button:hover,
.jf-primary-button:focus {
    color: #fff;
    filter: brightness(1.08);
}

.jf-login-refined .jf-primary-button {
    background: var(--jf-navy);
    border: 1px solid #06162f;
    border-bottom: 3px solid var(--jf-gold);
    box-shadow: 0 12px 22px rgba(3, 27, 60, 0.24);
    min-height: 44px;
}

.jf-login-refined .jf-primary-button i {
    color: var(--jf-gold);
    font-size: 19px;
}

.jf-divider {
    align-items: center;
    color: #516079;
    display: flex;
    font-size: 13px;
    gap: 18px;
    margin: 18px 0;
}

.jf-divider::before,
.jf-divider::after {
    background: #d8e0eb;
    content: "";
    flex: 1;
    height: 1px;
}

.jf-outline-button {
    background: #fff;
    border: 1px solid #77869d;
    color: var(--jf-text);
    gap: 12px;
}

.jf-outline-button:hover {
    background: #f8fbff;
    color: var(--jf-text);
}

.jf-login-refined .jf-divider {
    margin: 12px 0;
}

.jf-login-refined .jf-divider span {
    color: #68768d;
    font-size: 12px;
    font-weight: 700;
}

.jf-login-refined .jf-outline-button {
    border-color: #c8d2df;
    color: var(--jf-navy);
    min-height: 42px;
}

.jf-login-refined .jf-outline-button:hover {
    border-color: var(--jf-gold);
}

.jf-login-refined .jf-outline-button i {
    color: var(--jf-gold);
}

.jf-outline-button i {
    color: #0759b8;
    font-size: 22px;
}

.jf-outline-button span {
    display: grid;
    gap: 4px;
}

.jf-outline-button strong {
    font-size: 16px;
    font-weight: 800;
}

.jf-outline-button small {
    color: var(--jf-muted);
    font-size: 13px;
}

.jf-auth-footer {
    align-items: center;
    border-top: 1px solid #e7edf4;
    color: var(--jf-muted);
    display: flex;
    font-size: 12px;
    gap: 24px;
    justify-content: center;
    padding-top: 20px;
}

.jf-auth-footer span {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.jf-auth-footer i {
    color: #52729b;
    font-size: 20px;
}

.jf-alert {
    background: #fff7e6;
    border: 1px solid #f2d49a;
    border-radius: 7px;
    color: #7a4b00;
    font-size: 13px;
    margin-bottom: 18px;
    padding: 11px 13px;
}

.jf-login-support {
    align-items: center;
    border-top: 1px solid #e8edf4;
    color: #627087;
    display: flex;
    font-size: 12px;
    gap: 8px;
    justify-content: center;
    line-height: 1.4;
    margin-top: 12px;
    padding-top: 12px;
    text-align: center;
}

.jf-login-support i {
    color: var(--jf-gold);
    font-size: 17px;
}

.jf-register-brand {
    justify-content: flex-start;
    padding: 40px 44px;
}

.jf-register-brand .jf-product-lockup img,
.jf-register-brand .jf-product-logo {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(213, 163, 58, 0.45);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(9, 24, 50, 0.12);
    height: 104px;
    object-fit: contain;
    object-position: center;
    padding: 12px 16px;
    width: 250px;
}

.jf-register-brand .jf-product-mark {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(213, 163, 58, 0.72);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(9, 24, 50, 0.12);
    font-size: 24px;
    height: 82px;
    min-width: 110px;
}

.jf-register-brand .jf-brand-copy {
    margin-top: 24px;
}

.jf-register-brand .jf-brand-copy h1,
.jf-register-brand .jf-brand-copy h2 {
    font-size: 16px;
}

.jf-register-brand .jf-brand-copy p {
    font-size: 13px;
    margin-top: 22px;
}

.jf-feature-list {
    display: grid;
    gap: 22px;
    margin-top: 34px;
}

.jf-feature-list div,
.jf-help-box {
    align-items: center;
    grid-template-columns: 44px minmax(0, 1fr);
}

.jf-feature-list span,
.jf-help-box span {
    display: grid;
    gap: 4px;
}

.jf-help-box {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #e4ebf4;
    border-radius: 8px;
    margin-top: auto;
    padding: 14px;
}

.jf-register-panel {
    padding: 34px 52px 30px;
    position: relative;
}

.jf-register-top-link {
    color: var(--jf-muted);
    font-size: 12px;
    margin-bottom: 18px;
    text-align: right;
}

.jf-register-heading {
    align-items: center;
    border-bottom: 1px solid #e7edf4;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 22px;
}

.jf-register-heading > span {
    align-items: center;
    background: #eef6ff;
    border-radius: 8px;
    color: var(--jf-navy);
    display: inline-flex;
    font-size: 34px;
    height: 64px;
    justify-content: center;
    width: 64px;
}

.jf-register-heading > .jf-register-heading-logo {
    background: #fff;
    border: 1px solid rgba(213, 163, 58, 0.34);
    box-shadow: 0 10px 24px rgba(3, 27, 60, 0.09);
    overflow: hidden;
}

.jf-register-logo-image {
    display: block;
    height: 46px;
    max-width: 108px;
    object-fit: contain;
    padding: 6px;
    width: 100%;
}

.jf-register-logo-mark {
    align-items: center;
    color: var(--kfms-primary, var(--jf-navy));
    display: inline-flex;
    font-size: 23px;
    font-weight: 900;
    height: 100%;
    justify-content: center;
    letter-spacing: 0;
    width: 100%;
}

.jf-register-heading h2 {
    font-size: 22px;
}

.jf-register-heading p {
    font-size: 13px;
}

.jf-register-section {
    border-left: 3px solid var(--jf-gold);
    color: var(--jf-text);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
    padding-left: 9px;
}

.jf-register-grid {
    display: grid;
    gap: 16px 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jf-register-grid .jf-field {
    margin: 0;
}

.jf-register-panel .jf-field {
    gap: 9px;
}

.jf-register-panel .jf-field > div {
    min-height: 52px;
    padding: 0 16px;
}

.jf-register-panel .jf-field input,
.jf-register-panel .jf-field select {
    font-size: 15px;
}

.jf-register-panel .jf-password-toggle {
    height: 38px;
    width: 38px;
}

.jf-terms {
    margin: 18px 0 0;
}

.jf-register-note {
    align-items: flex-start;
    background: #fff8e8;
    border: 1px solid #f2d49a;
    border-radius: 7px;
    color: #6e4b10;
    display: flex;
    font-size: 12px;
    gap: 9px;
    line-height: 1.45;
    margin: 18px 0;
    padding: 12px;
}

.jf-register-note i {
    color: #b57912;
    font-size: 18px;
}

@media (max-width: 980px) {
    .jf-login-card,
    .jf-register-card {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .jf-brand-panel {
        min-height: auto;
        padding: 34px;
    }

    .jf-feature-row {
        padding-top: 34px;
    }

    .jf-form-panel,
    .jf-register-panel {
        padding: 30px;
    }
}

@media (max-width: 620px) {
    .jf-auth-stage {
        align-items: flex-start;
        min-height: 100dvh;
        padding: 12px;
    }

    .jf-auth-card {
        border-radius: 8px;
    }

    .jf-login-refined {
        border-radius: 8px;
    }

    .jf-login-card-centered .jf-form-panel {
        padding: 22px 20px 20px;
    }

    .jf-login-refined .jf-form-title h2 {
        font-size: 23px;
    }

    .jf-login-support {
        align-items: flex-start;
        text-align: left;
    }

    .jf-product-lockup img {
        height: 86px;
        width: 230px;
    }

    .jf-brand-copy h1,
    .jf-brand-copy h2 {
        font-size: 23px;
    }

    .jf-feature-row,
    .jf-register-grid {
        grid-template-columns: 1fr;
    }

    .jf-auth-row,
    .jf-auth-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .jf-register-heading {
        align-items: flex-start;
    }

    .jf-register-brand {
        padding: 22px;
    }

    .jf-register-brand .jf-product-lockup img,
    .jf-register-brand .jf-product-logo {
        height: 88px;
        max-width: 100%;
        width: 220px;
    }

    .jf-register-brand .jf-brand-copy {
        margin-top: 18px;
    }

    .jf-feature-list {
        gap: 14px;
        margin-top: 22px;
    }

    .jf-help-box {
        margin-top: 18px;
    }

    .jf-register-panel {
        padding: 22px 18px;
    }

    .jf-register-top-link {
        text-align: left;
    }

    .jf-register-panel .jf-field > div {
        min-height: 50px;
    }
}
