<?php /** @noinspection PhpUndefinedVariableInspection */
	do_action( 'expandable_paywall_before_login_form'); ?>
<form name="expandable-paywall-login-form" id="expandable-paywall-login-form" action="" method="post">

	<p class="login-username">
		<label for="user_login"><?php esc_html_e(apply_filters( EXPANDABLE_PAYWALL_SLUG . '_login_shortcode_user_login_label', 'Email' ), 'expandable-paywall'); ?></label>
		<input type="text" name="user_login" id="user_login" class="input" value="" size="20" required="required">
	</p>
	<p class="login-password">
		<label for="user_pass"><?php esc_html_e(apply_filters( EXPANDABLE_PAYWALL_SLUG . '_login_shortcode_user_password_label', 'Password' ), 'expandable-paywall'); ?></label>
		<input type="password" name="user_pass" id="user_pass" class="input" value="" size="20" required="required">
	</p>
    <a href="<?php echo $forgot_password; ?>" target="_blank" rel="nofollow">Forgot your password?</a>

	<div id="expandable-paywall-login-status"></div>
	<?php do_action('expandable_paywall_before_login_button'); ?>
    <input type="hidden" name="redirect_to" value="<?php echo esc_url( wp_get_referer() ?: home_url() ); ?>">

    <p class="login-submit">
		<input type="submit" name="wp-submit" id="expandable-paywall-login-button" class="button button-primary" value="<?php esc_html_e(apply_filters( EXPANDABLE_PAYWALL_SLUG . '_login_shortcode_button_label', 'Log In' ), 'expandable-paywall'); ?>">
	</p>
    <?php do_action('expandable_paywall_after_login_button'); ?>
</form>
<?php do_action('expandable_paywall_after_login_form'); ?>