/* Ultra Premium Login Experience - Advanced Animations and Effects - 16/05/2025 */
/* Ce fichier étend login-premium.css avec des animations et effets visuels supplémentaires */

/* ============= ANIMATIONS AVANCÉES SUPPLÉMENTAIRES ============= */
@keyframes gradient-wave {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes rotate-3d {
  0% { transform: perspective(1000px) rotateY(0deg); }
  100% { transform: perspective(1000px) rotateY(360deg); }
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(-2deg); }
  66% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes pulse-rainbow {
  0%, 100% { 
    filter: drop-shadow(0 0 5px rgba(38, 208, 206, 0.7)); 
  }
  25% { 
    filter: drop-shadow(0 0 8px rgba(26, 41, 128, 0.7));
  }
  50% { 
    filter: drop-shadow(0 0 10px rgba(70, 120, 240, 0.7));
  }
  75% { 
    filter: drop-shadow(0 0 8px rgba(38, 180, 230, 0.7));
  }
}

@keyframes shine-sweep {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes border-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(38, 208, 206, 0.5), inset 0 0 2px rgba(38, 208, 206, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(38, 208, 206, 0.8), inset 0 0 5px rgba(38, 208, 206, 0.5);
  }
}

@keyframes text-blur-out {
  0% {
    filter: blur(0.01px);
  }
  100% {
    filter: blur(5px);
    opacity: 0;
  }
}

@keyframes text-blur-in {
  0% {
    filter: blur(5px);
    opacity: 0;
  }
  100% {
    filter: blur(0.01px);
    opacity: 1;
  }
}

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(10);
    opacity: 0;
  }
}

/* ============= EFFETS GLOBAUX ============= */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #ecf0f1, #f5f7fa, #ecf0f1);
  background-size: 400% 400%;
  animation: gradient-wave 15s ease infinite;
  z-index: -2;
}

/* Amélioration du conteneur principal */
.login-container {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.08), 
    0 10px 25px rgba(0, 0, 0, 0.05),
    0 0 1px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fade-in-up 0.8s 0.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* Ajout d'un effet de bordure subtil */
.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Effet de bordure animée subtile */
.login-container::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(90deg, 
    rgba(26, 41, 128, 0), 
    rgba(38, 208, 206, 0.3), 
    rgba(26, 41, 128, 0));
  border-radius: 24px;
  opacity: 0;
  z-index: -1;
  background-size: 200% 100%;
  animation: shine-sweep 6s linear infinite;
  transition: opacity 0.5s ease;
}

.login-container:hover::after {
  opacity: 1;
}

/* ============= AMÉLIORATIONS DU PANNEAU D'INFO ============= */
/* Effet de lueur sur les éléments */
.info-panel {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Raffinement de l'arrière-plan */
.info-panel::before {
  background-image: 
    radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 2px, transparent 2px);
  background-size: 30px 30px, 60px 60px;
  background-position: 0 0, 15px 15px;
  animation: gradient-wave 15s ease infinite alternate;
}

/* Dynamiser les items de fonctionnalité */
.feature-item {
  transform-origin: left center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in-up 0.6s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.feature-item:nth-child(1) { animation-delay: 0.7s; }
.feature-item:nth-child(2) { animation-delay: 0.8s; }
.feature-item:nth-child(3) { animation-delay: 0.9s; }

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0), 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: shine-sweep 4s linear infinite;
}

.feature-item:hover {
  transform: translateX(5px) scale(1.03);
  border-left: 3px solid rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 8px 20px rgba(0, 0, 0, 0.15),
    0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-item i {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.feature-item:hover i {
  transform: scale(1.15) rotate(10deg);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature-item i::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-item:hover i::after {
  opacity: 1;
}

/* Animation sophistiquée pour le logo */
.small-logo {
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.25));
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float-logo 8s ease-in-out infinite, pulse-rainbow 8s infinite;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, filter;
}

.envelope-icon:hover .small-logo {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

/* ============= AMÉLIORATIONS DU PANNEAU DE FORMULAIRE ============= */
/* Raffinement du conteneur logo */
.vm-logo-container {
  animation: fade-in-up 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
  position: relative;
}

/* Effet de réflexion sur le logo */
.vm-logo {
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
  animation: float-logo 10s ease-in-out infinite;
  transform-style: preserve-3d;
  position: relative;
}

.vm-logo::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1), transparent 70%);
  border-radius: 50%;
  transform: scaleX(0.8);
  filter: blur(3px);
  opacity: 0.6;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vm-logo:hover {
  transform: scale(1.05) translateY(-5px) rotateY(10deg);
  filter: drop-shadow(0 8px 20px rgba(26, 41, 128, 0.15));
}

.vm-logo:hover::after {
  opacity: 0.3;
  transform: scaleX(0.7) translateY(5px);
}

/* ============= SÉLECTEUR DE LANGUE ULTRA PREMIUM ============= */
.language-selector-centered {
  animation: fade-in-up 0.7s 0.2s cubic-bezier(0.19, 1, 0.22, 1) both;
  position: relative;
}

/* Ligne d'accent avancée */
.language-selector-centered::after {
  background: linear-gradient(90deg, #1a2980, #26d0ce, #1a2980);
  background-size: 200% 100%;
  animation: gradient-wave 8s linear infinite;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 3px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(38, 208, 206, 0.3);
}

.language-selector-centered:hover::after {
  width: 80px;
  box-shadow: 0 2px 12px rgba(38, 208, 206, 0.5);
}

/* Amélioration du groupe de boutons */
.language-selector-centered .btn-group {
  background: linear-gradient(to right, #f8fafc, #f0f5fa, #f8fafc);
  border-radius: 30px;
  padding: 4px;
  overflow: hidden;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.05), 
    inset 0 0 0 1px rgba(0, 0, 0, 0.03),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
}

.language-selector-centered .btn-group:hover {
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.08), 
    inset 0 0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 2px 5px rgba(255, 255, 255, 0.7);
  transform: translateY(-3px);
}

/* Effet de profondeur pour les boutons */
.language-selector-centered .btn {
  border-radius: 26px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  border: none;
  position: relative;
  overflow: hidden;
  margin: 0 3px;
  z-index: 1;
  color: #4a5568;
  background-color: transparent;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Effet de brillance amélioré */
.language-selector-centered .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.3), 
      transparent);
  background-size: 200% 100%;
  animation: shine-sweep 3s infinite linear;
  transform: translateX(-100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.language-selector-centered .btn:hover::before {
  opacity: 1;
}

/* Animation des icônes de langue */
.language-selector-centered .btn i {
  margin-right: 7px;
  position: relative;
  top: 1px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.language-selector-centered .btn:hover i {
  transform: scale(1.2) rotate(15deg);
}

/* État actif avancé pour la langue sélectionnée */
.language-selector-centered .btn.active {
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 
    0 5px 15px rgba(26, 41, 128, 0.25),
    0 2px 5px rgba(26, 41, 128, 0.15),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  letter-spacing: 0.8px;
}

.language-selector-centered .btn.active i {
  animation: scaling-subtle 2s infinite ease-in-out;
}

.language-selector-centered .btn.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 50%);
  z-index: -1;
  border-radius: inherit;
}

/* Effet de clic */
.language-selector-centered .btn.clicked {
  transform: scale(0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ============= FORMULAIRE DE LOGIN ULTRA PREMIUM ============= */
/* Animation améliorée pour les groupes de formulaire */
.form-group {
  margin-bottom: 24px;
  position: relative;
  animation: fade-in-up 0.5s cubic-bezier(0.19, 1, 0.22, 1) both;
  transform-origin: center left;
}

.form-group:nth-child(1) { animation-delay: 0.3s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.5s; }
.form-group:nth-child(4) { animation-delay: 0.6s; }

/* Conteneurs avec icône améliorés */
.input-with-icon {
  position: relative;
}

/* Animation avancée pour les icônes */
.input-with-icon .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #1a2980;
  font-size: 18px;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Champs de formulaire premium */
.form-control {
  height: 58px;
  border-radius: 16px;
  border: 1px solid #e1e8f0;
  padding: 10px 16px 10px 48px;
  font-size: 15px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: #f8fafc;
  width: 100%;
  font-weight: 400;
  color: #2d3748;
  letter-spacing: 0.2px;
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

/* Effet de focus avancé */
.form-control:focus {
  border-color: #1a2980;
  box-shadow: 
    0 0 0 3px rgba(26, 41, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background-color: #fff;
  transform: translateY(-2px);
  outline: none;
  animation: border-glow 2s infinite ease-in-out;
}

.form-control:focus + .icon {
  color: #26d0ce;
  transform: translateY(-50%) scale(1.2);
  filter: drop-shadow(0 2px 5px rgba(38, 208, 206, 0.3));
}

/* Effet de vague au focus */
.form-control::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(38, 208, 206, 0.2), transparent 70%);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

.form-control:focus::after {
  transform: scale(10);
  opacity: 1;
}

/* Bouton visualisation mot de passe amélioré */
.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #8896ab;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
  background: rgba(248, 250, 252, 0.8);
  padding: 5px;
  border-radius: 50%;
  font-size: 14px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-password:hover {
  color: #1a2980;
  transform: translateY(-50%) scale(1.15);
  background: rgba(236, 242, 248, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Effet de click */
.toggle-password:active {
  transform: translateY(-50%) scale(0.9);
}

/* ============= CHECKBOX PREMIUM ============= */
.custom-checkbox {
  display: flex;
  align-items: center;
  position: relative;
}

.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid #d1d7e0;
  border-radius: 8px;
  outline: none;
  margin-right: 10px;
  position: relative;
  cursor: pointer;
  background-color: #f9fafc;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    inset 0 1px 3px rgba(0, 0, 0, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

.custom-checkbox input[type="checkbox"]:checked {
  background-color: #1a2980;
  border-color: #1a2980;
  animation: pulse-subtle 0.5s;
  box-shadow: 0 0 0 1px rgba(26, 41, 128, 0.2);
}

.custom-checkbox input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Effet de ripple */
.custom-checkbox input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(26, 41, 128, 0.3);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}

.custom-checkbox input[type="checkbox"]:checked::after {
  animation: ripple 0.5s ease-out;
}

.custom-checkbox input[type="checkbox"]:hover {
  border-color: #1a2980;
  background-color: rgba(26, 41, 128, 0.05);
  transform: scale(1.05);
}

.custom-checkbox label {
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  position: relative;
}

.custom-checkbox input[type="checkbox"]:checked + label {
  color: #1a2980;
  font-weight: 500;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* ============= BOUTON DE CONNEXION ULTRA PREMIUM ============= */
.btn-primary {
  height: 58px;
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 5px 15px rgba(26, 41, 128, 0.2),
    0 3px 5px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: fade-in-up 0.6s 0.7s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.btn-primary .btn-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-primary .btn-text i {
  margin-left: 8px;
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Effet de survol avancé */
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 25px rgba(26, 41, 128, 0.25),
    0 5px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background-image: linear-gradient(135deg, #102279 0%, #26d0ce 100%);
  letter-spacing: 0.8px;
  animation: border-glow 2s infinite ease-in-out;
}

.btn-primary:hover .btn-text i {
  transform: translateX(6px);
  animation: scaling-subtle 1s infinite ease-in-out;
}

/* Effet de lumière interne */
.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease-out;
}

.btn-primary:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Effet brillant amélioré */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0), 
      rgba(255, 255, 255, 0.3), 
      rgba(255, 255, 255, 0));
  background-size: 200% 100%;
  animation: shine-sweep 3s infinite linear;
  z-index: 0;
}

/* Effet de clic */
.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 
    0 3px 10px rgba(26, 41, 128, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

/* États de chargement avec animations avancées */
.btn-primary .btn-loader {
  position: absolute;
  display: none;
  color: white;
}

.btn-primary.loading {
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 150%);
  animation: gradient-wave 2s ease infinite;
  background-size: 200% 100%;
}

.btn-primary.loading .btn-text {
  animation: text-blur-out 0.5s forwards;
}

.btn-primary.loading .btn-loader {
  display: block;
  animation: text-blur-in 0.5s forwards, spin 1s linear infinite;
}

/* ============= ALERTE D'ERREUR PREMIUM ============= */
.alert {
  padding: 18px;
  border-radius: 16px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  animation: fade-in-up 0.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.05),
    0 2px 5px rgba(0, 0, 0, 0.05);
  border: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.08);
  color: #e74c3c;
  border-left: 4px solid #e74c3c;
}

.alert-danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(231, 76, 60, 0.08), rgba(231, 76, 60, 0.03));
  animation: gradient-wave 3s ease infinite;
  background-size: 200% 100%;
  z-index: -1;
}

.alert i {
  margin-right: 12px;
  font-size: 16px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.15);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(231, 76, 60, 0.2);
  animation: pulse-subtle 2s infinite;
}

/* ============= BADGE DE SÉCURITÉ ÉLÉGANT AMÉLIORÉ ============= */
.secure-login {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: #64748b;
  font-size: 13px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.12));
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 2px 5px rgba(0, 0, 0, 0.03),
    0 1px 3px rgba(0, 0, 0, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in-up 0.6s 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
  position: relative;
  overflow: hidden;
}

.secure-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
      rgba(255, 255, 255, 0), 
      rgba(255, 255, 255, 0.2), 
      rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  animation: shine-sweep 6s infinite linear;
}

.secure-login:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.18));
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 5px 15px rgba(16, 185, 129, 0.15),
    0 2px 5px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #10b981;
}

.secure-login i {
  color: #10b981;
  margin-right: 8px;
  font-size: 14px;
  animation: scaling-subtle 3s infinite ease-in-out;
  filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.2));
}

.secure-login:hover i {
  animation: pulse-rainbow 2s infinite;
}

/* ============= COPYRIGHT AVEC ANIMATION SUBTILE ============= */
.copyright {
  text-align: center;
  margin-top: auto;
  color: #64748b;
  font-size: 13px;
  padding-top: 20px;
  animation: fade-in-up 0.6s 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
  position: relative;
  transition: all 0.3s ease;
}

.copyright::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #64748b, transparent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.copyright:hover {
  color: #475569;
}

.copyright:hover::after {
  width: 80px;
}

/* ============= EFFETS RESPONSIFS ============= */
/* Adaptations pour différentes tailles d'écran */
@media (max-width: 768px) {
  .login-container {
    transform-origin: center;
  }

  .form-panel {
    padding: 40px 25px;
  }
  
  .vm-logo {
    max-width: 170px;
  }
  
  .form-control {
    height: 54px;
  }
  
  .btn-primary {
    height: 54px;
  }
}

@media (max-width: 480px) {
  .form-panel {
    padding: 35px 20px;
  }
  
  .vm-logo {
    max-width: 150px;
  }
  
  .form-control {
    height: 52px;
  }
  
  .btn-primary {
    height: 52px;
  }
}

/* Effet de secouement pour validation du formulaire */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* ============= SUPPORT PREFERS-REDUCED-MOTION ============= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .login-container,
  .vm-logo,
  .small-logo,
  .feature-item,
  .language-selector-centered .btn-group,
  .btn-primary {
    animation: none !important;
    transition: none !important;
  }
}

/* ============= PATCH POUR RESPECTER LA COHÉRENCE DES NOMS DE CLASSES DE BOOTSTRAP ============= */
/* Ces règles assurent la compatibilité avec les classes bootstrap existantes */
.btn-primary.active {
  background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 
    0 4px 15px rgba(26, 41, 128, 0.25),
    0 1px 3px rgba(26, 41, 128, 0.1);
}

.btn-outline-primary {
  background: transparent;
  color: #4a5568;
  border: 1px solid #e1e8f0;
}

.btn-outline-primary:hover {
  border-color: #1a2980;
  color: #1a2980;
  background-color: rgba(26, 41, 128, 0.05);
}

.form-panel .login-form {
  animation: fade-in-up 0.6s 0.3s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* Animation d'entrée de page plus lente pour permettre l'entrelacement des animations */
.login-page {
  animation: fade-in-up 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

/* Adaptation pour Safari */
@supports (-webkit-touch-callout: none) {
  .form-control, .btn-primary, .language-selector-centered .btn {
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
  }
}