/* assets/css/style.css */

/* Styles généraux pour harmoniser l'apparence des pages */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.auth-container h2 {
    text-align: center;
    color: #3498db;
    margin-bottom: 30px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 2em;
}

.auth-container form label {
    font-weight: 600;
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 0.95em;
}

.auth-container form input[type="text"],
.auth-container form input[type="email"],
.auth-container form input[type="tel"],
.auth-container form input[type="password"] {
    width: calc(100% - 24px); /* Pour laisser de la place au padding */
    padding: 12px;
    border: 1px solid #cdd4da;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-container form input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.auth-container form button {
    width: 100%;
    padding: 15px;
    margin-top: 30px;
    font-size: 1.1em;
    font-weight: 600;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.auth-container form button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.auth-container p {
    margin-top: 20px;
    font-size: 0.95em;
    color: #666;
}

.auth-container a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.auth-container a:hover {
    text-decoration: underline;
}

/* Specific styles for index.php buttons */
.button {
    background-color: #3498db; /* Couleur de fond par défaut */
    color: white; /* Texte en blanc */
    border: none;
    padding: 14px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    margin-top: 25px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-weight: 500;
    text-decoration: none; /* Supprime le soulignement */
    display: inline-block; /* Permet d'appliquer des marges et paddings correctement */
}

.button:hover {
    background-color: #2980b9; /* Couleur au survol pour le bouton par défaut */
    transform: translateY(-2px);
    color: white; /* Garde le texte blanc au survol */
    text-decoration: none; /* Assure qu'il n'y a pas de soulignement au survol */
}

/* Style spécifique pour le second bouton qui a un style inline sur le HTML */
/* Il est préférable d'utiliser une classe pour cela, mais si c'est la seule option, cela fonctionne */
a.button[style*="background-color: #2ecc71"] {
    color: white; /* S'assure que le texte est blanc pour ce bouton */
    text-decoration: none; /* Supprime le soulignement pour ce bouton */
}

a.button[style*="background-color: #2ecc71"]:hover {
    background-color: #27ae60 !important; /* Couleur de survol légèrement plus foncée, use !important pour override si nécessaire */
    color: white; /* Garde le texte blanc au survol */
    text-decoration: none; /* Assure qu'il n'y a pas de soulignement au survol */
}


.main-title {
    font-size: 3.5em; /* Plus grand pour le titre principal */
    font-weight: 700;
    color: #1a2b3c;
    margin-top: 0;
}

.slogan {
    font-style: italic;
    font-size: 1.8em;
    color: #666;
}

/* Responsive pour les pages d'authentification */
@media (max-width: 600px) {
    .auth-container {
        margin: 20px auto;
        padding: 25px;
    }
    .auth-container h2 {
        font-size: 1.8em;
    }
    .auth-container form button {
        padding: 12px;
        font-size: 1em;
    }
}

/* required field indicator */
.required {
    color: #e74c3c;
    margin-left: 5px;
    font-weight: normal;
}
.error-input {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

/* Footer styles */
footer {
    padding: 20px;
    text-align: center;
    color: #777;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}