/* Centrage vertical élégant */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

/* Bloc du formulaire */
section.auth {
  background-color: #fef6fb;
  max-width: 400px;
  width: 100%;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border: 1px solid #ffd7f0;
  transition: box-shadow 0.3s ease;
}
section.auth:hover {
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Pour le bloc complet */
section.auth.with-header-image {
  padding: 0; /* plus de padding intérieur */
  overflow: hidden;
}

/* Image bannière */
.auth-header-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: bannerZoomIn 0.6s ease-out;
}
.auth-header-image img.auth-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Rétablir le padding uniquement pour le contenu */
section.auth.with-header-image form,
section.auth.with-header-image h2 {
  padding: 1.5rem 2rem;
}

/* Animation douce au chargement */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* Shake pour erreur */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
.shake {
  animation: shake 0.4s ease;
}

@keyframes bannerZoomIn {
  from {
    transform: scale(1.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.register-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
}
.register-link a {
  color: var(--color-primary);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease;
}
.register-link a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}