body#login {
  background-image: url('../images/background.jpg'); /* URL de l'image */
  background-size: cover; /* Pour couvrir tout l'écran */
  background-position: center; /* Centrer l'image */
  background-repeat: no-repeat; /* Pas de répétition */
}

/* Ajout d'un effet d'opacité */
#login-box {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Effet d'ombre */
  border-radius: 10px; /* Bordures arrondies */
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.w3-orange {
  color:rgb(255, 121, 0);
}

/* Style de la barre de progression */
.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 10px;
    width: 0;
    background-color: #ff4444;
    animation: progress-animation linear forwards;
}

/* Animation fluide */
@keyframes progress-animation {
    from { width: 0%; }
    to { width: 100%; }
}
/* Responsive Design */
.w3-container-login {
    width: 90%; /* Par défaut pour les petits écrans */
    max-width: 400px; /* Limite pour les écrans larges */
    margin: 0 auto;
}
.w3-header-login {
    font-size: 24px; /* Police plus grande sur les petits écrans */
}
@media (min-width: 768px) {
    .w3-header-login {
        font-size: 28px; /* Police plus grande pour tablettes */
    }
}

/* Modal Styles */
.w3-modal#errorModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .w3-modal-content {
        width: 90%;
    }
}

.loader {
  border: 4px solid #d7d7d7; /* Light grey */
  border-top: 4px solid grey; 
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 2s linear infinite;

}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.image-container {
  width: 100px;
  max-width: 40px;
  height: 100px;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.image-container img {
  max-width: 100%;
  max-height: 100%;
}
