:root {
    --bm-blue: #001a3a;
    --bm-red: #d02823;
    --bm-cream: #f8f3ee;

    --text: #101820;
    --muted: #66717d;
    --border: #d9dde2;

    --white: #ffffff;
}


* {
    box-sizing: border-box;
}


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


body {
    font-family: "Inter", Arial, sans-serif;
    background: var(--bm-blue);
    color: var(--text);
}


.login-page {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(430px, 42%)
        1fr;
}


/* =========================================
   LOGIN SIDE
   ========================================= */

.login-panel {
    min-height: 100vh;

    background:
        var(--bm-cream);

    display: flex;
    flex-direction: column;

    padding:
        44px 58px 30px;
}


.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}


.brand-mark {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        var(--bm-red);

    color:
        var(--white);

    font-weight: 700;
    font-size: 15px;

    letter-spacing: -0.5px;
}


.brand-copy {
    display: flex;
    flex-direction: column;
}


.brand-copy span {
    color:
        var(--bm-blue);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1.2px;
}


.brand-copy small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;
}


.login-content {
    width: 100%;
    max-width: 430px;

    margin:
        auto 0;
}


.eyebrow {
    display: block;

    margin-bottom: 18px;

    color:
        var(--bm-red);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}


.login-heading h1 {
    margin:
        0 0 14px;

    color:
        var(--bm-blue);

    font-size:
        clamp(38px, 4vw, 54px);

    line-height: 1;

    letter-spacing: -2px;
}


.login-heading p {
    max-width: 380px;

    margin:
        0 0 38px;

    color:
        var(--muted);

    font-size: 14px;

    line-height: 1.65;
}


.field {
    margin-bottom: 21px;
}


.field label {
    display: block;

    margin-bottom: 9px;

    color:
        var(--bm-blue);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}


.field input {
    width: 100%;
    height: 52px;

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

    border-radius: 0;

    background:
        rgba(255, 255, 255, 0.65);

    padding:
        0 16px;

    color:
        var(--bm-blue);

    font-family:
        inherit;

    font-size:
        14px;

    outline:
        none;

    transition:
        border-color 0.15s,
        background 0.15s,
        box-shadow 0.15s;
}


.field input:focus {
    border-color:
        var(--bm-blue);

    background:
        var(--white);

    box-shadow:
        0 0 0 3px rgba(0, 26, 58, 0.07);
}


.field input::placeholder {
    color:
        #9aa2aa;
}


#loginButton {
    width: 100%;
    height: 54px;

    margin-top: 8px;

    border: 0;

    background:
        var(--bm-red);

    color:
        var(--white);

    font-family:
        inherit;

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        1.8px;

    cursor:
        pointer;

    transition:
        transform 0.15s,
        opacity 0.15s;
}


#loginButton:hover {
    opacity:
        0.92;
}


#loginButton:active {
    transform:
        translateY(1px);
}


#loginButton:disabled {
    cursor:
        not-allowed;

    opacity:
        0.6;
}


.login-message {
    min-height:
        21px;

    margin-top:
        17px;

    font-size:
        12px;

    line-height:
        1.5;
}


.login-message.error {
    color:
        var(--bm-red);
}


.login-message.success {
    color:
        #176b45;
}


.login-panel footer {
    display:
        flex;

    justify-content:
        space-between;

    gap:
        20px;

    color:
        #7b858f;

    font-size:
        9px;

    font-weight:
        600;

    letter-spacing:
        1.3px;
}


/* =========================================
   VISUAL SIDE
   ========================================= */

.visual-panel {
    position:
        relative;

    overflow:
        hidden;

    min-height:
        100vh;

    background:
        linear-gradient(
            145deg,
            #001a3a 0%,
            #05274d 58%,
            #001226 100%
        );
}


.visual-panel::before {
    content:
        "";

    position:
        absolute;

    inset:
        0;

    background:
        radial-gradient(
            circle at 70% 30%,
            rgba(255,255,255,0.12),
            transparent 30%
        );
}


.visual-panel::after {
    content:
        "";

    position:
        absolute;

    width:
        500px;

    height:
        500px;

    right:
        -170px;

    bottom:
        -190px;

    border:
        80px solid rgba(208,40,35,0.72);

    border-radius:
        50%;
}


.visual-overlay {
    position:
        absolute;

    inset:
        0;

    background:
        linear-gradient(
            to top,
            rgba(0, 10, 25, 0.55),
            transparent 55%
        );
}


.visual-content {
    position:
        absolute;

    z-index:
        2;

    left:
        8%;

    bottom:
        10%;

    max-width:
        580px;

    color:
        var(--white);
}


.visual-kicker {
    display:
        block;

    margin-bottom:
        20px;

    color:
        rgba(255,255,255,0.68);

    font-size:
        10px;

    font-weight:
        700;

    letter-spacing:
        2.4px;
}


.visual-content h2 {
    margin:
        0;

    font-size:
        clamp(50px, 6vw, 92px);

    line-height:
        0.9;

    letter-spacing:
        -4px;
}


.visual-content p {
    max-width:
        440px;

    margin-top:
        28px;

    color:
        rgba(255,255,255,0.72);

    font-size:
        14px;

    line-height:
        1.6;
}


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

@media (max-width: 900px) {

    .login-page {
        grid-template-columns:
            1fr;
    }


    .visual-panel {
        display:
            none;
    }


    .login-panel {
        padding:
            32px 26px 24px;
    }


    .login-content {
        margin:
            auto;
    }

}
