/**
 * DogConnect - Styles pour l'authentification
 * 
 * Ce fichier contient les styles spécifiques aux pages d'authentification :
 * - Connexion
 * - Inscription (utilisateur standard et vétérinaire)
 */

/* Container principal pour les pages d'authentification */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px); /* Soustraire la hauteur du header */
    padding: 20px;
    margin-top: 20px;
    background-color: #f0f8ff;
    background-image: linear-gradient(135deg, #f0f8ff 0%, #e0f0ff 100%);
}

/* Carte d'authentification */
.auth-card {
    width: 100%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

/* Version plus large pour l'inscription vétérinaire */
.auth-card.vet-register {
    max-width: 600px;
}

/* En-tête de la carte */
.auth-header {
    padding: 25px 30px;
    text-align: center;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.auth-header h1 {
    margin: 10px 0 0;
    color: #333;
    font-size: 1.8rem;
}

.auth-logo {
    max-width: 150px;
    height: auto;
}

/* Corps de la carte */
.auth-body {
    padding: 30px;
}

/* Pied de la carte */
.auth-footer {
    padding: 20px 30px;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.auth-footer p {
    margin: 5px 0;
    color: #666;
}

/* Formulaire d'authentification */
.auth-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 576px) {
    .form-row {
        flex-direction: row;
    }
    
    .form-row .form-group {
        flex: 1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #3498db;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="tel"]:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    margin-right: 10px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
}

.terms-check input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.terms-check label {
    font-size: 14px;
    line-height: 1.4;
}

/* Boutons */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 12px 20px;
    font-size: 16px;
    line-height: 1.5;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: #fff;
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Liens d'authentification */
.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Messages d'erreur */
.auth-error {
    background-color: #ffebee;
    color: #e53935;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

/* Titres de section pour l'inscription vétérinaire */
.section-title {
    font-size: 1.2rem;
    color: #3498db;
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Responsive pour les petits écrans */
@media (max-width: 576px) {
    .auth-card {
        margin: 10px 0;
    }
    
    .auth-header {
        padding: 20px;
    }
    
    .auth-body {
        padding: 20px;
    }
    
    .auth-footer {
        padding: 15px 20px;
    }
}
