/* --- Estilos Profesionales Horizontales (2 Columnas) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
    --primary-color: #0056b3;
    --background-gradient-start: #f0f2f5;
    --background-gradient-end: #d9e2ec;
    --card-background: #ffffff;
    --text-color: #333;
    --input-border-color: #ced4da;
    --input-focus-border: #80bdff;
    --error-color: #e74c3c;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-end));
    margin: 0;
    padding: 20px;
    /* Añade un poco de espacio por si la pantalla es pequeña */
}

/* El contenedor principal que tendrá las 2 columnas */
.login-container {
    display: flex;
    width: 100%;
    max-width: 950px;
    /* Más ancho */
    min-height: 480px;
    background-color: var(--card-background);
    box-shadow: var(--box-shadow);
    border-radius: 15px;
    overflow: hidden;
    /* Clave para que el contenido respete los bordes redondeados */
    animation: fadeIn 0.5s forwards ease-out;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- Columna Izquierda: Información --- */
.info-panel {
    flex: 1;
    /* Ocupa la mitad del espacio */
    background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 40, 85, 0.9)), url('https://images.pexels.com/photos/3184418/pexels-photo-3184418.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.info-content h1 {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.info-content p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Columna Derecha: Formulario --- */
.form-panel {
    flex: 1;
    /* Ocupa la otra mitad del espacio */
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-panel h2 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
}

.form-panel p {
    color: #6c757d;
    font-size: 0.9em;
    text-align: center;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    height: 45px;
    min-height: 45px;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

button {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 500;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

button:hover {
    background-color: #004494;
    transform: translateY(-2px);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.error-message {
    color: var(--error-color);
    margin-top: 15px;
    font-size: 0.9em;
    min-height: 20px;
}

/* --- Adaptación para pantallas pequeñas (móviles) --- */
@media (max-width: 850px) {
    .login-container {
        flex-direction: column;
        /* Apila las columnas una sobre otra */
        min-height: auto;
        max-width: 450px;
    }

    .info-panel {
        padding: 40px 20px;
        min-height: 200px;
    }
}

/* --- Estilos para el Título con Colores y Borde Blanco (index.html) --- */

.logo-title {
    font-size: 2.5em;
    /* Un poco más grande para el login */
    font-weight: 600;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Sombra para profundidad */
}

.logo-title span {
    color: #ffffff;
    /* Color blanco por defecto */
    /* Añadimos el borde blanco a las letras */
    text-shadow:
        -1px -1px 0 #050505,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000,
        2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Mantenemos la sombra original para profundidad */
}

/* Color resaltado para las sílabas específicas */
.logo-title .highlight {
    color: #00bcd4;
    /* Color cian para el highlight */
}

/* --- Estilos para el Botón de WhatsApp --- */
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Espacio entre el ícono y el texto */
    background-color: #25D366;
    /* Color oficial de WhatsApp */
    color: white !important;
    /* Usamos !important para asegurar que el color se aplique */
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
}

.whatsapp-button:hover {
    background-color: #1EBE57;
    transform: translateY(-2px);
    text-decoration: none;
    color: white !important;
}

.whatsapp-button svg {
    width: 20px;
    height: 20px;
}

/* ======================================================= */
/* ==   ESTILOS PARA TRANSICIÓN SUAVE ENTRE PÁGINAS     == */
/* ======================================================= */

body.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

body {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* ============================================= */
/* AJUSTE PARA POSICIONAR FOOTER Y EVITAR SCROLL */
/* ============================================= */

/* 1. Preparamos el contenedor principal de la página */
body {
    min-height: 100vh;
    /* El body ocupa como mínimo toda la altura de la pantalla */
    display: flex;
    /* Lo convertimos en un contenedor flexible */
    flex-direction: column;
    /* Sus hijos se ordenarán en columna (uno debajo de otro) */
    margin: 0;
    /* MUY IMPORTANTE: Elimina el margen por defecto del body que causa scrolls */
}

/* 2. Hacemos que el contenido principal crezca */
.login-container {
    flex-grow: 1;
    /* Esto hace que el contenedor del login "crezca" y ocupe todo el espacio
                     vertical disponible, empujando el footer hacia el final. */
}

/* 3. Estilos del footer con espaciado controlado */
.copyright-footer {
    text-align: center;
    padding: 20px 15px;
    /* Usamos padding para el espacio interno, es más seguro */
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
    /* Evita que el footer se encoja si el contenido es muy grande */
}

/* ============================================= */
/* SOPORTE PARA MÓVILES (SIN CAMBIOS)      */
/* ============================================= */
@media (max-width: 768px) {
    .copyright-footer {
        font-size: 12px;
        padding: 15px 10px;
    }
}
