/* ===== WRAPPER ===== */
.quiz-auth-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 60px auto;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30,41,59,0.7), rgba(15,23,42,0.7));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  font-family: 'Outfit', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
}

/* ===== FORM ===== */
.quiz-auth-form {
  display: none;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.3s ease;
}

.quiz-auth-form.active {
  display: flex;
}

.quiz-auth-form h2 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
}

/* ===== INPUTS ===== */
.quiz-auth-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #ffffff;
  font-size: 15px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.quiz-auth-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.quiz-auth-form input:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #fab81c, #f97717);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(249,119,23,0.25);
}

/* ===== SWITCH LINKS ===== */
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.auth-switch span {
  color: #f97717;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.auth-switch span:hover {
  opacity: 0.7;
}

/* ===== LINKS ===== */
.quiz-auth-form a {
  font-size: 14px;
  color: #60a5fa;
  text-decoration: none;
}

.quiz-auth-form a:hover {
  text-decoration: underline;
}

/* ===== MESSAGES ===== */
.quiz-form-message {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  min-height: 18px;
  color: #f87171; /* rouge clair */
}

.quiz-form-message.success {
  color: #34d399; /* vert clair */
}

/* ===== LOGGED STATE ===== */
.quiz-auth-logged {
  width: 100%;
  max-width: 420px;
  margin: 60px auto;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(30,41,59,0.7), rgba(15,23,42,0.7));
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  text-align: center;
  color: #ffffff;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .quiz-auth-wrapper,
  .quiz-auth-logged {
    margin: 30px 20px;
    padding: 24px 20px;
  }
}