/* =========================================================
   ESTILOS GENERALES
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/* =========================================================
   FONDO CON IMAGEN
   ========================================================= */
.login-page {

    background: linear-gradient(135deg, #312e81 0%, #6366f1 45%, #8b5cf6 100%);
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* =========================================================
   CONTENEDOR BLANCO TRANSLÚCIDO
   ========================================================= */
.container {
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    
    /* BLANCO TRANSLÚCIDO: 85% de opacidad. El texto gris se leerá perfecto */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(8px); /* Un ligero desenfoque para suavizar la imagen que se asoma */
    -webkit-backdrop-filter: blur(8px);
    
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    
    display: flex;
    flex-direction: row;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

/* Mitad izquierda: Formulario */
.login-form-side {
    flex: 1;
    background: transparent; /* Ya toma el blanco del contenedor principal */
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mitad derecha: Logo */
.login-logo-side {
    flex: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Le ponemos un fondo blanco un micro-tono más transparente para hacer una división sutil */
    background: rgba(255, 255, 255, 0.1); 
    border-left: 1px solid rgba(0, 0, 0, 0.05); /* Una línea divisoria casi invisible */
}

.logo-cice {
    max-width: 75%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.15));
    transition: transform 0.5s ease;
}

.logo-cice:hover {
    transform: scale(1.05);
}
}

/* =========================================================
   ELEMENTOS DEL FORMULARIO (TUS ESTILOS ORIGINALES)
   ========================================================= */
h1 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.subtitulo {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 30px;
}

.formulario {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.formulario input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.formulario input:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.formulario button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.formulario button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, #2980b9, #1f639b);
}

.login-link {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.login-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #2980b9;
    text-decoration: underline;
}

#mensaje {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* =========================================================
   BOTÓN DE AYUDA Y MISCELÁNEOS
   ========================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

div[style*="border: 1px solid rgb(255, 0, 0)"] {
    display: none !important;
}

.enlace-ayuda {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    color: #667eea;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 1000;
}

.enlace-ayuda:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.enlace-ayuda::before {
    content: "❓";
    font-size: 1.2rem;
}

/* =========================================================
   AJUSTES RESPONSIVE (MÓVILES)
   ========================================================= */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        max-width: 450px;
        padding: 0; /* Quitamos el padding global para que las mitades lo controlen */
    }
    
    .login-logo-side {
        padding: 30px;
        order: -1; /* El logo se va para arriba en celular */
    }
    
    .logo-cice {
        max-width: 180px;
    }
    
    .login-form-side {
        padding: 40px 25px;
        border-radius: 20px 20px 0 0; /* Solo curveamos arriba al apilarse */
    }
    
    h1 { font-size: 1.8rem; }
    
    .formulario input,
    .formulario button {
        padding: 12px 15px;
    }

    .enlace-ayuda {
        bottom: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}