:root {
    --verde-conalep: #007e67;
    --verde-oscuro: #005e4d;
    --texto-gris: #333;
    --fondo-gris: #f4f4f4;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }

body { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    background-color: var(--fondo-gris); 
}

/* HEADER */
.header-bar {
    background-color: var(--verde-conalep);
    color: white;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 10;
}
.header-logo img { height: 40px; }
.header-title { font-weight: 700; font-size: 1.1rem; text-align: center; width: 100%; }

/* CONTENEDOR PRINCIPAL (Split Screen) */
.main-container {
    display: flex;
    flex: 1; /* Ocupa el resto de la altura */
    height: calc(100vh - 70px);
}

/* Lado Izquierdo (Imagen) */
.image-side {
    flex: 1; /* Ocupa el 50% */
    background-image: url('../assets/img/fondo_login.jpg'); /* RUTA RELATIVA AL CSS */
    background-size: cover;
    background-position: center;
    position: relative;
}
.image-side::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 126, 103, 0.4); /* Filtro verde */
}

/* Lado Derecho (Formulario) */
.form-side {
    flex: 1; /* Ocupa el 50% */
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-conapraxis { margin-bottom: 2rem; }
.logo-conapraxis img { max-width: 250px; }

h2 { margin-bottom: 1.5rem; color: var(--texto-gris); }

.input-group { margin-bottom: 1rem; }
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--verde-conalep);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-login:hover { background-color: var(--verde-oscuro); }

.alert {
    padding: 10px;
    background-color: #ffebee;
    color: #c62828;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .image-side { display: none; } /* Ocultar imagen en celular */
}