/* ===== STYLES ADDITIONNELS POUR L'AUTHENTIFICATION ===== */

/* Boutons de téléchargement avec états */
.download-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.download-btn:not(:disabled) {
  transform: translateY(0);
}

.download-btn:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(108, 240, 194, 0.25);
}

.download-btn:disabled {
  transform: none !important;
  box-shadow: none !important;
}

/* Animation pour le changement de texte */
.download-text,
.login-text {
  transition: opacity 0.3s ease;
}

/* État des boutons non connectés */
.download-btn.not-authenticated {
  background: linear-gradient(135deg, #71717a, #52525b) !important;
  color: #d4d4d8 !important;
  cursor: pointer !important;
}

.download-btn.not-authenticated:hover {
  background: linear-gradient(135deg, #52525b, #3f3f46) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Messages d'état */
.status-message {
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Icône de verrouillage dans les boutons */
.download-btn .login-text::before {
  content: '??';
  margin-right: 8px;
}

/* Effet de survol pour les messages */
.status-message:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* Responsivité pour les messages */
@media (max-width: 768px) {
  .status-message .flex {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .status-message .w-12 {
    align-self: center;
  }
}

/* Animation des notifications toast */
.notification-toast {
  animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Amélioration de l'accessibilité */
.download-btn:focus {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

/* État de chargement pour les boutons */
.download-btn.loading {
  position: relative;
  color: transparent !important;
}

.download-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}