This is the judgment, that the light has come into the world, and men loved the darkness rather than the light; for their works were evil.
This verse still applies to unbelief, because the moral judgment going on when Jesus spoke to Nicodemus is still in progress.  Believers in Christ are not judged, being safe "in him"; but unbelievers have been judged already by their rejection of the only hope of the world.