/* CIAPOL: Estilos Glassmorphism Minimalista (Cristal Transparente) */

body.login-page {
    background-image: url('../imagenes/background.jpg'); 
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Capa de fondo sutil para no opacar el wallpaper */
body.login-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 0;
}

.login-box {
    width: 400px;
    z-index: 1;
}

.card {
    /* FONDO ULTRA-TRANSPARENTE: Casi invisible (0.05) */
    background: rgba(255, 255, 255, 0.05); 
    
    /* DESENFOQUE: Es lo que da la sensación de cristal sin ensuciar la imagen */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
    border-radius: 1.5rem;
    
    /* BORDE MUY FINO: Apenas una línea de luz */
    border: 1px solid rgba(255, 255, 255, 0.15);
    
    /* SOMBRA SUAVE: Para que el contenedor no "flote" sin sentido */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

/* TEXTO: Máxima nitidez */
.login-box-msg, .h1, label, .text-muted, .card-header b {
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* INPUTS: Fondo casi sólido para que se pueda escribir y leer bien */
.slinput { 
    display: block; 
    width: 100%; 
    padding: .65rem .9rem; 
    background: rgba(255, 255, 255, 0.9); 
    border: none;
    border-radius: .5rem; 
    margin-bottom: 1.2rem;
    color: #111;
}

.slinput:focus {
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.4);
    outline: none;
}

/* BOTÓN: Sólido para contraste */
.slbutton { 
    width: 100%; 
    border-radius: .5rem; 
    padding: .8rem;
    background: #0d6efd; 
    color: white; 
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.slbutton:hover {
    background-color: #004fb1;
    transform: translateY(-1px);
}