When you are logged in, you click on your profile picture and pick the option "Log out" at the bottom of the drop-down menu.
With your next login, you can opt for saving your login details as well. We still recommend to save your password somewhere safe to have it on hand.
We made a short video about the login process. You can see it as part of our video tutorial series "Learn Atlassian Confluence".