/* Login page styles */

body.bg-gradient-primary {
    background: linear-gradient(135deg, #f04e27 0%, #d13a1a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.bg-login-image {
    background: linear-gradient(135deg, rgba(240, 78, 39, 0.8) 0%, rgba(209, 58, 26, 0.8) 100%), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-login-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(240, 78, 39, 0.9) 0%, rgba(209, 58, 26, 0.9) 100%);
}

.card.o-hidden {
    overflow: hidden;
}

.card.o-hidden .card-body {
    padding: 0;
}

.form-control-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 0.75rem 1rem;
}

.btn-user {
    font-size: 0.8rem;
    border-radius: 10rem;
    padding: 0.75rem 1rem;
}

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

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #f04e27;
    background-color: #f04e27;
}

.custom-control-label {
    font-size: 0.8rem;
    color: #858796;
}

.text-center a.small {
    color: #f04e27;
    text-decoration: none;
}

.text-center a.small:hover {
    color: #d13a1a;
    text-decoration: underline;
}

/* Animation pour le formulaire */
.card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .bg-login-image {
        display: none;
    }
    
    .card.o-hidden .col-lg-6:first-child {
        display: none;
    }
    
    .card.o-hidden .col-lg-6:last-child {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Styles pour les erreurs de validation */
.is-invalid {
    border-color: #dc3545;
}

.form-control:focus.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #e74a3b;
}

/* Loading state */
.btn-user:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-user .spinner-border-sm {
    margin-right: 0.5rem;
}

/* Focus states */
.form-control:focus,
.form-control-user:focus {
    border-color: #f04e27;
    box-shadow: 0 0 0 0.2rem rgba(240, 78, 39, 0.25);
}

.btn-primary:focus,
.btn-user:focus {
    box-shadow: 0 0 0 0.2rem rgba(240, 78, 39, 0.25);
}

/* Hover effects */
.btn-primary:hover,
.btn-user:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(240, 78, 39, 0.3);
    background-color: #d13a1a;
    border-color: #d13a1a;
}

/* Logo animation */
.navbar-brand {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
