/* Main CSS for the form */

main {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.form {
  display: flex;
  flex-direction: column;
  width: 700px;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 20px;
}

.form-group {
  width: 60%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
  outline: none;
  font-size: 16px;
}
select {
  width: 30%;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: all 0.3s ease;
  outline: none;
  font-size: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: #4a90e2;
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
  transform: scale(1.03);
}

button[type="submit"] {
  background-color: #4a90e2;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #357ab8;
  transform: translateY(-3px);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Additional styling for smooth animation */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  transition: all 0.3s ease-in-out;
}

label span {
  color: red;
}
.error-message {
  background-color: #f03304;
  color: #fff;
  border: 1px solid #570101;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 1em;
  font-weight: bold;
  text-align: center;
}
.error-messages {
  background-color: #f03304;
  color: #fff;
  border: 1px solid #570101;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 1em;
  font-weight: bold;
  text-align: center;
  display: none; /* Masquer par défaut */
}
.error-messages.visible {
  display: block; /* Afficher lorsque l'erreur est active */
}
/** media querys **/
@media screen and (max-width: 1033px) {
  main {
    flex-direction: column;
    border-radius: 0px;
  }
  .content {
    padding: 15px;
    padding-bottom: 30px;
  }
  .form {
    width: 100%;
  }
  .form-group {
    width: 90%;
  }
  select {
    width: 50%;
  }
}
.success {
  color: green;
}

.error {
  color: red;
  display: none;
}

.error.show {
  display: block;
}

.link-blue {
  color: blue;
}

.link-brown {
  color: brown;
}

.password-criteria {
  list-style: none;
  padding-left: 0;
  font-size: 0.9em;
  margin-top: 0.5em;
}
.password-criteria li {
  margin-bottom: 3px;
  padding-left: 5px;
}
.password-criteria .valid {
  color: green;
}
.password-criteria .invalid {
  color: red;
}
#submit-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

#submit-btn:not(:disabled) {
  background-color: #007bff; /* ou ta couleur principale */
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.success-message {
  background-color: #e6ffed;
  color: #2d7a46;
  border: 1px solid #a2e3b2;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 1em;
  font-weight: bold;
  text-align: center;
}
