:root {
    --jt-ink: #121512;
    --jt-forest: #27352d;
    --jt-forest-dark: #18221c;
    --jt-sage: #788277;
    --jt-taupe: #a89f91;
    --jt-corten: #a95f3b;
    --jt-canvas: #f2efe9;
    --jt-paper: #faf9f6;
    --jt-line: rgba(18, 21, 18, 0.13);
}

html,
body {
    min-height: 100%;
    background: var(--jt-canvas) !important;
}

body {
    font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fi-simple-layout {
    min-height: 100vh !important;
    padding: 0 !important;
    background: var(--jt-canvas) !important;
}

.fi-simple-main-ctn {
    min-height: 100vh !important;
    width: 100% !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
}

.fi-simple-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.fi-simple-header,
.fi-simple-main > .fi-logo,
.fi-simple-main > header {
    display: none !important;
}

.jt-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(460px, 0.85fr);
    width: 100%;
    min-height: 100vh;
    color: var(--jt-ink);
}

.jt-login-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(34px, 4.4vw, 74px);
    color: #f7f3ec;
    background:
        radial-gradient(circle at 79% 18%, rgba(169, 95, 59, 0.23), transparent 28%),
        radial-gradient(circle at 18% 82%, rgba(120, 130, 119, 0.18), transparent 32%),
        linear-gradient(135deg, var(--jt-forest) 0%, var(--jt-forest-dark) 57%, #101712 100%);
}

.jt-login-brand::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -15%;
    right: -6%;
    width: min(46vw, 700px);
    aspect-ratio: 1;
    border: 1px solid rgba(242, 239, 233, 0.11);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(242, 239, 233, 0.025),
        0 0 0 160px rgba(242, 239, 233, 0.018);
}

.jt-login-brand::after {
    content: "J";
    position: absolute;
    z-index: -1;
    right: -0.025em;
    bottom: -0.25em;
    color: rgba(255, 255, 255, 0.028);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(360px, 43vw, 720px);
    font-weight: 700;
    line-height: 1;
}

.jt-login-grain {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.22;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
    pointer-events: none;
}

.jt-brand-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.jt-brand-logo {
    width: clamp(190px, 18vw, 286px);
    height: auto;
    filter: brightness(0) invert(1);
}

.jt-brand-badge {
    margin-top: 2px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.jt-brand-copy {
    max-width: 780px;
    margin: auto 0;
    padding: 90px 0;
}

.jt-eyebrow,
.jt-login-kicker {
    margin: 0 0 22px;
    color: #bcb4a6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.23em;
    text-transform: uppercase;
}

.jt-brand-copy h1 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(50px, 5.6vw, 92px);
    font-weight: 400;
    letter-spacing: -0.048em;
    line-height: 0.98;
}

.jt-brand-copy h1 em {
    color: #b97551;
    font-weight: 400;
}

.jt-brand-description {
    max-width: 570px;
    margin: 34px 0 0;
    color: rgba(247, 243, 236, 0.65);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.75;
}

.jt-brand-footer {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(247, 243, 236, 0.52);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.jt-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8eaa8d;
    box-shadow: 0 0 0 4px rgba(142, 170, 141, 0.12);
}

.jt-footer-separator {
    width: 20px;
    height: 1px;
    margin: 0 4px;
    background: rgba(247, 243, 236, 0.25);
}

.jt-login-access {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(36px, 5vw, 90px);
    background:
        radial-gradient(circle at 92% 8%, rgba(169, 95, 59, 0.09), transparent 24%),
        var(--jt-canvas);
}

.jt-mobile-brand {
    display: none;
}

.jt-login-card {
    width: min(100%, 450px);
}

.jt-login-heading {
    margin-bottom: 38px;
}

.jt-login-kicker {
    margin-bottom: 16px;
    color: var(--jt-corten);
}

.jt-login-heading h2 {
    margin: 0;
    color: var(--jt-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 3.2vw, 52px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.jt-login-heading > p:last-child {
    margin: 13px 0 0;
    color: #6f746f;
    font-size: 15px;
}

.jt-login-card .fi-fo-field-wrp-label,
.jt-login-card .fi-fo-field-wrp-label span {
    color: #323832 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.jt-login-card .fi-input-wrp {
    min-height: 50px;
    border: 1px solid var(--jt-line) !important;
    border-radius: 5px !important;
    background: rgba(255, 255, 255, 0.63) !important;
    box-shadow: 0 1px 2px rgba(18, 21, 18, 0.03) !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.jt-login-card .fi-input-wrp:focus-within {
    border-color: rgba(39, 53, 45, 0.7) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(39, 53, 45, 0.09) !important;
}

.jt-login-card .fi-input {
    min-height: 48px;
    color: var(--jt-ink) !important;
    font-size: 15px;
}

.jt-login-card .fi-checkbox-input {
    border-color: rgba(18, 21, 18, 0.2) !important;
    border-radius: 3px !important;
}

.jt-login-card .fi-checkbox-input:checked {
    background-color: var(--jt-forest) !important;
    border-color: var(--jt-forest) !important;
}

.jt-login-card .fi-btn {
    min-height: 50px;
    border-radius: 4px !important;
    background: var(--jt-forest) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    box-shadow: 0 9px 24px rgba(24, 34, 28, 0.16) !important;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.jt-login-card .fi-btn:hover {
    transform: translateY(-1px);
    background: #1c2921 !important;
    box-shadow: 0 12px 28px rgba(24, 34, 28, 0.22) !important;
}

.jt-login-card .fi-link {
    color: var(--jt-corten) !important;
}

.jt-login-security {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(100%, 450px);
    margin: 38px 0 0;
    color: #8a8e89;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.jt-login-security svg {
    width: 15px;
    height: 15px;
    fill: #8a8e89;
}

@media (max-width: 1024px) {
    .jt-login-shell {
        grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    }

    .jt-brand-copy h1 {
        font-size: clamp(46px, 6vw, 68px);
    }
}

@media (max-width: 800px) {
    .jt-login-shell {
        display: block;
        min-height: 100vh;
    }

    .jt-login-brand {
        display: none;
    }

    .jt-login-access {
        min-height: 100vh;
        justify-content: flex-start;
        padding: 54px 24px 38px;
    }

    .jt-mobile-brand {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        width: min(100%, 450px);
        margin-bottom: auto;
    }

    .jt-mobile-brand img {
        width: 176px;
        filter: none;
    }

    .jt-mobile-brand span {
        padding: 4px 7px;
        border: 1px solid rgba(18, 21, 18, 0.28);
        border-radius: 999px;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.18em;
    }

    .jt-login-card {
        margin: 70px 0;
    }

    .jt-login-security {
        margin-top: auto;
    }
}

@media (max-width: 480px) {
    .jt-login-access {
        padding: 34px 22px 28px;
    }

    .jt-mobile-brand img {
        width: 155px;
    }

    .jt-login-card {
        margin: 52px 0;
    }

    .jt-login-heading {
        margin-bottom: 31px;
    }

    .jt-login-heading h2 {
        font-size: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jt-login-card .fi-btn,
    .jt-login-card .fi-input-wrp {
        transition: none;
    }
}

.dark .jt-login-access,
.dark .fi-simple-layout {
    background: var(--jt-canvas) !important;
}
