/* auth.css */

/* Import d'une police moderne */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  /* Arrière-plan dégradé diagonale */
  background: linear-gradient(135deg, #ff8a00, #e52e71);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Conteneur principal : effet « glass » */
.auth-container {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  width: 400px; /* Largeur "idéale" sur desktop */
  max-width: 90%; /* Garde un peu de marge sur mobile */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
  /* Supprimé : animation: fadeIn 0.8s ease-in-out; */
}

.auth-container h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: 600;
}

/* Formulaire */
.auth-container form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Les paragraphes générés par form.as_p */
.auth-container form p {
  margin-bottom: 1rem;
  text-align: left; /* pour aligner labels/champs */
  color: #fff;
  font-weight: 500;
}

/* Labels */
.auth-container form label {
  margin-bottom: 0.3rem;
  display: inline-block;
}

/* Champs de saisie */
.auth-container form input[type="text"],
.auth-container form input[type="password"],
.auth-container form input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  outline: none;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.auth-container form input:focus {
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
}

/* Bouton principal */
.auth-container button[type="submit"] {
  margin-top: 1rem;
  padding: 0.8rem;
  font-size: 1rem;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #fa709a, #fee140);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Animation du bouton au survol */
.auth-container button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Liens supplémentaires (login/register) */
.auth-container .form-links {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.auth-container .form-links a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: underline;
}

.auth-container .form-links a:hover {
  text-decoration: none;
}

/* Clé d'animation fadeIn (inutilisée pour le moment, 
   vous pouvez la retirer si vous n'en avez plus besoin) */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------
   Media Queries pour le responsive 
------------------------------------ */

/* Sur les écrans inférieurs à 480px,
   on diminue un peu les paddings et les polices */
@media (max-width: 480px) {
  .auth-container {
    padding: 1.5rem;
    width: 90%;
  }
  .auth-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .auth-container button[type="submit"] {
    font-size: 0.95rem;
    padding: 0.65rem;
  }
}

/* Sur les écrans entre 481px et 768px,
   on adapte légèrement la taille de la carte */
@media (min-width: 481px) and (max-width: 768px) {
  .auth-container {
    width: 70%;
    padding: 2rem;
  }
}

/* Positionnement du logo */
.logo-container {
  position: absolute;  /* Permet de positionner librement */
  top: 20px;           /* Espace depuis le haut */
  left: 20px;          /* Espace depuis la gauche */
}

.logo {
  height: 100px;        /* Taille du logo */
  width: auto;         /* Respecte les proportions */
}
