/* =========================================================
   LOGIN BMV STYLE
========================================================= */

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

body.login-page {
    min-height: 100vh;
    font-family: "Open Sans", sans-serif;
    background: #f3f6fb;
    color: #1f2d3d;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.login-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 50% 50%;
    overflow: hidden;
}


/* =========================================================
   LEFT SIDE
========================================================= */

.login-background {
    position: absolute;
    top: 0;
    left: 0;

    width: 50%;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            rgba(16, 56, 101, 0.12) 0%,
            rgba(12, 39, 76, 0.34) 55%,
            rgba(9, 31, 65, 0.58) 100%
        ),
        url("../assets/img/private-bg.webp")
        center center / cover no-repeat;
}


.login-overlay {
    position: absolute;
    inset: 0 auto 0 0;

    width: 50%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(11, 50, 94, 0.18) 0%,
            rgba(11, 50, 94, 0.02) 100%
        );

    pointer-events: none;
}


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

.login-screen .container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;

    display: contents;
}


/* =========================================================
   WRAPPER
========================================================= */

.login-wrapper {
    grid-column: 2;

    min-height: 100vh;

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

    padding: 60px 80px;

    background: #f4f7fc;
}


/* =========================================================
   LOGIN CARD
========================================================= */

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

    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


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

.login-eyebrow {
    display: none;
}


.login-header h1 {
    margin: 0 0 18px;

    font-size: 1.35rem;
    line-height: 1.2;

    font-weight: 700;

    color: #173d69;
}


.login-description {
    margin: 0 0 34px;

    max-width: 360px;

    font-size: 0.98rem;
    line-height: 1.5;

    color: #3e4650;
}


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

.login-form {
    margin: 0;
}


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


.login-field label {
    display: none;
}


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

    padding: 0 16px;

    border: 1px solid #d3dae5;
    border-radius: 4px;

    background: #ffffff;

    color: #25313d;

    font-family: "Open Sans", sans-serif;
    font-size: 0.95rem;

    outline: none;

    box-shadow: none;

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


.login-field input::placeholder {
    color: #bbc1ca;
}


.login-field input:focus {
    border-color: #3477d8;

    box-shadow:
        0 0 0 3px rgba(52, 119, 216, 0.08);

    background: #ffffff;
}


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

.password-field {
    position: relative;
}


.password-field input {
    padding-right: 58px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    width: 36px;
    height: 36px;

    transform: translateY(-50%);

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

    border: 0;
    padding: 0;

    background: transparent;

    color: #676d76;

    cursor: pointer;

    transition: color 0.2s ease;
}


.password-toggle:hover {
    color: #2f73db;
    background: transparent;
}


/* =========================================================
   ERROR
========================================================= */

.login-error {
    min-height: 18px;

    margin: 4px 0 12px;

    font-size: 0.78rem;
    line-height: 1.4;

    color: #d84e4e;
}


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

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

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 4px;

    padding: 0 22px;

    border: 0;
    border-radius: 3px;

    background: #2f72dc;

    color: #ffffff;

    font-family: "Open Sans", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;

    cursor: pointer;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.login-submit:hover {
    background: #2465c9;
    transform: translateY(-1px);
}


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


.login-submit svg {
    width: 20px;
    height: 20px;
}


/* =========================================================
   INVALID
========================================================= */

.login-card.is-invalid {
    animation: loginShake 0.35s ease;
}


@keyframes loginShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-3px);
    }

}


/* =========================================================
   LEFT CONTENT
   Agrega este bloque en HTML si quieres replicar
   el texto grande del ejemplo BMV.
========================================================= */

.login-intro {
    position: absolute;
    z-index: 3;

    top: 0;
    left: 0;

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

    padding:
        48px
        clamp(50px, 8vw, 145px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #ffffff;
}


.login-logo {
    position: absolute;

    top: 30px;
    left: clamp(30px, 4vw, 55px);

    max-width: 230px;
    height: auto;
}


.login-intro-content {
    max-width: 610px;
}


.login-intro h2 {
    margin: 0 0 34px;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4.7vw, 5.3rem);
    line-height: 0.98;

    font-weight: 400;

    letter-spacing: -0.04em;

    color: #ffffff;
}


.login-intro p {
    max-width: 580px;

    margin: 0;

    font-size: 1rem;
    line-height: 1.65;

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


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

@media (max-width: 1100px) {

    .login-intro {
        padding-left: 60px;
        padding-right: 50px;
    }


    .login-wrapper {
        padding-left: 55px;
        padding-right: 55px;
    }


    .login-intro h2 {
        font-size: clamp(2.8rem, 5vw, 4.2rem);
    }

}


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

@media (max-width: 767px) {

    .login-screen {
        display: block;
        min-height: 100svh;
    }


    .login-background {
        position: absolute;

        width: 100%;
        height: 38vh;
    }


    .login-overlay {
        width: 100%;
        height: 38vh;
    }


    .login-intro {
        position: relative;

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

        padding: 100px 26px 36px;

        justify-content: flex-end;
    }


    .login-logo {
        top: 24px;
        left: 24px;

        max-width: 180px;
    }


    .login-intro h2 {
        margin-bottom: 18px;

        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }


    .login-intro p {
        font-size: 0.9rem;
        line-height: 1.5;
    }


    .login-wrapper {
        min-height: 62vh;

        padding: 48px 24px 60px;

        background: #f4f7fc;
    }


    .login-card {
        max-width: 100%;
    }

}