body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0c0c1d;
  color: #fff;
}

.container {
  display: flex;
  min-height: 100vh;
}

.left-panel {
  flex: 1;
  background-image: url('/image/auth-side.jpg');
  background-size: cover;
  background-position: center;
  display: block;
}

.right-panel {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.row {
  display: flex;
  gap: 10px;
}

.row input {
  flex: 1;
}

input, select, button {
  padding: 12px 15px;
  border: none;
  border-radius: 10px;
  background-color: #1a1a2e;
  color: #fff;
}

input::placeholder, select {
  color: #aaa;
}

button {
  background-color: #6200ea;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #4500c4;
}

.error {
  color: red;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    padding: 30px;
  }
}
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #ccc;
  margin-top: 10px;
}

.checkbox-label a {
  color: #4da6ff;
  text-decoration: underline;
}

.btn-submit {
  background: linear-gradient(to right, #d12e2e, #f9842f);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  width: 100%;
  cursor: pointer;
  margin-top: 20px;
}

.login-link {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
}

.login-link a {
  color: rgb(255, 128, 0);
  text-decoration: none;
}
/* Container des groupes */
.form-group {
  display: flex;
  flex-direction: column; /* Pour que label soit au-dessus de input/select */
  margin-bottom: 20px;
}

/* Style des labels */
.form-group label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: #333;
}

/* Style des inputs et selects */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Pour les champs côte à côte (row) */
.row {
  display: flex;
  gap: 20px; /* espace entre les colonnes */
}

/* Assure que chaque champ dans row prend moitié largeur */
.row .form-group {
  flex: 1;
}

/* Style pour la checkbox (label à côté de l'input) */
.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-label {
  margin-left: 8px;
  font-weight: normal;
  font-size: 13px;
  color: #555;
}

/* Bouton */
.btn-submit {
  width: 100%;
  padding: 12px 0;
  font-size: 18px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}
.btn-submit:hover {
  background-color: #0056b3;
}

/* Texte sous le bouton */
.login-link {
  margin-top: 15px;
  font-size: 14px;
  text-align: center;
}
.login-link a {
  color: #007bff;
  text-decoration: none;
}
.login-link a:hover {
  text-decoration: underline;
}

.toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #e74c3c;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-size: 0.95rem;
}

.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}












/* ✅ Mise en page par défaut (ordinateur) */
.container {
  display: flex;
  min-height: 100vh;
}

.left-panel {
  flex: 1;
}

.right-panel {
  flex: 1.5;
  padding: 2rem;
}

/* ✅ Tablette */
@media (max-width: 992px) {
  .container {
    flex-direction: column;
  }

  .left-panel {
    display: none; /* tu peux cacher la partie gauche si besoin */
  }

  .right-panel {
    flex: unset;
    padding: 1.5rem;
  }

  .row {
    flex-direction: column;
  }
}

/* ✅ Mobile */
@media (max-width: 576px) {
  .row {
    flex-direction: column;
  }

  .right-panel {
    padding: 1rem;
  }

  form {
    width: 100%;
  }
}
