*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: 'Montserrat', Arial, sans-serif;

    background: #f4f6f8;

    color: #2c3e50;
}


/* ============================================================
   CONTENEDOR GENERAL
   ============================================================ */

.login-page {

    width: 100%;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    padding: 45px 20px 50px;
}


/* ============================================================
   TARJETA LOGIN
   ============================================================ */

.login-card {

    width: 100%;

    max-width: 420px;

    background: #ffffff;

    border-radius: 10px;

    padding: 30px 34px 32px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.10);

}


/* ============================================================
   ENCABEZADO
   ============================================================ */

.login-header {

    text-align: center;

    margin-bottom: 28px;
}


.login-logo {

    width: 58px;

    height: 58px;

    object-fit: contain;

    margin-bottom: 8px;
}


.login-header h1 {

    margin: 0;

    color: #1E3A8A;

    font-size: 27px;

    font-weight: 700;

    letter-spacing: 0.4px;
}


.login-header p {

    margin: 7px 0 0;

    color: #607080;

    font-size: 16px;
}


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

.login-error {

    background: #fdecec;

    border: 1px solid #f3b6b6;

    color: #a33a3a;

    border-radius: 6px;

    padding: 10px 12px;

    margin-bottom: 20px;

    font-size: 14px;

    text-align: center;
}


/* ============================================================
   FORMULARIO
   ============================================================ */

.login-card form {

    margin: 0;

    padding: 0;

    max-width: none;

    background: transparent;

    border-radius: 0;

    box-shadow: none;
}


.form-group {

    margin-bottom: 18px;
}


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: #34495e;

    font-size: 15px;

    font-weight: 600;
}


.form-group input {

    width: 100%;

    height: 44px;

    padding: 10px 12px;

    border: 1px solid #bdc3c7;

    border-radius: 6px;

    background: #ffffff;

    font-size: 16px;

    color: #2c3e50;

    outline: none;

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


.form-group input:focus {

    border-color: #2980b9;

    box-shadow:
        0 0 0 3px rgba(41, 128, 185, 0.12);
}


/* ============================================================
   CONTRASEÑA
   ============================================================ */

.password-wrapper {

    position: relative;

    width: 100%;
}


.password-wrapper input {

    padding-right: 48px;
}


.password-toggle {

    position: absolute;

    top: 50%;

    right: 6px;

    transform: translateY(-50%);

    width: 38px;

    height: 34px;

    padding: 0;

    margin: 0;

    border: none;

    background: transparent !important;

    color: #607080;

    font-size: 18px;

    cursor: pointer;

    box-shadow: none !important;
}


.password-toggle:hover {

    background: transparent !important;

    color: #1E3A8A;
}


/* ============================================================
   BOTÓN INGRESAR
   ============================================================ */

.login-button {

    width: 100%;

    height: 44px;

    margin-top: 5px;

    background: #2980b9;

    color: #ffffff;

    border: none;

    border-radius: 6px;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.1s ease;
}


.login-button:hover {

    background: #1c5980;
}


.login-button:active {

    transform: translateY(1px);
}


/* ============================================================
   BANNER
   ============================================================ */

.login-banner {

    width: 100%;

    max-width: 720px;

    margin-top: 28px;

    background: #ffffff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}


.banner-content {

    display: flex;

    align-items: center;

    min-height: 150px;
}


.banner-image {

    width: 180px;

    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #eef4fb;
}


.banner-image img {

    width: 100%;

    height: 150px;

    object-fit: contain;
}


.banner-text {

    flex: 1;

    padding: 22px 28px;
}


.banner-label {

    display: inline-block;

    margin-bottom: 7px;

    color: #2980b9;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;
}


.banner-text h2 {

    margin: 0 0 8px;

    color: #1E3A8A;

    font-size: 20px;
}


.banner-text p {

    margin: 0;

    color: #5f6f7f;

    font-size: 14px;

    line-height: 1.5;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .login-page {

        padding: 25px 15px 35px;
    }

    .login-card {

        padding: 25px 22px 28px;
    }

    .login-header h1 {

        font-size: 24px;
    }

    .banner-content {

        flex-direction: column;
    }

    .banner-image {

        width: 100%;

        min-height: 120px;

        height: 120px;
    }

    .banner-image img {

        height: 120px;
    }

    .banner-text {

        padding: 20px;
    }

}