/* Authentication styles */

#auth-section {
    position: absolute;
    top: 20px;
    right: 240px; /* Position to the left of system status widget */
    z-index: 10;
}

.login-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    padding: 8px;
    box-shadow: var(--shadow-md);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: white;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.login-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.google-icon {
    width: 18px;
    height: 18px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-small);
    padding: 8px 12px;
    box-shadow: var(--shadow-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn {
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--background-color);
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Protected content indicator */
.auth-required {
    background: rgba(255, 243, 224, 0.5);
    border: 1px solid #fbbf24;
    border-radius: var(--border-radius-small);
    padding: 16px;
    margin: 16px 0;
    text-align: center;
    color: #92400e;
}

.auth-required::before {
    content: '🔒 ';
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #auth-section {
        position: static;
        margin-bottom: 16px;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
}