/* =========================================================
   BANCO LAGAWE - IMS LOGIN
   70 / 30 Split Login Design
   ========================================================= */

:root {
    --bank-blue: #173b73;
    --bank-blue-dark: #0e2a55;
    --bank-gold: #d6a928;

    --text-dark: #1f2937;
    --text-muted: #64748b;
}


/* =========================================================
   PAGE
   ========================================================= */

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


body {
    font-family: "Segoe UI", Arial, sans-serif;

    overflow: hidden;

    background: #173b73;
}


/* =========================================================
   MAIN 70 / 30 LAYOUT
   ========================================================= */

.login-page {
    width: 100vw;
    height: 100vh;

    display: flex;

    overflow: hidden;
}


/* =========================================================
   LEFT SIDE
   BANCO LAGAWE IMAGE - 70%
   ========================================================= */

.login-visual {
    position: relative;

    width: 70%;
    height: 100%;

    background-image:
        url("https://dev.ims.bancolagawe.net/assets/images/blgroupies3.webp");

    background-position: center center;

    background-repeat: no-repeat;

    background-size: cover;

    background-color: #173b73;

    overflow: hidden;
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.visual-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(8, 25, 45, 0.28),
            rgba(20, 55, 80, 0.12)
        );

    pointer-events: none;
}


/* =========================================================
   RIGHT SIDE
   INVENTORY PANEL - 30%
   ========================================================= */

.login-panel {
    position: relative;

    width: 30%;
    height: 100%;

    display: flex;

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

    padding: 30px;

    box-sizing: border-box;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0e2a55 0%,
            #173b73 50%,
            #102f5f 100%
        );
}


/* =========================================================
   INVENTORY GRID / PATTERN
   ========================================================= */

.inventory-pattern {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );

    background-size: 40px 40px;

    opacity: 0.65;

    pointer-events: none;
}


/* =========================================================
   INVENTORY DECORATION
   ========================================================= */

.inventory-decoration {
    position: absolute;

    right: -80px;
    bottom: -70px;

    z-index: 1;

    pointer-events: none;
}


.inventory-decoration i {
    font-size: 300px;

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


/* =========================================================
   LOGIN CONTAINER
   ========================================================= */

.login-container {
    position: relative;

    z-index: 5;

    width: min(440px, 100%);

    padding: 38px 40px 30px;

    box-sizing: border-box;

    /*
     * Glass
     */

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

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    /*
     * Border
     */

    border: 1px solid rgba(255, 255, 255, 0.72);

    border-radius: 26px;

    /*
     * Shadow
     */

    box-shadow:
        0 25px 65px rgba(0, 0, 0, 0.28),
        0 8px 25px rgba(0, 0, 0, 0.10);

    color: var(--text-dark);
}


/* =========================================================
   GOLD ACCENT
   ========================================================= */

.login-accent {
    width: 65px;

    height: 4px;

    margin: -38px auto 26px;

    background: var(--bank-gold);

    border-radius: 0 0 10px 10px;
}


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

.login-logo {
    display: block;

    width: 210px;

    max-width: 80%;

    height: auto;

    margin: 0 auto 18px;

    object-fit: contain;
}


/* =========================================================
   TITLE
   ========================================================= */

.login-container h2 {
    margin: 0;

    text-align: center;

    color: var(--bank-blue);

    font-size: 25px;

    font-weight: 700;

    letter-spacing: -0.3px;

    line-height: 1.25;
}


/* =========================================================
   SUBTITLE
   ========================================================= */

.login-container > p {
    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.5;
}


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

#loginForm {
    margin-top: 22px;
}


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

#loginForm .input-group {
    height: 54px;

    margin-bottom: 15px !important;
}


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

#loginForm .input-group-text {
    width: 54px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

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

    color: var(--bank-blue);

    border: 1px solid rgba(255, 255, 255, 0.85);

    border-right: none;

    border-radius: 13px 0 0 13px;

    font-size: 17px;
}


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

#loginForm .form-control {
    height: 54px;

    box-sizing: border-box;

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

    color: var(--text-dark);

    border: 1px solid rgba(255, 255, 255, 0.85);

    border-left: none;

    border-radius: 0 13px 13px 0;

    box-shadow: none;

    font-size: 15px;

    padding-left: 5px;
}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

#loginForm .form-control::placeholder {
    color: #7b8794;

    opacity: 1;
}


/* =========================================================
   FOCUS
   ========================================================= */

#loginForm .form-control:focus {
    background: rgba(255, 255, 255, 0.90);

    border-color: rgba(23, 59, 115, 0.35);

    box-shadow: none;

    outline: none;
}


#loginForm .input-group:focus-within .input-group-text {
    background: rgba(255, 255, 255, 0.90);

    border-color: rgba(23, 59, 115, 0.35);
}


/* =========================================================
   SIGN IN BUTTON
   ========================================================= */

#loginBtn {
    width: 100%;

    height: 54px;

    margin-top: 4px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #24569b,
            #173b73
        );

    color: #ffffff;

    font-size: 16px;

    font-weight: 600;

    letter-spacing: 0.2px;

    box-shadow:
        0 8px 20px rgba(23, 59, 115, 0.28);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


#loginBtn:hover {
    background:
        linear-gradient(
            135deg,
            #2d65ad,
            #173b73
        );

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(23, 59, 115, 0.34);
}


#loginBtn:active {
    transform: translateY(0);
}


/* =========================================================
   DIVIDER
   ========================================================= */

.login-container hr {
    margin: 24px 0 15px;

    border: 0;

    border-top: 1px solid rgba(23, 59, 115, 0.15);
}


/* =========================================================
   FOOTER
   ========================================================= */

.login-footer {
    margin: 0;

    color: #64748b !important;

    font-size: 12px;

    font-weight: 500;

    text-align: center;
}


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

@media (max-width: 900px) {

    .login-page {
        display: block;

        overflow-y: auto;
    }


    .login-visual {
        position: fixed;

        inset: 0;

        width: 100%;
        height: 100%;
    }


    .login-panel {
        position: relative;

        width: 100%;
        min-height: 100vh;

        background:
            linear-gradient(
                135deg,
                rgba(14, 42, 85, 0.88),
                rgba(23, 59, 115, 0.82)
            );
    }


    .login-container {
        width: min(440px, calc(100% - 40px));
    }
}


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

@media (max-width: 576px) {

    .login-panel {
        padding: 20px;
    }


    .login-container {
        width: calc(100% - 10px);

        padding: 30px 22px 25px;

        border-radius: 22px;
    }


    .login-accent {
        margin-top: -30px;
    }


    .login-logo {
        width: 190px;
    }


    .login-container h2 {
        font-size: 22px;
    }


    #loginForm .input-group {
        height: 53px;
    }


    #loginForm .input-group-text {
        width: 52px;

        height: 53px;
    }


    #loginForm .form-control {
        height: 53px;
    }


    #loginBtn {
        height: 53px;
    }


    .inventory-decoration {
        right: -100px;
        bottom: -80px;
    }


    .inventory-decoration i {
        font-size: 240px;
    }
}


/* =========================================================
   REDUCE MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #loginBtn {
        transition: none;
    }
}