body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 400px; /* Augmenté pour plus d'espace horizontal */
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%; /* Pleine largeur pour inclure l'icône */
    padding: 8px 40px 8px 8px; /* Padding à droite pour l'icône */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    line-height: 1.5; /* Assure une hauteur de ligne cohérente */
}

.password-container {
    position: relative;
    display: flex;
    align-items: center; /* Centre verticalement les éléments à l'intérieur */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* Centre l'icône verticalement */
    cursor: pointer;
    user-select: none;
    color: #999; /* Couleur grise pour l'icône */
    font-size: 16px; /* Taille ajustée pour Font Awesome */
    line-height: 1; /* Évite tout décalage vertical dû à la ligne */
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.code-container {
    text-align: center; /* Centre le conteneur des cases */
}

.code-inputs {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 10px; /* Espacement entre les cases */
    flex-wrap: nowrap !important; /* Empêche le retour à la ligne */
    min-width: 300px; /* Largeur minimale pour forcer l'alignement horizontal */
    margin: 0 auto; /* Centre le bloc */
}

.code-digit {
    width: 40px !important;
    height: 58px !important;
    text-align: center;
    font-size: 25px; /* Texte plus grand */
    font-weight: bold; /* Texte gras */
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 0;
    line-height: 48px; /* Centre verticalement le texte */
    box-sizing: border-box;
    display: inline-block; /* Assure que les inputs ne sont pas affectés par un display: block global */
}

.code-digit:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}