/* Container */
.container {
  padding: 50px 15px;
  max-width: 768px;
  margin: 0 auto;
}

/* Titres */
.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  color: #1e1c70;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation-delay: 0.2s;
  text-align: center;
}

/* Form group général */
.form-group {
  margin-bottom: 20px;
  align-items: center; /* Alignement vertical des éléments */
}

/* Champs de saisie avec icônes */
.input-icon {
  position: relative;
}

.input-icon input {
  width: 100%;  /* Remet les champs à 100% de largeur */
  padding: 12px;
  padding-right: 40px; /* Ajoute de l'espace à droite pour l'icône */
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #333;
  transition: border-color 0.3s ease;
}

.input-icon .input-icon-right {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #1e1c70;
  font-size: 1.2rem;
}

.input-icon input:focus {
  border-color: #1e1c70;
  outline: none;
}

/* Bouton de connexion */
.submit-btn {
  background-color: #1e1c70;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.submit-btn:hover {
  background-color: #3635b4;
}

/* Lien mot de passe oublié */
.forgot-password {
  text-align: center;
  color: #1e1c70;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

/* Phrase pour créer un compte */
.no-account-text {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}

.no-account-text .btn-link {
  color: #1e1c70;
  font-size: 0.9rem;
  text-decoration: none;
}

.no-account-text .btn-link:hover {
  color: #3635b4;
  text-decoration: underline;
}

/* Message d'erreur de connexion */
.login-error {
  font-weight: 500;
  color: rgb(238, 50, 50);
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(238, 50, 50, 0.1), 0 0 5px rgba(238, 50, 50, 0.1);
  text-align: center;
  margin-top: 10px;
}

.contact-info {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #fff;
  background: linear-gradient(135deg, #1e1c70, #577ded);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  animation-delay: 0.3s;
}

.contact-info p {
  line-height: 1.6;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
  font-weight: bold;
}

/* Grille propre et simple pour les infos du compte */
.account-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colonnes égales */
  gap: 20px;
  margin-top: 1rem;
  padding: 0 10px;
}

/* Suppression du design box: pas de fond, pas d'ombre, pas de bord arrondi */
.info-block {
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
}

/* Titres bleu foncé, alignés à gauche */
.info-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e1c70;
  text-align: center;
}

/* Paragraphe texte aligné à gauche */
.info-block p {
  font-size: 1rem;
  color: #111;
  margin: 0;
  word-break: break-word;
  text-align: center;
}

.info-title > button.btn-edit-email {
  background: transparent;
  border: none;
  color: #1e1c70;
  font-size: 1.2rem; /* un peu plus grand pour l’icône */
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease-in-out;
  line-height: 1;
}

.info-title > button.btn-edit-email:hover {
  color: #121144;
}

/* Optionnel, éviter que le bouton ne prenne trop de place */
.info-title > button.btn-edit-email i {
  pointer-events: none; /* pour que le clic soit bien sur le bouton */
}

/* Centrage */
.text-center {
  text-align: center;
}

/* Bouton déconnexion */
.submit-btn {
  background-color: #1e1c70;
  color: white;
  padding: 10px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: auto;
  min-width: 160px;
}

.submit-btn:hover {
  background-color: #15144d;
}

/* Responsive: 1 colonne sur petit écran */
@media (max-width: 768px) {
  .account-info-grid {
    grid-template-columns: 1fr;
  }
}
