/* Reset & base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #cae2ff8e;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.auth-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  height: 90vh;
  max-height: 700px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Colonne branding */
.auth-branding {
  flex: 1;
  background: linear-gradient(135deg, #0C1841 0%, #1A2B6D 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  position: relative;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
}

.brand-content {
  text-align: center;
  margin: auto;
}

.brand-logo {
  max-width: 250px;
  height: auto;
  margin-bottom: 24px;
}

.brand-slogan {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 400px;
  margin: 0 auto;
}

.auth-copyright {
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
  margin-top: 20px;
}

/* Colonne formulaire */
.auth-form {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  background: white;
}

.auth-form form {
  width: 100%;
  max-width: 360px;
}

.auth-form h2 {
  font-weight: 700;
  font-size: 28px;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 32px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: #2D86F0;
  box-shadow: 0 0 0 3px rgba(45, 134, 240, 0.15);
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
}

.error-message {
  display: block;
  color: #d32f2f;
  font-size: 13px;
  margin-top: 6px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px;
  font-size: 14px;
}

.form-footer input[type="checkbox"] {
  margin-right: 8px;
}

.forgot-link {
  color: #2D86F0;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.button-primaire-normal {
  width: 100%;
  padding: 12px;
  background-color: #0C1841;
  color: white;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.button-primaire-normal:hover {
    background-color: #3d6fac; /* Couleur de fond normale */
    color: #FFFFFF; /* Couleur du texte normale */
    transition: background-color 0.3s ease; 
}

.button-primaire-disabled {
    background-color: #d9eeff; /* Couleur de fond désactivée */
    color: #65a2ff; /* Couleur du texte désactivé */
    cursor: not-allowed; /* Curseur non autorisé */
    opacity: 0.6; /* Opacité réduite pour l'effet désactivé */
}
.button-primaire-disabled:hover {
    background-color: #3d6fac; /* Couleur de fond normale */
    color: #FFFFFF; /* Couleur du texte normale */
    transition: background-color 0.3s ease; /* Transition douce pour le survol */
}
/* Lien de retour */
.back-link {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 24px;
  color: #2D86F0;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}
/* Responsive */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
    height: auto;
    max-height: none;
  }

  .auth-branding {
    padding: 30px;
    text-align: center;
  }

  .brand-logo {
    max-width: 140px;
  }

  .brand-slogan {
    font-size: 16px;
  }
}
