<?php
/**
 * Login Form
 *
 * This template can be overridden by copying it to yourtheme/templates/easy-login-woocommerce/global/xoo-el-login-section.php
 *
 * HOWEVER, on occasion we will need to update template files and you
 * (the theme developer) will need to copy the new files to your theme to
 * maintain compatibility. We try to do this as little as possible, but it does
 * happen.
 * @see     https://docs.xootix.com/easy-login-woocommerce/
 * @version 2.7.5
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

$redirect 	= $args['forms']['login']['redirect'];

//Login Fields
xoo_el_fields()->get_fields_html('login');


?>

<div class="xoo-aff-group xoo-el-login-btm-fields">
	<label class="xoo-el-form-label">
		<input type="checkbox" name="xoo-el-rememberme" value="forever" />
		<span><?php _e( 'Remember me', 'easy-login-woocommerce' ); ?></span>
	</label>
	<a class="xoo-el-lostpw-tgr" rel="nofollow" href="#"><?php _e('Forgot Password?','easy-login-woocommerce'); ?></a>
</div>

<?php do_action( 'xoo_el_login_add_fields', $args ); ?>

<input type="hidden" name="_xoo_el_form" value="login">

<button type="submit" class="button btn xoo-el-action-btn xoo-el-login-btn" <?php if( !xoo_el_is_limit_login_ok() ) echo "disabled"; ?>><?php esc_html_e( xoo_el_helper()->get_general_option( 'txt-btn-login' ) ) ?></button>

<input type="hidden" name="xoo_el_redirect" value="<?php echo esc_url( $redirect ); ?>">