html, body {
  height: 100%;
  background-color: #ffffff; /* même fond que les panels */
}

body {
  margin: 0;
  display: flex;
  height: 100vh;
  overflow: hidden; /* évite la barre de scroll verticale */
  font-family: 'Inter', 'GCO Sans', sans-serif;
}

.left-panel {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  position: relative;
}

.right-panel {
  flex: 1;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-sizing: border-box;
  max-height: 100vh;
  overflow-y: auto; /* scroll uniquement si nécessaire */
  padding-top: 60px;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .right-panel {
    display: none;
  }
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* caché par défaut */
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
  }

  .popup-content {
    background-color: #fff;
    color: #000;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }

  .close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
  }
}

.batch-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #E30613;
  color: #ffffff;
  padding: 12px 16px;
  text-align: center;
  z-index: 1000; /* au-dessus de tout */
  box-sizing: border-box;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Nouveau conteneur pour les erreurs */
.error-container {
  width: 100%;
  max-width: 300px; /* même largeur que le formulaire */
  margin: 0 auto 16px auto;
  box-sizing: border-box;
  list-style-type: none;
}

.errorMessage{
  color: var(--color-primary);
  font-size: 14px;
  font-weight: bold;
  list-style-type: none;
  margin-left: -25px;
}

