/* ========================================= */
/* login_styles.css (CÓDIGO COMPLETO Y FINAL) */
/* ========================================= */

/* -------------------------------------- */
/* 1. Fondo Azul con Patrón de Líneas */
/* -------------------------------------- */

/* Animación para el movimiento sutil de las líneas de fondo */
@keyframes moving-lines {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}

/* Aplica el fondo azul profundo y el patrón de cuadrícula luminoso */
.custom-bg {
    background-color: #003366 !important; /* Azul profundo base */
    min-height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moving-lines 15s linear infinite;
}

/* -------------------------------------- */
/* 2. Tarjeta de Login (Borde Giratorio y Contraste) */
/* -------------------------------------- */

/* Animación del Borde Giratorio */
@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenedor extra para el efecto de frase giratoria (Si lo estás usando en index.php) */
.rotating-glow-container {
    position: relative;
    margin-top: 5rem; 
}
.rotating-glow-container .login-card-glow {
    margin-top: 0 !important; 
}


/* Tarjeta principal con el efecto de luz giratoria en el borde */
.login-card-glow {
    background-color: rgba(10, 10, 30, 0.9) !important; 
    border: none !important; /* Eliminamos el borde estático */
    box-shadow: 0 0 20px rgba(0, 100, 255, 0.5); /* Sombra base sutil */
    animation: none; /* Desactivamos el glow-animation anterior */
    
    position: relative; 
    z-index: 10;
    overflow: hidden; 
    color: white; /* Asegura el color de texto general */
    backdrop-filter: blur(5px);
}

/* El Marco de Luz Giratoria (::before) */
.login-card-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    
    /* Degradado cónico rotatorio */
    background: conic-gradient(
        transparent,
        rgba(0, 100, 255, 0.9), /* Azul fuerte */
        transparent 30%,
        rgba(0, 191, 255, 0.9), /* Celeste */
        transparent 70%
    );
    z-index: 0; /* Detrás del borde interior */
    animation: rotate-border 4s linear infinite;
}

/* El Borde Interior Definido (::after) - Crea el efecto de marco recortando el centro */
.login-card-glow::after {
    content: '';
    position: absolute;
    top: 3px; 
    right: 3px;
    bottom: 3px;
    left: 3px;
    background-color: rgba(10, 10, 30, 1); /* Fondo oscuro SÓLIDO */
    border-radius: 0.3rem; /* Usa el radio de Bootstrap */
    z-index: 1; /* ENCIMA del ::before (luz giratoria) */
}


/* Asegura que todo el contenido real esté sobre los pseudoelementos */
.login-card-glow .card-header,
.login-card-glow .card-body,
.login-card-glow .card-footer {
    position: relative;
    z-index: 2; /* Mayor que el ::after (z-index: 1) */
}

/* -------------------------------------- */
/* 3. Estilos de Formulario y Tipografía */
/* -------------------------------------- */

/* Tipografía del título "Iniciar Sesión" */
.login-card-glow h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.8rem !important;
    color: #00bfff !important;
    text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
    letter-spacing: 1px;
    position: relative; 
    z-index: 2; 
}

/* Etiquetas (Glosas) */
.login-card-glow .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Estilos de inputs y select (Incluye corrección de visibilidad) */
.form-control-custom {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(0, 191, 255, 0.4) !important;
    
    /* CORRECCIÓN: Fuerza el color del texto a blanco puro */
    color: #fff !important; 
    
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    
    /* Personalización de la flecha del select */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem 1rem;
}

/* Estilos para las opciones desplegadas (para máxima legibilidad) */
.form-control-custom option {
    background-color: #28283c !important; 
    color: #fff !important; 
}

.form-control-custom:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #00bfff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 191, 255, 0.25) !important;
}

/* Botón "Iniciar Sesión" */
.btn-glow {
    background: linear-gradient(45deg, #007bff, #00bfff) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 25px;
    position: relative;
    z-index: 2; 
    animation: glow-button-animation 4s infinite alternate;
}
@keyframes glow-button-animation {
    0% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(0, 191, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); }
}

/* Footer de la página */
#layoutAuthentication_footer footer {
    background-color: transparent !important;
}
#layoutAuthentication_footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}
#layoutAuthentication_footer a {
    color: rgba(255, 255, 255, 0.6) !important;
}