﻿/* 🌌 Fond animé */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background: linear-gradient(-45deg, #3251b6, #653ba8, #0f3460, #533483);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
}

/* Animation du fond */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 📦 Conteneur type carte en verre */
.container {
  text-align: center;
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease;
  max-width: 400px;
  width: 90%;
}

/* Titre principal */
h1, h2 {
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}


/* 🖊️ Champ mot de passe */
input {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  outline: none;
  margin-top: 10px;
  width: 80%;
  font-size: 16px;
  transition: 0.3s;
}

input:focus {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 10px rgba(59,130,246,0.7);
}

/* 🔘 Boutons modernes */
button {
  margin-top: 20px;
  padding: 12px 30px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: 0.4s;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(59,130,246,0.4);
}

button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 25px rgba(147,51,234,0.6);
}

/* Message d’erreur ou succès */
#message {
  margin-top: 15px;
  font-weight: bold;
  color: #f87171;
}

/* Loader circulaire */
.loader {
  margin: 20px auto 0;
  border: 6px solid rgba(255,255,255,0.2);
  border-top: 6px solid #3b82f6;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 1000px) {
    h1, h2 {
  margin-bottom: 90px;
  font-weight: 700;
  font-size: 60px;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.container {
  text-align: center;
  padding: 170px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1.2s ease;
  max-width: 450px;
  width: 90%;
}
p{
    font-size: 40px;
}
button {
  margin-top: 20px;
  padding: 12px 30px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #9333ea);
  color: white;
  font-size: 35px;
  cursor: pointer;
  transition: 0.4s;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(59,130,246,0.4);
}

button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 25px rgba(147,51,234,0.6);
}
input {
  padding: 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  outline: none;
  margin-top: 10px;
  width: 80%;
  font-size: 35px;
  transition: 0.3s;
}

input:focus {
  border: 2px solid #3b82f6;
  box-shadow: 0 0 10px rgba(59,130,246,0.7);
}
}