/* =============================== */
/* Réinitialisation et configuration globale */
/* =============================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
}

/* =============================== */
/* Conteneur principal */
/* =============================== */
.container {
  display: flex;
  min-height: 100vh;
}

/* =============================== */
/* Section de connexion */
/* =============================== */
.login-form {
  width: 380px;
  padding: 40px;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Logo */
.logo {
  text-align: center;
  margin-bottom: 30px;
}
.logo img {
  width: 150px;
}

/* En-tête du formulaire */
.form-header {
  text-align: center;
  margin-bottom: 25px;
}
.form-header h2 {
  font-size: 20px;
  color: #232884;
  margin: 0 0 10px;
}

/* =============================== */
/* Identifiant */
/* =============================== */
.identifier-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}

.identifier-group .digit {
  width: 20px;
  height: 30px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  font-size: 16px;
  line-height: 30px;
  transition: border-color 0.2s;
}

.identifier-group .digit.filled {
  color: #000;
  font-weight: bold;
  border-color: #232884;
}

/* =============================== */
/* Case à cocher "Mémoriser" */
/* =============================== */
.remember-identifier-group {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}
.remember-identifier-group input[type="checkbox"] {
  margin-right: 8px;
}
.remember-identifier-group label {
  font-size: 13px;
  color: #555;
}

/* =============================== */
/* Code personnel */
/* =============================== */
.code-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.code-group .circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid gray;
  background-color: transparent;
  transition: background-color 0.3s;
}

.filled-circle {
  background-color: #232884 !important;
}

/* =============================== */
/* Pavé numérique */
/* =============================== */
.numpad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  justify-content: center;
  margin: 20px auto;
  max-width: 220px;
}

.numpad button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  background-color: #f0f2ff;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.numpad button:hover {
  background-color: #dce1ff;
}

.numpad button:active {
  background-color: #1f368b;
  color: #fff;
}

/* Bouton supprimer */
.pad-reset.delete {
  background-color: #e0e0e0;
  color: black;
  font-size: 15px;
}

/* =============================== */
/* Bouton de validation */
/* =============================== */
.continue-btn {
  background-color: #a5a5a5;
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 20px;

.continue-btn:hover {
  background-color: #1a2e7a;
}
  transition: background-color 0.3s;
}
.continue-btn:hover {
  background-color: #1a2e7a;
}

/* =============================== */
/* Message d'erreur */
/* =============================== */
.error-message {
  color: #c00;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  display: none;
}

/* =============================== */
/* Liens d'aide */
/* =============================== */
.help-links {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}
.help-links .link {
  color: #1f368b;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

/* =============================== */
/* Section "Pas encore client" */
/* =============================== */
.become-customer {
  margin-top: 30px;
  text-align: center;
}
.become-customer h2 {
  font-size: 16px;
  color: #232884;
  margin-bottom: 10px;
}
.open-account-btn {
  display: inline-block;
  background-color: #3b51d5;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}
.open-account-btn:hover {
  background-color: #1a2e7a;
}

/* =============================== */
/* Section latérale */
/* =============================== */
.aside {
  flex: 1;
  background: url('login-page-background.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
}

/* Bloc conseils sécurité */
.carousel-content {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 8px;
  max-width: 340px;
}
.carousel-content h2 {
  font-size: 18px;
  color: #1f368b;
  margin: 0 0 10px;
}
.carousel-content p {
  font-size: 14px;
  color: #333;
  margin: 0 0 10px;
}
.carousel-content .link {
  font-size: 14px;
  color: #1f368b;
  text-decoration: none;
}

/* =============================== */
/* États actifs (saisie) */
/* =============================== */
.identifier-group.active,
.code-group.active {
  outline: 2px solid rgba(31, 54, 139, 0.1);
  border-radius: 6px;
  padding: 4px;
}
