/* CSS spécifique pour la page de login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.6s ease-out;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.logo-section h2 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
}

.logo-section p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.1rem;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

.login-form .form-group label i {
    color: #667eea;
    width: 16px;
}

.login-form .form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.login-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #764ba2;
}

/* Responsive */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .logo-section h2 {
        font-size: 1.7rem;
    }
    
    .login-form .form-group input {
        padding: 12px;
    }
    
    .login-btn {
        padding: 12px;
    }
}

/* Animation pour les erreurs */
.alert-error {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
/* Styles pour la nouvelle page d'accueil */
.login-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.user-types, .test-credentials {
    margin-bottom: 25px;
}

.user-types h4, .test-credentials h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

.access-types {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.access-type {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.access-type:hover {
    background: #e9ecef;
}

.access-type i {
    font-size: 1.5rem;
    color: #667eea;
    width: 24px;
}

.access-type strong {
    display: block;
    color: #333;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.access-type span {
    color: #666;
    font-size: 0.8rem;
}

.credentials-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credential-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85rem;
}

.credential-item strong {
    color: #495057;
}

.credential-item code {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

.credential-item code:hover {
    background: #dee2e6;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive pour mobile */
@media (max-width: 480px) {
    .access-types {
        gap: 8px;
    }
    
    .access-type {
        padding: 10px;
    }
    
    .access-type i {
        font-size: 1.2rem;
    }
    
    .credential-item {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        text-align: center;
    }
}

/* Animation pour les recommandations d'appareil */
@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.access-type.recommended {
    animation: highlight 0.6s ease-in-out;
}
