@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat/Montserrat-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat/Montserrat-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat/Montserrat-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Montserrat";
    src: url("/fonts/Montserrat/Montserrat-ExtraBold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.login-page {
    margin: 0;
    background: #fafbfc !important;
    font-family: "Montserrat", sans-serif;
}

.login-page main {
    min-height: 100vh;
    min-height: 100svh;
}

.login-page main > .visually-hidden {
    position: absolute;
}

.login-split {
    display: grid;
    grid-template-columns: 58% 42%;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
}

.login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(48px, 7vw, 108px) clamp(30px, 4vw, 76px) 35px;
    color: #fff;
    background: #082d58 url("/images/login/office-navy.jpg") center center / cover no-repeat;
}

.login-story::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(100deg, rgba(8, 45, 88, 0.66), rgba(8, 45, 88, 0.3) 64%, rgba(8, 45, 88, 0.08));
}

.login-story::after {
    position: absolute;
    left: -127px;
    bottom: -91px;
    z-index: -1;
    width: 250px;
    height: 250px;
    border: 1px solid #ffc10745;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.story-content {
    animation: login-reveal 0.65s ease-out both;
}

.story-eyebrow {
    margin: 0 0 38px;
    color: #d6e1ef;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
}

.login-story h1 {
    margin: 0;
    font-size: clamp(27px, 2.45vw, 43px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -1.1px;
}

.login-story h1 em {
    color: #ffc107;
    font-style: normal;
    font-weight: 800;
}

.story-intro {
    max-width: 460px;
    margin: 15px 0 0;
    color: #e0e8f1;
    font-size: 13px;
    line-height: 1.7;
}

.story-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 660px;
    margin-top: 30px;
}

.story-pillar {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    background: rgba(3, 19, 36, 0.38);
    backdrop-filter: blur(7px);
    box-shadow: 0 8px 24px #0000000d;
}

.pillar-logo {
    display: flex;
    align-items: center;
    height: 89px;
    padding: 23px 15px 12px;
}

.pillar-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.story-pillar p {
    margin: 0;
    padding: 0 18px 23px;
    color: #f2f5fa;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.story-pillar p::before {
    display: block;
    width: 25px;
    height: 2px;
    margin: 3px auto 13px;
    background: #ffc107;
    content: "";
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 60px 40px;
    background: #fafbfc;
}

.login-form-container {
    width: 100%;
    max-width: 380px;
}

.login-brand {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 48px;
}

.login-brand img {
    display: block;
    width: auto;
    height: 60px;
}

.login-brand .brand-logo-cover {
    background: #fafbfc;
}

.login-brand .brand-logo-2027 {
    width: 135px;
    height: 60px;
}

.login-header h2 {
    margin: 0;
    color: #002d6c;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.26;
    letter-spacing: -0.75px;
}

.login-header h2 strong {
    font-weight: 800;
}

.login-accent {
    width: 42px;
    height: 3px;
    margin: 20px 0 24px;
    background: #ffc107;
}

.login-form {
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-field {
    margin-bottom: 19px;
}

.login-field label {
    display: block;
    margin: 0 0 8px;
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.login-field input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #10284a;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-field input:focus {
    border-color: #002d6c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 45, 108, 0.1);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 48px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: transparent;
    color: #65738a;
    font-size: 18px;
}

.password-toggle:focus-visible {
    outline: 2px solid #002d6c;
    outline-offset: -4px;
}

.login-alert {
    margin: 0 0 18px;
    font-size: 13px;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    border: 1px solid #002d6c;
    border-radius: 8px;
    background: #002d6c;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.login-submit:hover {
    border-color: #001f4b;
    background: #001f4b;
}

.login-submit:focus-visible {
    outline: 3px solid rgba(0, 45, 108, 0.25);
    outline-offset: 2px;
}

.login-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    color: #65738a;
    font-size: 11px;
    line-height: 1.6;
}

.login-footer p {
    margin: 0 0 4px;
}

.login-footer a {
    color: #002d6c;
    font-weight: 600;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

@keyframes login-reveal {
    from {
        opacity: 0;
    }
}

@media (min-width: 1600px) {
    .login-story {
        padding-top: 130px;
    }

    .story-pillars {
        margin-top: 55px;
    }

    .pillar-logo {
        height: 100px;
    }

    .story-pillar p {
        font-size: 13px;
    }
}

@media (max-width: 1100px) and (min-width: 761px) {
    .login-split {
        grid-template-columns: 54% 46%;
    }

    .login-story {
        padding: 65px 28px 30px;
    }

    .login-story h1 {
        font-size: 27px;
    }

    .story-pillars {
        gap: 9px;
    }

    .pillar-logo {
        height: 70px;
        padding: 15px 9px 10px;
    }

    .story-pillar p {
        padding: 0 12px 18px;
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    .login-split {
        display: flex;
        flex-direction: column;
    }

    .login-story {
        min-height: 440px;
        padding: 30px 24px 28px;
        background-position: center 43%;
    }

    .story-eyebrow {
        margin-bottom: 18px;
        font-size: 8px;
        letter-spacing: 2px;
    }

    .login-story h1 {
        font-size: 25px;
        letter-spacing: -0.8px;
    }

    .story-intro {
        max-width: 310px;
        margin-top: 12px;
        font-size: 11px;
        line-height: 1.6;
    }

    .story-pillars {
        gap: 9px;
        margin-top: 24px;
    }

    .story-pillar {
        border-radius: 8px;
    }

    .pillar-logo {
        height: 61px;
        padding: 14px 8px 9px;
    }

    .story-pillar p {
        padding: 0 10px 16px;
        font-size: 10px;
        line-height: 1.5;
    }

    .story-pillar p::before {
        width: 20px;
        margin-bottom: 10px;
    }

    .login-panel {
        padding: 40px 24px;
    }
}

@media (max-width: 360px) {
    .login-story {
        min-height: 420px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .login-story h1 {
        font-size: 22px;
    }

    .pillar-logo {
        padding-right: 6px;
        padding-left: 6px;
    }

    .story-pillar p {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 9px;
    }

    .login-panel {
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-content {
        animation: none;
    }
}
