/*================================
  =   NORTON SPORT CLUB GENEVE   =
  ================================
	
	Créé le : 08.05.2024
	Mis à jour le : 28.11.2025
	Par : Rui Dos Santos

=================================*/

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    display: flex;
	flex-direction: column; /* empile verticalement */
    justify-content: flex-start; /* alignement en haut */
    align-items: center; /* centrer horizontalement */
    min-height: 100vh;
}

img {
    width: 10%;
	height: auto;
    margin-bottom: 20px; /* espace naturel entre image et formulaire */
}

form {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="email"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

input:focus {
    border-color: #007BFF;
    outline: none;
}

.button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

p {
    text-align: center;
    margin-top: 16px;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Message d'erreur */
.message-erreur {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    border: 1px solid #b30000;
    font-weight: bold;
}

.message-erreur.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Message d'erreur */
.message-succes {
    color: #d32f2f;
    background-color: #00ff00;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
    border: 1px solid #b30000;
    font-weight: bold;
}

.message-succes.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Wrapper mot de passe */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 44px;
}

.password-wrapper .toggle-password {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #555;
    transition: color 0.3s;
}

.password-wrapper .toggle-password:hover {
    color: #007BFF;
}

.toggle-password svg {
    transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
    form {
        padding: 20px;
    }
}