/* ----- GLOBAL ----- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: radial-gradient(circle at top left, #1a103d, #0b061b 80%);
  color: #f2f2f5;
  overflow-x: hidden;
}

header {
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  color: white;
  padding: 25px 0;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 1px;
}

/* ----- MAIN CONTAINER ----- */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 20px;
}

/* ----- BOX FORMULAIRE / LOGOUT ----- */
.container, .logout-box {
  background: rgba(255,255,255,0.07);
  border-radius: 25px;
  padding: 45px 35px;
  width: 95%;
  max-width: 480px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
  animation: fadeInUp 0.7s ease-in-out;
}

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

h2 {
  color: #d47bff;
  margin-bottom: 30px;
  font-size: 28px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* ----- CHAMPS FORMULAIRE ----- */
.champ {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #c7b7ff;
}

input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #3a1f60;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 16px;
  transition: all 0.35s ease;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

input:focus {
  outline: none;
  border-color: #a259ff;
  box-shadow: 0 0 12px #a259ff70, inset 0 2px 5px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.12);
}

/* ----- BOUTONS ----- */
button, .btn-link, .btn-logout-confirm, .btn-logout-cancel {
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: 0.35s ease;
  border: none;
  min-width: 120px;
  margin: 5px 0;
}

button, .btn-logout-confirm {
  background: linear-gradient(135deg, #9b4dff, #d47bff);
  color: #fff;
  box-shadow: 0 5px 15px rgba(155,77,255,0.45);
}

button:hover, .btn-logout-confirm:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 25px rgba(155,77,255,0.55);
}

.btn-link, .btn-logout-cancel {
  background: rgba(255,255,255,0.12);
  color: #e2d9ff;
  border: 1px solid #6b4bb8;
  text-decoration: none;
  display: inline-block;
}

.btn-link:hover, .btn-logout-cancel:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.08) translateY(-2px);
}

/* ----- LOGOUT SPÉCIFIQUE ----- */
.logout-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}

.logout-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- FOOTER ----- */
footer {
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  color: #eaeaea;
  text-align: center;
  padding: 18px;
  font-size: 14px;
  margin-top: auto;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.3);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 700px) {
  .container, .logout-box { padding: 30px 20px; }
  .logout-buttons { flex-direction: column; gap: 12px; }
  h2 { font-size: 24px; }
  input { font-size: 15px; }
}
