
body {
  font-family: "Inter", "Poppins", sans-serif;
  background-color: var(--bg-page);
  color: var(--text);
  margin: 0;
  padding: 0;
}
.alert {
  margin: 15px auto;
  max-width: 400px;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-weight: 500;
  animation: fadeIn .4s ease-in;
}
.alert.success { background: #0d9488; color: white; }
.alert.error { background: #b00020; color: white; }
.alert.warning { background: #f59e0b; color: #1b1b1b; }
@keyframes fadeIn { from {opacity:0; transform:translateY(-5px);} to {opacity:1; transform:translateY(0);} }

.form {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #1e1e2f;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

/* Titre du formulaire */
.form-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Conteneur des champs */
.input-container {
    position: relative;
    margin-bottom: 15px;
}

/* Champs de saisie */
.input-container input {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    background: #2a2a3a;
    color: #ffffff;
}

/* Effet focus */
.input-container input:focus {
    border-color: #007bff;
    background: #3b3b52;
}

/* Bouton d'envoi */
.submit {
    width: 100%;
    padding: 12px;
    font-size: 18px;
    background: #007bff;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

/* Effet hover sur le bouton */
.submit:hover {
    background: #0056b3;
}

/* Lien d'inscription */
.signup-link {
    margin-top: 15px;
    font-size: 14px;
}

.signup-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

/* Effet hover sur le lien */
.signup-link a:hover {
    text-decoration: underline;
}

/* Style pour l'icône d'œil (toggle-password) */
.input-container.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #007bff;
    font-size: 1.2em;
    z-index: 2;
    transition: color 0.2s;
}
.toggle-password:hover {
    color: #fff;
}

/* Responsive pour l'icône d'œil */
@media (max-width: 768px) {
    .toggle-password {
        font-size: 1em;
        right: 10px;
    }
}
@media (max-width: 480px) {
    .toggle-password {
        font-size: 0.9em;
        right: 8px;
    }
}
@media (max-width: 360px) {
    .toggle-password {
        font-size: 0.8em;
        right: 5px;
    }
}
