when click on botton id show !

when click on botton id show !

hi,
i want to change css att when click on button and body !

when click on button , display att change to block
and when click on body display att change to none

my code :

        $(document).on('click','body',function(){
            $('#login-form').css('display','none');
        })
        $(document).on('click','#login',function(){
            $('#login-form').css('display','block')
        }

can help me to solved the problem ?

sorry for bad english :(