﻿:root {
    --logo-pladse-blanco: url('/image/logos/pladse-blanco.png');
    --logo-pladse-negro: url('/image/logos/pladse-negro.png');
    --logo-humanismo-blanco: url('/image/logos/humanismo-blanco.png');
    --logo-secretaria-educacion: url('/image/logos/secretaria-educacion.png');
}

/* Configuración General y Manrope */
body.auth-body {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background-color: #ffffff;
}

.logo-pladse-blanco {
    background: var(--logo-pladse-blanco) no-repeat center / contain;
    height: 4rem;
    transition: all .2s;
    width: 15rem;
}

.logo-pladse-negro {
    background: var(--logo-pladse-negro) no-repeat center / contain;
    height: 1.5rem;
    margin-top: 2rem;
    opacity: 0.5;
    width: 100%;
}

.logo-humanismo-blanco {
    background: var(--logo-humanismo-blanco) no-repeat center / contain;
    height: 3rem;
    transition: all .2s;
    width: 12rem;
}

.logo-secretaria-educacion {
    background: var(--logo-secretaria-educacion) no-repeat center / contain;
    height: 3.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.fw-800 {
    font-weight: 800;
}

.fw-300 {
    font-weight: 300;
}

.auth-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- PANEL IZQUIERDO (40%) --- */
.auth-side-info {
    flex: 0 0 50%;
    background-color: var(--se-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

/* Ajuste del Escudo de Chiapas: Centrado y completo */
.chiapas-relief {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 85%; /* Ajusta según qué tan grande */
    height: 85%;
    background-image: url('../image/logos/escudo-blanco.png');
    background-repeat: no-repeat;
    background-size: contain; /* Garantiza que el escudo se vea completo sin cortes */
    background-position: center; /* Centrado absoluto */
    opacity: 0.08; /* Muy sutil para que no compita con el texto */
    transform: translate(-50%, -50%); /* Técnica para centrado perfecto */
    pointer-events: none;
    z-index: 1;
}

.auth-info-content {
    position: relative;
    z-index: 2; /* Por encima del escudo */
    text-align: center;
    width: 100%;
}

.auth-header-side {
    position: absolute;
    top: 2rem;
    left: 4rem;
    color: white;
}

.auth-footer-side {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    color: white;
    width: 90%;
}

/* --- PANEL DERECHO (50%) --- */
.auth-side-form {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

/* Trama de fondo apenas perceptible */
.trama-background {
    background-image: url('../image/logos/trama.png'); /* Tu imagen de tramas */
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Ajuste para que apenas se visualice */
    pointer-events: none;
    width: 100%;
}

.auth-form-container {
    width: 100%;
    max-width: 25rem; /* Tamaño optimizado del formulario */
    position: relative;
    z-index: 5;
}

    .auth-form-container .login-box {
        width: 25rem;
    }

/*-----------------------------*/
/* Estilo de los Campos de Entrada */
.auth-side-form .form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.auth-side-form label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
    display: block;
    transition: all 0.2s;
}

.auth-side-form .form-control {
    border-radius: 12px; /* Redondeado moderno */
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #1a202c;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* Estado de Enfoque (Focus) */
    .auth-side-form .form-control:focus {
        background-color: #ffffff;
        border-color: var(--se-primary);
        box-shadow: 0 0 0 4px rgba(0, 152, 135, 0.1); /* Resplandor sutil del color primario */
        outline: none;
    }

/* Iconos dentro de los inputs (opcional) */
.input-group-text {
    background-color: transparent;
    border: 1.5px solid #e2e8f0;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #94a3b8;
}

.input-group .form-control {
    border-left: none;
}

/* --- COMPONENTES DE FORMULARIO --- */
.auth-side-form .form-control {
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

    .auth-side-form .form-control:focus {
        border-color: var(--se-primary);
        box-shadow: 0 0 0 4px rgba(0, 152, 135, 0.1);
    }

.btn-auth {
    background-color: var(--se-primary);
    color: white;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    border: none;
    transition: all 0.3s ease;
}

    .btn-auth:hover {
        background-color: var(--se-primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(0, 152, 135, 0.25);
    }

/* --- LOADER OVERLAY (Ajustado para el nuevo layout) --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* --- RESPONSIVE (Móviles) --- */

@media (max-width: 1440px) {
    .auth-header-side {
        left: 2.5rem;
    }

    .auth-footer-side {
        left: 2.5rem;
        width: 87%;
    }
}

@media (max-width: 991.98px) {
    .auth-side-form {
        flex: 0 0 100%;
        background-color: var(--se-light); /* Fondo sutil en móvil */
    }

    .auth-form-container {
        background: white;
        padding: 2.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    }

        .auth-form-container .login-box {
            width: 22rem;
        }
}

@media (max-width: 425.98px) {
    .auth-form-container .login-box {
        width: 17rem;
    }
}
