<?php echo Modules::run(get_theme()."/header", false); ?>
<div class="auth-login-form">
  <div class="form-login">
    <form class="actionForm" action="<?php echo cn("auth/ajax_sign_in"); ?>" data-redirect="<?php echo cn('statistics'); ?>" method="POST">
      <div>
        <div class="card-title text-center">
          <div class="site-logo">
            <a href="<?php echo cn(); ?>">
              <img src="<?php echo get_option('website_logo', BASE."assets/images/logo.png"); ?>" alt="website-logo">
            </a>
          </div>
        </div>
        <div class="form-group">
          <div class="input-icon mb-5">
            <span class="input-icon-addon">
              <i class="fe fe-mail"></i>
            </span>
            <input type="email" class="form-control" name="email" placeholder="<?php echo lang("Email"); ?>" value="<?php echo (isset($cookie_email) && $cookie_email != "") ? strip_tags($cookie_email) : ""; ?>" required>
          </div>    
                
          <div class="input-icon mb-5">
            <span class="input-icon-addon">
              <i class="fa fa-key"></i>
            </span>
            <input type="password" class="form-control" name="password" placeholder="<?php echo lang("Password"); ?>" value="<?php echo (isset($cookie_pass) && $cookie_pass != "") ? strip_tags($cookie_pass) : ""; ?>" required>
          </div>  
        </div>
        <div class="form-footer">
          <button type="submit" class="btn btn-pill btn-2 btn-block btn-submit btn-gradient"><?php echo lang("Login"); ?></button>
        </div>
      </div>
    </form>
  </div>
</div>

<?php echo Modules::run(get_theme()."/footer", false); ?>