/* styles.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #fff;
  font-size: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  backdrop-filter: blur(3px);
  background-image: url("0.jpg"); /* Ajoutez un fond d'écran Warhammer ici */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  /*animation: backgroundPulse 30s infinite ease-in-out;*/
}

@keyframes backgroundPulse {
  0% {
    background-position: center;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: center;
  }
}

.background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(
    0,
    0,
    0,
    0.5
  ); /* Ombre pour assombrir légèrement l'arrière-plan */
  z-index: -1;
}

/* Animation de fade-in pour la page */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 20px;
  animation: fadeIn 1.5s ease-out;
}

.container2 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  max-width: 600px;
  margin: 0 20px;
  animation: fadeIn 1.5s ease-out;
}

.login-card {
  background-color: rgba(20, 20, 20, 0.85);
  border: 3px solid #fcbf49;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  max-width: 100%;
  text-align: center;
  position: relative;
  animation: fadeIn 1.5s ease-out;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.login-card:hover {
  transform: scale(1);
}

/* Ajouter des détails graphiques de Warhammer (p.ex. un effet métallique de fond) */
.login-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("290118.jpg");
  background-size: cover;
  opacity: 0.4;
  z-index: -1;
}

/* Effet de lumière pulsée derrière le formulaire */
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 194, 49, 0.4), transparent);
  animation: pulseLight 2s infinite ease-in-out;
  z-index: -1;
}

@keyframes pulseLight {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* Titres avec effets métalliques */
.title {
  color: #fcbf49;
  font-size: 34px;
  margin-bottom: 30px;
  font-family: "Impact", sans-serif;
  text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9), 0 0 10px #fcbf49;
  animation: fadeIn 1s ease-out;
}

.logo {
  font-size: 40px;
  color: #ffcc00;
  display: inline-block;
  margin-right: 10px;
  animation: logoPulse 1s infinite ease-in-out;
}

@keyframes logoPulse {
  0% {
    color: #fcbf49;
    transform: rotate(0deg);
  }
  50% {
    color: #ffcc00;
    transform: rotate(10deg);
  }
  100% {
    color: #fcbf49;
    transform: rotate(0deg);
  }
}

/* Formulaire stylisé */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 1s ease-out;
}

input {
  background-color: #222;
  border: 2px solid #444;
  color: #fff;
  margin-bottom: 15px;
  padding: 15px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6);
}

/* Effet de focus avec lumière dorée */
input:focus {
  border-color: #fcbf49;
  outline: none;
  box-shadow: 0 0 10px #fcbf49;
}

.submit-btn {
  background-color: #fcbf49;
  color: #222;
  padding: 15px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Ombre discrète de base */
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Animation du halo lumineux avec rotation */
.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(
    45deg,
    rgba(255, 0, 0, 0.5),
    rgba(0, 0, 255, 0.5),
    rgba(0, 255, 0, 0.5),
    rgba(255, 255, 0, 0.5)
  );
  background-size: 200% 200%;
  animation: rotateHalo 3s infinite linear; /* Rotation continue des couleurs */
  opacity: 0.5; /* Opacité réduite pour plus de discrétion */
  z-index: -1;
}

/* L'animation de rotation du halo lumineux autour du bouton */
@keyframes rotateHalo {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Effet de survol : légère intensification du halo */
.submit-btn:hover {
  background-color: #ffbe0b;
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.6); /* Ombre légèrement plus marquée au survol */
}

/* Effet de focus avec halo discret */
.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Style de base du lien */
.message a {
  color: #fcbf49;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Animation sur le lien au survol */
.message a:hover {
  color: #ffbe0b; /* Changement de couleur */
  transform: scale(1.1); /* Agrandissement léger du lien */
}

/* Effet de soulignement animé */
.message a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ffbe0b;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

/* Animation du soulignement lors du survol */
.message a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
