Customizing front-end login/logout redirects
How to redirect directly to dashboard after logging in?
  


Since your login form is on the front-end of the site, the postLoginRedirect should do what you're looking for.

You can see the logic Craft uses to determine where to send a user after a successful login here: https://github.com/craftcms/cms/tree/master-v2/src/controllers/UsersController.php#L1599-L1614


  How to redirect directly to domain.com/login or homepage after signing out?


You've got the logoutPath config setting set 'login', which is going to log a user out as soon as they hit the /login URI, which probably isn't what you're looking for.

There currently isn't a config setting to decide where to send a user after they've been logged out, but you could write a very simple plugin that listened to the onLogout event and redirected to wherever you wished.