/* Variables de identidad visual y diseño tecnológico */
:root {
    --primary-blue: #0A55A3;      /* Azul corporativo Fidélica */
    --dark-blue: #053465;         /* Azul profundo para profundidad visual */
    --text-main: #1E293B;         /* Gris pizarra oscuro */
    --text-muted: #64748B;        /* Gris medio para textos secundarios */
    --bg-light: #F8FAFC;          /* Fondo limpio de interfaz */
    --white: #FFFFFF;
}

/* Configuración global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
}

/* Estructura dividida de pantalla completa (Split Screen) */
.login-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* PANEL IZQUIERDO: Fondo azul corporativo inmersivo */
.brand-panel {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--white);
    position: relative;
}

/* Bloque central de marca en panel izquierdo: Cambiado a centro para unificar la simetría */
.brand-showcase {
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el círculo y el bloque de texto en el eje vertical */
}

/* Isotipo circular con el efecto de órbita y relieve grueso de la imagen */
.large-logo-circle {
    width: 260px;
    height: 260px;
    background-color: var(--white);
    border-radius: 50%;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/public/img/Logo3.png'); 
    background-size: 82%; /* Ajustado ligeramente para que no toque la línea azul */
    background-position: center;
    background-repeat: no-repeat;
    
    /* 1. La línea gruesa azulada externa */
    border: 8px solid #064B95; 
    
    /* 2. Combinación de sombras para generar el relieve tridimensional e iluminación */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.35),               /* Sombra profunda proyectada al fondo */
        0 5px 15px rgba(0, 0, 0, 0.2),                 /* Sombra intermedia de asentamiento */
        inset 0 4px 12px rgba(255, 255, 255, 0.6),     /* Brillo interno superior (Efecto bisel) */
        inset 0 -6px 14px rgba(6, 75, 149, 0.15),      /* Reflejo azul sutil interno inferior */
        0px 0px 0px 4px rgba(255, 255, 255, 0.15);     /* Halo exterior de luz tecnológica */
}

/* Textos tipográficos: Se mantiene la estructura horizontal izquierda interna, pero centrada globalmente */
.brand-text-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Mantiene el inicio justificado para 'Grupo' y 'Fidélica' de forma idéntica */
    line-height: 1.05;
}

.brand-text-left .sub-title-top {
    font-size: 2.2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.brand-text-left h1 {
    font-size: 4.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* PANEL DERECHO: Formulario limpio y moderno */
.form-panel {
    width: 550px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 40px;
}

.form-content {
    margin: auto 0;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Título destacado arriba del Login */
.login-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

/* Tarjeta de información institucional superior */
.info-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(10, 85, 163, 0.08);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.info-card .notice-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
    text-align: left;
}

/* Estilización de los campos del Formulario */
.form-group {
    margin-bottom: 20px;
}

.form-group label.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background-color: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.input-control:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(10, 85, 163, 0.1);
}

/* Componente de la casilla Recordar Sesión */
.remember-me-container {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    cursor: pointer;
    user-select: none;
}

.remember-me-container input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-blue);
    cursor: pointer;
}

.remember-me-container span {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

/* Botón de acción principal */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(10, 85, 163, 0.2);
}

.btn-submit:hover {
    background-color: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(10, 85, 163, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Pie de página corporativo */
footer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 40px;
}

/* RESPONSIVE DESIGN: Reordenamiento fluido para móviles y tablets */
@media (max-width: 1024px) {
    .form-panel {
        width: 450px;
    }
}

@media (max-width: 768px) {
    .login-layout {
        flex-direction: column;
    }

    .brand-panel {
        flex: none;
        padding: 60px 30px;
        min-height: auto;
        align-items: center;
    }

    .brand-showcase {
        align-items: center;
    }

    .large-logo-circle {
        width: 130px;
        height: 130px;
        margin-bottom: 24px;
    }

    .brand-text-left {
        align-items: center;
        text-align: center;
    }

    .brand-text-left .sub-title-top {
        font-size: 1.6rem;
    }

    .brand-text-left h1 {
        font-size: 3.5rem;
    }

    .form-panel {
        width: 100%;
        flex: 1;
        padding: 40px 24px;
    }

    .login-heading {
        font-size: 1.5rem;
        text-align: center;
    }

    .info-card {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .info-card .notice-text {
        text-align: center;
    }
}
