﻿/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Poppins, sans-serif;
    background: #f5f7fa;
    height: 100vh;
}

/* =========================
   CONTAINER GENERAL
========================= */
.login-container {
    display: flex;
    height: 100vh;
}

/* =========================
   PANEL IZQUIERDO (IMAGEN)
========================= */
/*.branding-panel {
    width: 65%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}
*/
.branding-panel {
    width: 65%;
    position: relative;
    background-size: auto 100%; /* 🔥 clave */
    background-position: left center; /* empieza desde la izquierda */
    background-repeat: no-repeat;
    color: white;
}

/* contenido encima de imagen */
.branding-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

/* =========================
   PANEL DERECHO LOGIN
========================= */
.login-panel {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.login-card {
    width: 420px;
}

    .login-card h2 {
        font-size: 34px;
        color: #000;
        margin-bottom: 10px;
    }

.subtitle {
    color: #000000;
    margin-bottom: 35px;
}

/* =========================
   FORM
========================= */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #444;
    }

.input-container {
    position: relative;
}

    .input-container i:first-child {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #00;
    }

.form-control {
    width: 100%;
    height: 52px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding-left: 45px;
    padding-right: 45px;
    font-size: 15px;
}

    .form-control:focus {
        outline: none;
        border-color: #004a99;
        box-shadow: 0 0 0 3px rgba(0,74,153,.15);
    }

/* password eye */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #002c5f;
}

/* =========================
   BOTÓN
========================= */
.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 10px;
    background: #eb0a1e;
    color: white;
    fontt-size: 18px;
    cursor: pointer;
    transition: .3s;
}

    .btn-login:hover {
        background: #eb0a1e;
    }

/* =========================
   VERSION
========================= */
.version {
    text-align: center;
    margin-top: 25px;
    color: #999;
    font-size: 12px;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:992px) {

    .login-container {
        flex-direction: column;
    }

    .branding-panel {
        width: 100%;
        height: 40vh;
    }

    .login-panel {
        width: 100%;
        height: 60vh;
    }

    .login-card {
        width: 90%;
        max-width: 420px;
    }
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #000;
    display: flex;
    align-items: center;
    right: 60px; /* 👈 ajusta aquí */
}

.header-login {
    /*text-align: center;*/
    margin-bottom: 35px;
}

    .header-login h1 {
        margin: 0;
        font-size: 38px;
        font-weight: 700;
        color: #111;
        letter-spacing: 1px;
    }

    .header-login p {
        margin-top: 6px;
        color: #777;
        font-size: 14px;
    }

    .header-login::after {
        content: "";
        display: block;
        width: 70px;
        height: 4px;
        background: #EB0A1E;
        /*margin: 4px auto 0;*/
        border-radius: 10px;
    }