@import url('https://fonts.googleapis.com/css?family=Raleway:400,600,700');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
}

body, html {
    height: 100%;
    background-color: #f4f6f9;
}

.login-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

/* Panel Izquierdo (PC / Tablets grandes) */
.login-banner {
    flex: 1;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* Patrón de líneas decorativas de fondo */
.login-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 450px;
}

.banner-content h3 {
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.banner-divider {
    width: 50px;
    height: 4px;
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 2px;
}

.banner-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Panel Derecho (Contenedor del Formulario) */
.login-form-container {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    overflow-y: auto;
}

.form-box {
    width: 100%;
    max-width: 380px;
}

.brand-logo {
    max-height: 55px;
    width: auto;
    object-fit: contain;
}

/* Campos de Entrada */
.form-group {
    margin-bottom: 20px;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
    display: block;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.95rem;
}

.form-control-custom {
    width: 100%;
    padding: 12px 15px 12px 45px;
    font-size: 0.95rem;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: #e53935;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
}

/* Botón de Ingreso */
.btn-submit {
    width: 100%;
    padding: 13px;
    background-color: #e53935;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #c62828;
    box-shadow: 0 6px 16px rgba(229, 57, 53, 0.4);
}

/* ==========================================
   BREAKPOINTS RESPONSIVOS
   ================================---------- */

/* Tablets en orientación vertical y dispositivos medianos (hasta 992px) */
@media (max-width: 992px) {
    .login-banner {
        padding: 30px;
    }
    .banner-content h3 {
        font-size: 1.8rem;
    }
}

/* Teléfonos móviles y pantallas pequeñas (hasta 768px) */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: 100vh;
        height: 100dvh; /* Soporte dinámico para barras de navegación en móviles modernos */
    }
    
    /* Ocultamos el banner corporativo lateral para dar todo el protagonismo al formulario en pantallas pequeñas */
    .login-banner {
        display: none;
    }
    
    .login-form-container {
        width: 100%;
        height: 100%;
        background: #f4f6f9;
        padding: 20px;
    }
    
    .form-box {
        background: #ffffff;
        padding: 25px 20px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
}