/* --- Reseteo Básico y Configuración General --- */
:root {
    --primary-color: #007AFF;
    --primary-hover: #0056b3;
    --background-color: #FFFFFF;
    --text-color: #222222;
    --subtle-text-color: #666666;
    --border-color: #EAEAEA;
    --input-background: #F7F7F7;
}

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

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
}

/* --- Diseño de Pantalla Dividida --- */
.split-screen {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.left-pane{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.right-pane {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.left-pane {
    background-color: var(--background-color);
}

.right-pane {
    background-color: #F9FAFB;
}

/* --- Contenido del Panel Izquierdo --- */
.text-content {
    max-width: 480px;
    /* --- MODIFICACIÓN: Texto alineado a la derecha --- */
    text-align: right;
}

/* El botón, al ser un elemento inline-block, también se alinea a la derecha con la regla anterior */

/* --- Estilos para el Logo Principal --- */
.logo-container {
    margin-top: -5rem; /* Sube más el logo y todo el contenido */
    margin-bottom: -2.5rem; /* Mucho más cerca del texto */
    display: flex;
    justify-content: flex-end; /* Alinea el logo a la derecha */
    
    /* Padding para que la sombra no se corte, sin fondo para mantener transparencia */
    padding: 12px 8px;
}

.main-logo {
    width: auto;
    height: 180px; /* Aumento del 20% más (150px -> 180px) */
    max-width: 450px; /* Aumento del 20% más (375px -> 450px) */
    object-fit: contain; /* Mantiene las proporciones sin distorsión */
    
    /* Sombra sutil que simula luz desde arriba a 70 grados */
    filter: drop-shadow(2px 6px 12px rgba(0, 0, 0, 0.12))
            drop-shadow(1px 3px 6px rgba(0, 0, 0, 0.08))
            drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.06));
    
    /* Eliminamos background y padding ya que queremos transparencia completa */
    background: none;
    border-radius: 0;
    
    /* Transición suave para interacciones */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-logo:hover {
    /* Efecto hover con sombra más sutil pero visible - luz a 70 grados */
    filter: drop-shadow(3px 8px 16px rgba(0, 0, 0, 0.15))
            drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.1))
            drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.08));
    
    /* Transformación más notable */
    transform: scale(1.15) translateY(-2px);
}

.text-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 0.1rem; /* Muy cerca del logo */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.text-content p {
    font-size: 1.125rem;
    color: var(--subtle-text-color);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

/* --- Animación del Panel Derecho --- */
.right-pane dotlottie-wc {
    /* --- MODIFICACIÓN: Animación más grande y adaptable --- */
    width: 100%; /* Ocupa el 100% del panel */
    height: auto; /* Mantiene la proporción */
    max-width: none; /* Eliminamos el límite de 600px */
}

/* ===== ESTILOS PARA EL MODAL MODERNO (Sección del botón de Google agregada al final) ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; justify-content: center; align-items: center;
    z-index: 1000; animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background-color: white; padding: 2.5rem; border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-color);
    width: 100%; max-width: 420px; text-align: center; position: relative;
    animation: slideIn 0.3s ease-out forwards;
}

.close-button {
    position: absolute; top: 15px; right: 20px; font-size: 28px;
    color: #ccc; cursor: pointer;
}

.modal-content h2 { font-size: 1.75rem; font-weight: 800; margin-top: 0; margin-bottom: 0.5rem; }
.modal-subtitle { color: var(--subtle-text-color); margin-bottom: 2rem; }

.input-group { margin-bottom: 1.25rem; text-align: left; }
.input-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.875rem; }
.input-group input {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border-color);
    background-color: var(--input-background); border-radius: 10px; font-size: 1rem;
    transition: all 0.2s ease-in-out;
}
.input-group input:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15); background-color: white;
}

.submit-button {
    width: 100%; background-color: var(--primary-color); color: white; border: none;
    padding: 16px; border-radius: 10px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background-color 0.2s; margin-top: 1rem;
}
.submit-button:hover { background-color: var(--primary-hover); }

.forgot-password {
    display: block; margin-top: 1.5rem; color: var(--primary-color);
    text-decoration: none; font-size: 0.875rem; font-weight: 600;
}

/* --- NUEVO: Separador y Botón de Ingresar con Google --- */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #BDBDBD;
    margin: 1.5rem 0; /* 24px arriba y abajo */
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider:not(:empty)::before {
    margin-right: .5em;
}

.divider:not(:empty)::after {
    margin-left: .5em;
}

.google-login-button {
    width: 100%;
    padding: 14px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Espacio entre el ícono y el texto */
    transition: background-color 0.2s, border-color 0.2s;
}

.google-login-button:hover {
    background-color: #F9F9F9;
    border-color: #d1d1d1;
}

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

/* --- Animaciones y Responsividad --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 800px) {
    .split-screen { flex-direction: column; }
    .right-pane { display: none; }
    .left-pane { padding: 2rem; text-align: center; }
    /* Centramos de nuevo el texto en móvil */
    .text-content { text-align: center; }
    .text-content h1 { font-size: 2.5rem; }
    .text-content p { font-size: 1rem; }
    
    /* Ajustes responsivos para el logo */
    .logo-container {
        justify-content: center; /* Centra el logo en móvil */
        margin-top: -3rem; /* Sube más en móvil también */
        margin-bottom: 0.25rem; /* Misma distancia en móvil */
    }
    
    .main-logo {
        height: 150px; /* Aumento del 20% más para móvil (125px -> 150px) */
        max-width: 378px; /* Aumento del 20% más para móvil (315px -> 378px) */
    }
}