* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: #f4f4f4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333;
}

/*-- -------------------------- -->
<---    CONTAINER GENERAL       -->
<--- -------------------------- -*/
.login-container {
  margin-top: 140px;
  margin-bottom: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.8s ease;
}

.login-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.login-subtitle {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: 30px;
}

/*-- --------------------------------- -->
<--- ./ESPACE-CLIENT/SE-CONNECTER.HTML -->
<--- --------------------------------- -*/
.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  text-align: left;
  color: #444;
  font-weight: 500;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
  background: #fff;
  color: #333;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
  border: 1px solid #ff7e5f;
  box-shadow: 0 0 6px rgba(255, 126, 95, 0.3);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #ff7e5f;
}

.btn-login {
  background: #ff7e5f;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
  width: auto;
}

.btn-login:hover {
  background: #e96a4d;
  transform: translateY(-1px);
}

.login-footer {
  margin-top: 20px;
  font-size: 0.9rem;
}

.login-footer a {
  color: #ff7e5f;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.login-footer a:hover {
  color: #e96a4d;
}

.error-message-client {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: #d32f2f;
  font-size: 0.95rem;
  margin-top: 6px;
  display: block;
  min-height: 18px;
  line-height: 1.4;
}

.global-error-client {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #b71c1c;
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
  margin-top: 12px;
  font-weight: 500;
  display: none;
  line-height: 1.4;
}

.login-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px; 
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin-top: 1rem;
  flex-wrap: nowrap;
}

.login-footer a {
  font-weight: 600;
}

.login-footer a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 400px) {
  .login-footer {
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px;
  }
  .login-title {
    font-size: 1.8rem;
  }
  .btn-login {
    font-size: 0.95rem;
    padding: 10px;
  }
}

/*-- --------------------------------- -->
<--- ./ESPACE-CLIENT/ENREGISTRER.HTML -->
<--- --------------------------------- -*/
.checkbox-group {
  margin-top: 1rem;
}

.checkbox-text {
  display: inline-block;
  margin-left: 25px;
  position: relative;
  top: -22px;
  line-height: 1.4;
}

.checkbox-label {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  color: #333;
  cursor: pointer;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.privacy-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.privacy-link:hover,
.privacy-link:focus {
  color: #004999;
  text-decoration: underline;
}

#privacyError {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 4px;
  display: none;
}

@media (max-width: 600px) {
  .checkbox-label {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .checkbox-text {
    text-align: justify;
    margin-left: 25px;
  }
}

/*-- ------------------------------------------------ -->
<--- ./ESPACE-CLIENT/SE CONNECTER.HTML : MDP OUBLIÉ   -->
<--- ------------------------------------------------ -*/
.forgot-password-container {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 10px;
}

.forgot-password-link {
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password-link:hover {
  color: #004999;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .forgot-password-container {
    text-align: right;
  }
}

/*-- ----------------------------------- -->
<--- ./ESPACE-CLIENT/REINITIALISER.HTML  -->
<--- ----------------------------------- -*/
.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}

.input-wrapper .toggle-eye {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  color: #666;
  cursor: pointer;
  font-size: 1.1rem;
}