In the book of Job, as best as I can see, God ruined Job's life over a bet (Job 1:9-12, 2:4-6). People and livestock who weren't even involved died (Job 1:13-19). Moreover, God literally made this deal with the devil.
It seems that Job's life (and the lives of his children and livestock) is just a game or one big cosmic joke to God and Satan. We can explain Satan's behavior by saying he's evil. But God is supposed to be all-good and all-loving.
How do Christians reconcile God's bet with Satan with a God of love?
Important Note: This question is not about the problem of evil. It has nothing to do with Job. It's about God's behavior in the book of Job, i.e. the bet with Satan. If your answer has anything to do with why the righteous suffer, you're probably answering the wrong question.