/* ========== login.css - Quiz ACF SRD ========== */
/* Styles pour l'écran de connexion */
.login-screen {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('https://img-thumb.mailinblue.com/3021626/images/content_library/original/69933ba0184da62ce16759e6.jpeg');
  background-size: cover;
  background-position: center;
  margin: 0;
  border-radius: 24px;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
}

.config-section {
  background: rgba(255, 255, 255, 0.6);
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
  border: 2px dashed var(--primary);
  backdrop-filter: blur(5px);
}

.config-title {
  font-size: 0.85em;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cert-badge-hint {
  background: var(--gold);
  color: white;
  font-size: 0.7em;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-screen h2 {
  color: var(--primary);
  margin-bottom: 10px;
}

.login-screen p {
  color: var(--dark);
  margin-bottom: 15px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 350px;
  margin: 0 auto;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.login-form label {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 5px;
}

.login-form input,
.login-form select {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.login-form input:focus,
.login-form select:focus {
  outline: none;
  border-color: var(--primary);
}

.login-form button {
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 1.1em;
}

.user-info-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.user-info-banner .user-name {
  font-weight: bold;
}

.user-info-banner .logout-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 5px 12px;
  font-size: 0.85em;
  margin-top: 0;
  border-radius: 15px;
}

.user-info-banner .logout-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Leaderboard */
.leaderboard {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed #eee;
}

.leaderboard h3 {
  color: var(--primary);
  font-size: 1.2em;
  margin-bottom: 15px;
}

.leaderboard-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.leaderboard-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  margin-bottom: 5px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  font-size: 0.9em;
}

.leaderboard-item.top-1 {
  background: linear-gradient(90deg, #fff7e6, #fff);
  border-left: 4px solid var(--gold);
}

.leaderboard-rank {
  font-weight: bold;
  width: 25px;
}

.leaderboard-name {
  flex: 1;
  margin: 0 10px;
}

.leaderboard-percentage {
  font-weight: bold;
  color: var(--primary);
}
