/* Styles pour les pages d'authentification */

.auth-body {
    background: linear-gradient(135deg, #0077b6 0%, #005577 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-info-side {
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.9) 0%, rgba(0, 85, 119, 0.9) 100%);
    color: white;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-info-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.auth-info-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.auth-logo i {
    font-size: 3rem;
    color: #ffd700;
}

.auth-logo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.auth-logo-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #0077b6;
}

.auth-logo-mobile i {
    font-size: 2.5rem;
}

.auth-logo-mobile h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.auth-features {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item i {
    font-size: 1.5rem;
    color: #ffd700;
    min-width: 24px;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.auth-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-form h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 500;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-label i {
    color: #0077b6;
}

.form-control {
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 0.2rem rgba(0, 119, 182, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #0077b6 0%, #005577 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #006699 0%, #004466 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 119, 182, 0.3);
}

.btn-outline-secondary {
    border: 2px solid #e1e5e9;
    color: #6c757d;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #0077b6;
    border-color: #0077b6;
    color: white;
}

.form-check-input {
    border: 2px solid #e1e5e9;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.alert-success {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #0077b6 0%, #005577 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-title i {
    color: #ffd700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-form-container {
        padding: 1rem;
    }
    
    .auth-form {
        padding: 2rem 1.5rem;
    }
    
    .auth-logo-mobile h2 {
        font-size: 1.8rem;
    }
    
    .auth-logo-mobile i {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .auth-form {
        padding: 1.5rem 1rem;
        margin: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form {
    animation: fadeInUp 0.6s ease-out;
}

.auth-info-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading animation */
.btn-primary:disabled {
    position: relative;
    color: transparent;
}

.btn-primary:disabled::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}
