div {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #dddada;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}
a {
    text-decoration: none; /* Supprime le soulignement */
    color: #ffffff; /* Couleur par défaut des liens */
}
a:visited {
    color: #ffffff; /* Même couleur que l'état normal */
}
section{
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #fffefe;
    border-radius: 8px;
    background-color: #f8f6f6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}
.frame{
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrer horizontalement */
    align-items: center;    /* Centrer verticalement */
}
.index {
    display: flex;
    flex-direction: column;
    max-width: 300px;
}
.connect{
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 15px;
    text-decoration: none;
    border: none;
    color: white;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    background-color: #14336a;
}
.logo{
    width: 200px;
    height: 300px;
    margin-right: 10px;
}
h2 {
    text-align: center;
    font-size: 24px;
    color: #232323;
    margin-bottom: 20px;
}

.alert {
    color: #d9534f;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}
.input-container {
    position: relative;
    margin-bottom: 15px;
}

.input-container input {
    width: 100%;
    padding: 10px 15px 10px 40px; /* Espace pour l'icône */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-container i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

/* Focus sur les champs */
.input-container input:focus {
    border-color: #14336a;
    outline: none;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.25);
}

/* Changement de couleur sur focus */
.input-container input:focus + i {
    color: #14336a;
}

/* Bouton de soumission */
button[type="submit"] {
    width: 100%;
    padding: 10px 15px;
    background-color: #14336a;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Effet hover sur le bouton */
button[type="submit"]:hover {
    background-color: #14336a;
    transform: scale(1.02); /* Légère mise en avant */
}

/* Effet actif */
button[type="submit"]:active {
    transform: scale(0.98); /* Effet de clic */
}

/* Formulaire responsive */
@media (max-width: 768px) {
    div {
        margin: 20px;
        padding: 15px;
    }
}
/* style2.css */

/* 1. Reset & box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. Wrapper Flexbox centré */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: #f5f5f5;
}

/* 3. Boîte du formulaire */
.login-box {
  width: 100%;
  max-width: 400px;        /* ne pas dépasser 400px */
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 4. Titres & alertes */
.login-box h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
}
.login-box .alert {
  background: #ffe6e6;
  color: #a00;
  padding: .75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

/* 5. Inputs & icônes */
.input-container {
  position: relative;
  margin-bottom: 1.25rem;
}
.input-container input {
  width: 100%;
  padding: .75rem 2.5rem .75rem .75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.input-container i {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

/* 6. Bouton */
.btn {
  display: block;
  width: 100%;
  padding: .75rem;
  font-size: 1rem;
  background: #14336a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.btn:hover {
  background: #0069d9;
}

/* 7. Media queries (breakpoints) */
/* Smartphones portrait < 576px */
@media (max-width: 575.98px) {
  .login-box {
    padding: 1.5rem;
  }
  .login-box h2 {
    font-size: 1.5rem;
  }
}

/* Smartphones paysage / petites tablettes 576px–767px */
@media (min-width: 576px) and (max-width: 767.98px) {
  .login-box {
    padding: 1.75rem;
  }
}

/* Tablettes paysage & desktop ≥ 768px : on peut élargir un peu */
@media (min-width: 768px) {
  .login-box {
    max-width: 450px;
  }
}

