/* Auth Styles - Stili per autenticazione ST3B */

/* Classe per utenti autenticati */
.user-authenticated .area-clienti a {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-authenticated .area-clienti a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Welcome message per utenti loggati */
.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    font-size: 14px;
}

.user-welcome span {
    color: #333;
    font-weight: 500;
}

.user-welcome .btn {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* Animazioni per transizioni */
.area-clienti {
    transition: all 0.3s ease;
}

.area-clienti a {
    transition: all 0.3s ease;
}

/* Badge per notifiche */
.auth-badge {
    position: relative;
}

.auth-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    border: 2px solid white;
}

/* Responsive design */
@media (max-width: 768px) {
    .user-welcome {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .user-welcome .btn {
        width: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .user-welcome {
        background: rgba(0, 0, 0, 0.8);
        color: white;
    }
    
    .user-welcome span {
        color: white;
    }
}

/* Loading state */
.auth-loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 