/* Import de la police */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Lobster&display=swap');

/* Reset de base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(322deg, #1b3c59, #4b898e);
  font-family: 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #fff;
}

/* Conteneur principal */
.limiteur {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 500px;
  padding: 30px;
  position: relative;
}

/* Logo ACV Tech */
.title img {
  width: 100%;
  max-width: 250px;
  display: block;
  margin: 0 auto 20px;
}

/* Formulaire */
#loginform form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#loginform label {
  font-weight: 700;
  align-self: flex-start;
  margin-left: 5%;
  margin-bottom: 5px;
  color: #ffffff;
}

#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"]{
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  outline: none;
  background-color: #ffffff;
  color: #333;
  width: 90%;
  font-size: 18px;
  margin-bottom: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

#submit {
  margin-top: 10px;
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  background-color: #ffffff;
  color: #4b898e;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  width: 90%;
}

#submit:hover {
  background-color: #4b898e;
  color: #fff;
}

/* Liens */
a {
  text-decoration: none;
}

a[href="registration.php"] {
  color: #ffffff;
  font-weight: bold;
}

a[href="registration.php"]:hover {
  text-decoration: underline;
}

/* Message d'alerte */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
}

.alert-success {
  background-color: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.alert-error {
  background-color: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

/* Loader (si tu l’utilises) */
.loader {
  display: none;
}

.custom-loading-spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #4b898e;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

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

/* Responsive */
@media screen and (max-width: 500px) {
  .limiteur {
    padding: 20px;
  }

  #loginform input,
  #submit {
    font-size: 16px;
  }
}
