@font-face {
  font-family: "Pirata One";
  src: url("fonts/PirataOne.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "Amarante";
  src: url("fonts/Amarante-Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "28DaysLater";
  src: url("fonts/28dayslater.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Pirata One", cursive;
  color: rgb(0, 0, 0);
  overflow: hidden;
}

.login-container {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 400px;
  text-align: center;
  border: 2px solid #a7853e;
}

.login-container h2 {
  font-family: "Pirata One", cursive;
  font-size: 36px;
  margin-bottom: 20px;
  color: #a7853e;
  text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.2);
}

input {
  width: 80%;
  padding: 12px 15px;
  margin: 12px 0;
  border: 1px solid #a7853e;
  border-radius: 6px;
  background-color: #222;
  color: white;
  font-size: 16px;
  font-family: "Amarante", cursive;
}

input::placeholder {
  color: #aaa;
}

input:focus {
  border-color: #f0c674;
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #a7853e;
  color: black;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-family: "Pirata One", cursive;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #caa956;
}

.error {
  color: #ff4f4f;
  margin-top: 15px;
  font-size: 0.9em;
  font-family: "Amarante", cursive;
}

/* Petite animation à l'ouverture */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  animation: fadeIn 0.8s ease-in-out;
}
