/* Authentification et gestion des utilisateurs */

/* Barre d'authentification globale */
#global-auth-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(45, 55, 72, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(129, 140, 248, 0.6);
    padding: 10px 20px;
    z-index: 1000;
    display: none; /* Sera affiché par JS si nécessaire */
}

#global-user-info {
    max-width: 1400px;
    margin: 0 auto;
}

/* Styles pour les informations utilisateur connecté */
.user-info {
    margin: 10px 0;
    padding: 0;
}

.user-details {
    background: rgba(34, 197, 94, 0.25);
    border-radius: 6px;
    padding: 10px;
    border: 1px solid rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(5px);
}

.user-details h3 {
    color: #86efac;  /* Couleur originale claire pour le texte */
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    text-align: center;
}

/* Icône utilisateur stylisée inspirée de Flaticon */
.user-icon-custom {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    position: relative;
    vertical-align: middle;
}

.user-icon-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

.user-icon-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 8px;
    background: #22c55e;
    border-radius: 7px 7px 0 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #a7f3d0;
    font-weight: 500;
    font-size: 0.85rem;
    flex: 0 0 40%;
}

.info-value {
    color: #86efac;
    font-weight: bold;
    font-size: 0.85rem;
    flex: 1;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Styles pour l'icône d'authentification flottante */
.auth-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    position: relative;
}

/* Styles pour l'icône d'authentification flottante (en dehors du rectangle) */
.auth-icon-floating {
    font-size: 1.3rem;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    /* Statique, pas d'animation */
    /* Position indépendante du rectangle de temps */
    z-index: 1;
    /* S'assurer que l'icône n'est pas affectée par le background du rectangle */
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}
