Righteousness is a component of God’s love. Everything emanates from Him. Our acceptance or rejection of His gifts affect our position. Here is something I borrowed from a friend. See if it makes sense to you:
God's Love is not like human love; human love you can lose. God's Love you cannot lose. God loves the people in hell, and even Satan, just as much as He loves Christ, the Holy Spirit, and Himself. For Absolute Love never varies based on the object. Only Justice varies with the object, since we are all different, and Justice must insure Consistent, Competent FAIRNESS. A thing is only fair if matched to the justice requirements and needs of the object. So only God can truly be fair, since only God can know enough to BE Fair. Omniscience insures He knows Everything, so no incompetence is possible.
Almost every time you see the word "love" in the Bible, it's mistranslated. Should read "Divine Love", not merely Love. God's Love is Absolute, so is not emotional. Not changeable. Love loves to be competent, and hence always operates within JUSTICE. Folks are extremely uncomfortable with the idea that God has to execute Justice. They don't understand that His Love means absolutely nothing, if He can't be Perfectly Righteous. What seems like cold-Judge thinking is in fact the Absoluteness of Love. Your flaws don't dent God's Love. Your attractive qualities don't influence His Love for you either. So you CANNOT EVER LOSE His Love. But if you reject His Love, Justice requires you receive different judicial treatment. But the Love is still there. God's Head Sovereign Integrity IS His Love. Virtue is the backbone of Love, and Righteousness/Justice is the attitude of Virtue, and Love loves Virtue because Virtue is Competent. God is all ONE, here: His Attributes aren't divided. So Justice is Love, too. Absolutely.