* { box-sizing: border-box; }

body.login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ea580c 0%, #fb923c 40%, #9ca3af 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  overflow: hidden;
  position: relative;
  padding: 20px;
}

/* Numéros flottants flous en fond */
.bg-numbers {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.bg-numbers span { pointer-events: auto; cursor: default; }

.bg-numbers span {
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.22);
  filter: blur(4px);
  user-select: none;
  line-height: 0.9;
  white-space: nowrap;
  will-change: transform;
  --push-x: 0px;
  --push-y: 0px;
  animation: floatNum 30s ease-in-out infinite;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
  transition: transform 1.8s cubic-bezier(.22,.61,.36,1);
}

/* Au survol : l'animation continue + le compteur s'incrémente.
   Plus de freeze de position → plus de saut quand la souris quitte. */
.bg-numbers span:hover {
  will-change: contents;  /* hint GPU pour le rafraîchissement du texte */
}

.bg-numbers span:nth-child(1)  { top: 4%;   left: 2%;   font-size: 160px; animation-duration: 28s; animation-delay: 0s;   }
.bg-numbers span:nth-child(2)  { top: 38%;  left: 68%;  font-size: 140px; animation-duration: 34s; animation-delay: -6s;  }
.bg-numbers span:nth-child(3)  { top: 62%;  left: 6%;   font-size: 130px; animation-duration: 30s; animation-delay: -14s; }
.bg-numbers span:nth-child(4)  { top: -4%;  left: 40%;  font-size: 170px; animation-duration: 38s; animation-delay: -3s;  }
.bg-numbers span:nth-child(5)  { top: 72%;  left: 55%;  font-size: 120px; animation-duration: 26s; animation-delay: -18s; }
.bg-numbers span:nth-child(6)  { top: 14%;  left: 32%;  font-size: 150px; animation-duration: 40s; animation-delay: -22s; }
.bg-numbers span:nth-child(7)  { top: 82%;  left: 72%;  font-size: 110px; animation-duration: 32s; animation-delay: -9s;  }
.bg-numbers span:nth-child(8)  { top: 26%;  left: -4%;  font-size: 140px; animation-duration: 36s; animation-delay: -12s; }
.bg-numbers span:nth-child(9)  { top: 50%;  left: 38%;  font-size: 130px; animation-duration: 31s; animation-delay: -17s; }
.bg-numbers span:nth-child(10) { top: 88%;  left: 24%;  font-size: 120px; animation-duration: 29s; animation-delay: -4s;  }
.bg-numbers span:nth-child(11) { top: 8%;   left: 74%;  font-size: 150px; animation-duration: 37s; animation-delay: -21s; }
.bg-numbers span:nth-child(12) { top: 55%;  left: 84%;  font-size: 120px; animation-duration: 33s; animation-delay: -7s;  }

@keyframes floatNum {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(60px, -40px) rotate(5deg); }
  50%  { transform: translate(-40px, 70px) rotate(-4deg); }
  75%  { transform: translate(50px, 30px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Boîte login — minimale, centrée */
.login-card {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 36px 36px 30px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  width: 340px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.login-card.shake { animation: shake 0.5s ease-in-out; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.login-card h1 {
  margin: 0 0 22px 0;
  font-size: 22px;
  font-weight: 700;
  color: #ea580c;
  text-align: center;
  letter-spacing: -0.3px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-card label {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.login-card input {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: rgba(0, 0, 0, 0.82);
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}

.login-card input:focus {
  outline: none;
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

.login-card button {
  font: inherit;
  margin-top: 8px;
  padding: 12px;
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  line-height: 1;
}

.login-card button:hover { background: #c2410c; }
.login-card button:active { transform: scale(0.98); }

.login-footer {
  margin-top: 20px;
  text-align: center;
  line-height: 1.6;
}
.login-footer .version {
  font-size: 12px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.5px;
}
.login-footer .copyright {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 0.2px;
}
