/* Styles modernes pour la page de connexion */
.login-wrapper {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a0f9c 100%);
    padding: 2rem 0;
}

.login-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.98);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header img {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.login-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.login-icon {
    animation: fadeInDown 0.6s ease-out;
}

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

.input-group-lg .form-control,
.input-group-lg .input-group-text {
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.input-group-lg .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    color: var(--primary-color);
}

.input-group-lg .form-control {
    border-left: none;
}

.input-group-lg .form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.form-label {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.input-group:has(.form-control:focus) .input-group-text {
    border-color: var(--primary-color);
}

#togglePassword {
    border: 2px solid #e0e0e0;
    border-left: none;
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 0.75rem 1.2rem;
    transition: all 0.3s ease;
}

#togglePassword:hover {
    background-color: #e9ecef;
    color: var(--secondary-color);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a0f9c 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 5, 107, 0.3);
}

.btn-outline-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #dee2e6, transparent);
}

.divider-text {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-weight: 500;
}

.help-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.help-card .card-body {
    padding: 1rem;
}

.help-card i {
    font-size: 1.1rem;
}

/* Animation subtile pour les états de focus */
.form-control:focus + .input-group-text,
.input-group-text + .form-control:focus {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Checkbox personnalisée */
.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.2rem;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Liens */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Animation de chargement */
.btn .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Animation shake pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Responsive */
@media (max-width: 768px) {
    .login-card .card-body {
        padding: 2rem 1.5rem !important;
    }
    .input-group-lg .form-control,
    .input-group-lg .input-group-text {
        font-size: 1rem;
    }
}
