/* Styles généraux */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #eef2f3, #dbe6ec);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/img/fond-login.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.6;
}

.login-box {
  background: rgba(255, 255, 255, 0.5); /* blanc translucide */
  backdrop-filter: blur(20px); /* effet de flou derrière */
  -webkit-backdrop-filter: blur(20px); /* pour Safari */
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 300px;
  margin-bottom: -40px;
  margin-top: -30px;
}

h2 {
  margin-bottom: 30px;
  font-weight: 600;
  color: #333;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  max-width: 350px;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 16px;
}

.login-button {
  width: 100%;
  max-width: 350px;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2); 
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease; 
}

.login-button:hover {
  background: linear-gradient(135deg, #764ba2, #667eea); 
}

.login-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.forgot-password {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.join-button {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px 0;
  background-color: transparent;  
  text-align: center;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  background-color: transparent;
}

.navbar-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand img {
  width: 140px;
  height: auto;
}

.navbar-toggler {
  background: none;
  border: none;
  color: black;
  font-size: 24px;
  cursor: pointer;
}

.error-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4d4f;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Médiacontrole pour les écrans mobiles */
@media (max-width: 768px) {
  .login-box {
    padding: 30px 40px; /* Moins de padding sur les petits écrans */
    max-width: 90%; /* Prendre presque toute la largeur */
  }

  .logo {
    width: 200px; /* Réduire la taille du logo */
    margin-bottom: -30px;
    margin-top: -20px;
  }

  input[type="email"],
  input[type="password"],
  .login-button {
    max-width: 90%; /* Prendre presque toute la largeur */
  }

  .login-button {
    padding: 12px;
    font-size: 14px; /* Réduire la taille de la police du bouton */
  }
}

/* Pour les très petits écrans (mobiles uniquement) */
@media (max-width: 480px) {
  .login-box {
    padding: 20px 30px;
    max-width: 70%;
  }

  .logo {
    width: 150px; /* Encore plus petit pour les petits écrans */
    margin-bottom: -20px;
    margin-top: -10px;
  }

  h2 {
    font-size: 20px; /* Réduire la taille du titre */
    margin-bottom: 20px;
  }

  input[type="email"],
  input[type="password"] {
    font-size: 14px; /* Réduire la taille du texte des champs de saisie */
    padding: 12px;
  }

  .login-button {
    font-size: 14px; /* Réduire la taille de la police du bouton */
  }
}
