* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 400px;
  padding: 44px 36px;
  text-align: center;
}

/* ── Icône ── */
.icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

/* ── Titre ── */
h1 {
  font-size: 22px;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Champ de saisie ── */
.field {
  margin-bottom: 20px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
  margin-bottom: 8px;
}

.field input {
  width: 100%;
  padding: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  text-transform: uppercase;
  color: #1a1a2e;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.12);
}

/* ── Bouton ── */
.btn-valider {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}

.btn-valider:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-valider:active {
  transform: translateY(0);
}

/* ── Message d'erreur ── */
.erreur {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff5f5;
  border: 1.5px solid #f5c2c2;
  border-radius: 10px;
  color: #c94040;
  font-size: 14px;
  line-height: 1.5;
  padding: 14px 16px;
  margin-bottom: 20px;
  text-align: left;
}

.erreur-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.erreur-lien {
  margin-top: 8px;
}

.erreur-lien a {
  color: #764ba2;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
}

.erreur-lien a:hover {
  text-decoration: underline;
}
