/*
 * UI Branding plugin for GLPI - VIDEO + TRANSPARENCIA DINÁMICA
 */

/* Imagen de fondo (JPG) por defecto */
.welcome-anonymous {
    background: url(../background.php) no-repeat fixed top;
    background-size: cover;
    position: relative;
}

/* Si hay video, se quita la imagen estática */
.welcome-anonymous.glpimod-has-video {
    background: none !important;
}

:root {
    --login-opacity: 0.65; /* fallback */
}

/* 🎥 VIDEO FONDO (mantenido) */
.welcome-anonymous video.glpimod-background {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    z-index: -1 !important;
}

/* 🎨 LOGIN BOX - TRANSPARENCIA DINÁMICA */
.welcome-anonymous .row.justify-content-center .col-md-5,
.welcome-anonymous .col-md-5 {
    background-color: rgba(255, 255, 255, var(--login-opacity, 0.65)) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, calc(var(--login-opacity, 0.65) * 0.6)) !important;
    padding: 24px !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
}

/* INFO CARDS */
.welcome-anonymous .card.shadow-sm {
    background-color: rgba(255, 255, 255, calc(var(--login-opacity, 0.65) + 0.05)) !important;
    border: 1px solid rgba(255, 255, 255, calc(var(--login-opacity, 0.65) * 0.7)) !important;
}

/* Z-INDEX */
.welcome-anonymous > *,
.welcome-anonymous .row > * {
    position: relative !important;
    z-index: 2 !important;
}
