:root {
    --primary-color: #761C3F;
    --primary-light: #8d2a4d;
    --primary-dark: #5a152f;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --neutral-gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;    
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #ffffff;
}

.main-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* FORMULARIO A LA IZQUIERDA */
.login-section {
    width: 450px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    order: 1;
    flex-shrink: 0;
}

/* SECCIÓN DERECHA CON FONDO Y GIF - CORREGIDA */
.video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* CAMBIADO: Distribuye el espacio */
    align-items: center;
    padding: 0;
    position: relative;
    overflow: hidden;
    order: 2;
    background-image: url('fondo.jpeg');
    background-size: auto;
    background-position: left;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

/* CONTENEDOR PARA EL CONTENIDO PRINCIPAL (GIF + SLOGAN) */
.contenido-principal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
    padding: 20px 0;
}

/* AJUSTES PARA EL GIF Y SLOGAN */
.gif-sin-contenedor {
    max-width: 80%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 50vh; /* REDUCIDO PARA DAR MÁS ESPACIO */
}
    

/* SLOGAN FLOTANTE */
.slogan-primary {
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow:
    0 0 5px rgba(118, 28, 63, 0.6),
    0 0 10px rgba(118, 28, 63, 0.5),
    0 0 20px rgba(118, 28, 63, 0.3);
  animation: brilloSuave 3s ease-in-out infinite alternate;
  display: block;
    text-align: center;
    margin-bottom: 15px; /* REDUCIDO MARGEN */
}

@keyframes brilloSuave {
  from { text-shadow: 0 0 5px rgba(118, 28, 63, 0.4); }
  to { text-shadow: 0 0 20px rgba(118, 28, 63, 0.8); }
}

.slogan-primary,
.slogan-secondary {
  display: block;
  text-align: center;
  margin-bottom: 20px; /* REDUCIDO MARGEN INFERIOR */
}

.slogan-secondary {
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

/* LOGOS Y ENCABEZADO */
.logo-img {
    height: 60px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.auth-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.auth-header {
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.educaet-logo {
    max-width: 100%;
    height: auto;
    max-height: 150px;
}

.auth-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* LOGO TLALNEPANTLA EN FORMULARIO */
.tlalnepantla-logo-form {
    text-align: center;
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid var(--light-gray);
}

.tlalnepantla-logo-form img {
    height: 70px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.tlalnepantla-logo-form img:hover {
    opacity: 1;
}

/* FORMULARIO */
.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.form-control {
    border-radius: 10px;
    border: 2px solid var(--light-gray);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(118, 28, 63, 0.25);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 42px;
    color: var(--neutral-gray);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 28, 63, 0.3);
}

.auth-footer {
    text-align: center;
    padding: 15px;
    border-top: 1px solid var(--light-gray);
    background-color: rgba(248, 249, 250, 0.7);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* TEXTOS DE BIENVENIDA */
.welcome-message {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.welcome-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-subtitle {
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 12px;
    margin-bottom: 15px;
}

/* FOOTER */
.seccion-footer {
    background-color: #f8f9fa;
    color: #333333;
    padding: 0;
    margin-top: auto; /* CAMBIADO: Ahora empuja el footer hacia abajo */
    width: 100%;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    background-color: #f8f9fa;
    width: 100%;
    padding: 5px 0;
}

.logo-page-footer {
    max-width: 150px;
    height: auto;
}

.redes-sociales {
    width: 35px;
    height: 35px;
    transition: transform 0.3s;
}

.redes-sociales:hover {
    transform: scale(1.1);
}

.text-primary {
    color: #333333 !important;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 8px;
}

.big-font-w {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333333;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 10px;
}


.container-fluid {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.footer-content p {
    color: #333333;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-content a {
    color: #333333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    margin-top: 10px;
}

.copyright p {
    color: #333333;
    margin-bottom: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
}

.copyright a {
    color: #333333;
    text-decoration: underline;
    font-weight: 600;
}

.copyright a:hover {
    color: var(--primary-color);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        min-height: auto;
    }

    .login-section {
        width: 100%;
        max-width: 100%;
        order: 2;
    }

    .video-section {
        padding: 15px;
        order: 1;
        background-position: center;
        background-size: cover;
        min-height: 50vh;
    }

    .slogan-primary {
        font-size: 1.8rem;
    }

    .slogan-secondary {
        font-size: 1.1rem;
    }

    .educaet-logo {
        max-height: 45px;
    }

    .tlalnepantla-logo-form img {
        height: 45px;
    }
}

@media (max-width: 576px) {
    .auth-body {
        padding: 15px;
    }

    .educaet-logo {
        max-height: 40px;
    }

    .welcome-title {
        font-size: 1.4rem;
    }

    .slogan-primary {
        font-size: 1.5rem;
    }

    .slogan-secondary {
        font-size: 0.9rem;
    }

    .tlalnepantla-logo-form img {
        height: 40px;
    }

    .auth-header {
        padding: 10px 15px;
        min-height: 60px;
    }

    .logo-page-footer {
        max-width: 100px;
    }
}