/* Fichier CSS dédié pour la page de connexion */

/* Reset et base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f6f9;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Container principal centré */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-color: #f4f6f9;
}

/* Boîte de connexion */
.login-box {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.8s ease-out;
}

/* Animation d'entrée */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.logo-image {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Carte de connexion */
.card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    background: #fff;
}

/* Champs de saisie */
.form-control {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Groupes d'input */
.input-group-text {
    border: 1px solid #ced4da;
    border-radius: 0.375rem 0 0 0.375rem;
    background-color: #f8f9fa;
    color: #6c757d;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 0.375rem 0.375rem 0;
}

.input-group:focus-within .input-group-text {
    border-color: #80bdff;
    color: #007bff;
}

/* Bouton de connexion */
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
    transform: none;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Checkbox personnalisée */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Labels */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Titre */
h2.text-primary {
    color: #007bff !important;
    text-shadow: none;
}

h4.text-muted {
    color: #495057 !important;
    font-weight: 500;
}

/* Alertes */
.alert-danger {
    border-radius: 0.375rem;
    border: 1px solid #f5c6cb;
    background-color: #f8d7da;
    color: #721c24;
}

/* Effet de focus sur les éléments interactifs */
.form-control, .btn, .form-check-input {
    transition: all 0.15s ease-in-out;
}

/* Responsive */
@media (max-width: 576px) {
    .main-container {
        padding: 15px;
    }
    
    .login-box {
        max-width: 100%;
    }

    .card-body {
        padding: 2rem !important;
    }

    .logo-image {
        max-width: 80px;
    }
} 