/* User Info and Extra Auth Styles */

/* User Info (Top Right Corner) */
.user-info {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 10px 18px;
    border-radius: 50px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(138, 43, 226, 0.2),
        inset 0 0 20px rgba(138, 43, 226, 0.05);
    z-index: 9999;
    animation: slideInFromRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.3s ease;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-info:hover {
    border-color: rgba(138, 43, 226, 0.7);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(138, 43, 226, 0.4);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #8a2be2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    object-fit: cover;
    transition: all 0.3s ease;
}

.user-info:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.8);
}

.user-nickname {
    color: white;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-logout-btn {
    background: rgba(255, 68, 68, 0.2);
    border: 2px solid rgba(255, 68, 68, 0.4);
    color: #ff6b6b;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: bold;
}

.user-logout-btn:hover {
    background: rgba(255, 68, 68, 0.4);
    border-color: #ff4444;
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.user-logout-btn:active {
    transform: scale(0.95);
}

/* Secondary Button Style */
.secondary-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.secondary-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-info {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        gap: 10px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;
    }

    .user-nickname {
        font-size: 14px;
        max-width: 80px;
    }

    .user-logout-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .auth-modal-content {
        padding: 32px 24px;
    }

    .auth-modal-content h2 {
        font-size: 28px;
    }

    .auth-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}