/*
Auteur : Léon
Date : 11.12.2025
*/

body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #ece9e6, #ffffff);
}

.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.register-box {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  width: 380px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.6s ease-out;
}

.logo {
  width: 80px;
  display: block;
  margin: 0 auto 15px auto;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  border: 1px solid #bbb;
  font-size: 15px;
  transition: 0.2s;
}

input:focus {
  border-color: #000;
}

.error {
  color: #d00000;
  font-size: 13px;
  margin: 0 0 10px 0;
  height: 14px;
}

/* Barre de force du mot de passe */
.strength-bar {
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.strength-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: 0.3s;
}

button {
  width: 100%;
  padding: 12px;
  background: #111;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  background: #333;
  transform: translateY(-2px);
}

.login-text {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.login-text a {
  color: #000;
  font-weight: bold;
}

footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 1.2rem;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
