I have few pages which should be accessible by logged in user only. When I want to access this pages without login then must be redirect to custom login page instead of application login url.
If you have Features > Universal Login Page turned on in the plugin, this redirect will happen automatically when you send users to wp-login.php. Here is a sample of a page template that redirects if a user is not logged in: