:root {
    --primary: #0b3478;
    --primary-dark: #06265c;
    --primary-light: #eaf2ff;

    --text: #0f1f3d;
    --text-secondary: #64748b;
    --border: #dce4ef;

    --background: #f7f9fc;
    --white: #ffffff;

    --success: #16845b;
    --danger: #dc3545;

    --radius: 12px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}


button,
input {
    font-family: inherit;
}


.login-page {
    min-height: 100vh;
    display: flex;
}


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

.brand-panel {
    width: 48%;
    min-height: 100vh;

    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 55px 70px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255,255,255,0.08),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #092f70 0%,
            #06285f 50%,
            #041e4b 100%
        );

    color: white;
}


/* decorative circles */

.brand-panel::before {
    content: "";
    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    right: -200px;
    top: -180px;

    border: 1px solid rgba(255,255,255,0.08);
}


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

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    left: -350px;
    bottom: -350px;

    border: 1px solid rgba(255,255,255,0.06);
}


.brand-content,
.brand-footer {
    position: relative;
    z-index: 2;
}


.brand-logo img {
    width: 180px;
    height: auto;

    /*
       Your logo is dark navy.
       This filter makes it suitable
       for the dark background.
    */
    /*filter:*/
    /*    brightness(0)*/
    /*    invert(1);*/
}


.brand-message {
    max-width: 540px;

    margin-top: 150px;
}


.brand-message h1 {
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.08;

    letter-spacing: -2px;

    font-weight: 700;

    margin-bottom: 25px;
}


.brand-message p {
    max-width: 500px;

    font-size: 16px;
    line-height: 1.8;

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


.feature-list {
    margin-top: 45px;

    display: flex;
    flex-direction: column;

    gap: 17px;
}


.feature-item {
    display: flex;
    align-items: center;

    gap: 13px;

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

    font-size: 14px;
}


.feature-icon {
    width: 23px;
    height: 23px;

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

    border-radius: 50%;

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

    color: #fff;

    font-size: 12px;
}


.brand-footer {
    color: rgba(255,255,255,0.45);

    font-size: 12px;
}


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

.login-panel {
    flex: 1;

    min-height: 100vh;

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

    padding: 50px;
}


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


/* =========================================
   HEADER
========================================= */

.login-header {
    margin-bottom: 35px;
}


.welcome-label {
    display: inline-block;

    color: var(--primary);

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

    margin-bottom: 10px;
}


.login-header h2 {
    font-size: 32px;
    line-height: 1.2;

    letter-spacing: -0.8px;

    margin-bottom: 10px;
}


.login-header p {
    color: var(--text-secondary);

    font-size: 14px;

    line-height: 1.6;
}


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

.form-group {
    margin-bottom: 23px;
}


.form-group label {
    display: block;

    margin-bottom: 9px;

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

    color: #263752;
}


.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.forgot-link {
    color: var(--primary);

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;
}


.forgot-link:hover {
    text-decoration: underline;
}


/* =========================================
   INPUT
========================================= */

.input-wrapper {
    position: relative;
}


.input-wrapper input {
    width: 100%;

    height: 54px;

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

    border-radius: var(--radius);

    outline: none;

    padding: 0 48px;

    background: #fff;

    color: var(--text);

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.input-wrapper input::placeholder {
    color: #9aa7ba;
}


.input-wrapper input:hover {
    border-color: #b9c6d8;
}


.input-wrapper input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(11,52,120,0.08);
}


.input-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    width: 18px;
    height: 18px;

    color: #8b9ab0;

    pointer-events: none;
}


.input-icon svg {
    width: 100%;
    height: 100%;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   PASSWORD TOGGLE
========================================= */

.password-toggle {
    position: absolute;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    width: 28px;
    height: 28px;

    border: 0;

    background: transparent;

    color: #8998ac;

    cursor: pointer;

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


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


.password-toggle svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   REMEMBER ME
========================================= */

.form-options {
    margin-bottom: 25px;
}


.remember-me {
    display: flex !important;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    font-size: 13px !important;

    color: var(--text-secondary) !important;
}


.remember-me input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.custom-checkbox {
    width: 18px;
    height: 18px;

    border: 1.5px solid #c6d1df;

    border-radius: 5px;

    position: relative;

    transition: .2s;
}


.remember-me input:checked + .custom-checkbox {
    background: var(--primary);

    border-color: var(--primary);
}


.remember-me input:checked + .custom-checkbox::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 9px;

    border-right: 2px solid white;
    border-bottom: 2px solid white;

    transform: rotate(45deg);

    left: 5px;
    top: 2px;
}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-button {
    width: 100%;
    height: 56px;

    border: none;

    border-radius: var(--radius);

    background: var(--primary);

    color: white;

    cursor: pointer;

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

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

    gap: 10px;

    box-shadow:
        0 7px 18px rgba(11,52,120,0.18);

    transition:
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}


.login-button:hover {
    background: var(--primary-dark);

    box-shadow:
        0 9px 22px rgba(11,52,120,0.24);

    transform: translateY(-1px);
}


.login-button:active {
    transform: translateY(0);
}


.button-arrow {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.button-loader {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255,255,255,0.35);

    border-top-color: white;

    border-radius: 50%;

    animation: spin .7s linear infinite;
}


.login-button.loading .button-loader {
    display: block;
}


.login-button.loading .button-arrow {
    display: none;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


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

.security-note {
    margin-top: 30px;

    display: flex;

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

    gap: 8px;

    color: #8a98aa;

    font-size: 11px;
}


.security-note svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: #8a98aa;

    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   MESSAGE
========================================= */

.login-message {
    display: none;

    padding: 12px 14px;

    border-radius: 9px;

    margin-bottom: 20px;

    font-size: 13px;

    line-height: 1.5;
}


.login-message.error {
    display: block;

    background: #fff1f2;

    border: 1px solid #fecdd3;

    color: #be123c;
}


.login-message.success {
    display: block;

    background: #ecfdf5;

    border: 1px solid #a7f3d0;

    color: #047857;
}


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

.mobile-logo {
    display: none;
}


.mobile-logo img {
    width: 150px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .brand-panel {
        width: 42%;

        padding: 40px;
    }

    .login-panel {
        padding: 35px;
    }

    .brand-message {
        margin-top: 110px;
    }

    .brand-message h1 {
        font-size: 38px;
    }
}


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

@media (max-width: 760px) {

    .login-page {
        display: block;
    }


    .brand-panel {
        display: none;
    }


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

        padding: 30px 22px;

        align-items: flex-start;
    }


    .login-container {
        max-width: 100%;

        padding-top: 20px;
    }


    .mobile-logo {
        display: block;

        margin-bottom: 65px;
    }


    .login-header {
        margin-bottom: 30px;
    }


    .login-header h2 {
        font-size: 28px;
    }


    .login-header p {
        font-size: 13px;
    }


    .security-note {
        margin-top: 25px;
    }
}


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

@media (max-width: 380px) {

    .login-panel {
        padding: 25px 18px;
    }


    .mobile-logo {
        margin-bottom: 50px;
    }


    .login-header h2 {
        font-size: 25px;
    }


    .input-wrapper input {
        height: 52px;
    }


    .login-button {
        height: 54px;
    }
}