<link rel="stylesheet" href="<?php echo base_url(); ?>assets/ecommerce/scss/style.css" />
<style>
    header, footer
    {
        display: none;
    }        
</style>
<div class="sign-up py-5">
    <div class="container">
        <div class="row justify-content-center">
          <div class="col-lg-12">
            <div class="alert alert-success alert-dismissible" role="alert" <?php if($this->session->flashdata('message')==''){ ?> style="display:none" <?php } ?> >
                <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                <?php echo $this->session->flashdata('message'); ?>
            </div>
            <div class="alert alert-danger alert-dismissible" role="alert" <?php if($this->session->flashdata('emessage')==''){ ?> style="display:none" <?php } ?> >
                <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                <?php echo $this->session->flashdata('emessage'); ?>
            </div>
          </div>
        </div>
        <div class="row justify-content-center">
            <div class="col-lg-5 col-md-5 col-12">
                <div class="login-form">
                    <a href="<?php echo base_url(); ?>" class="d-block text-center">
                        <img src="<?php echo base_url(admin_logo); ?>" alt="logo image">
                    </a>
                    <h2 class="main-title mt-4">Sign In</h2>
                    <p>New User? <a href="<?php echo base_url(); ?>user-registration" class="ms-3">Create an account</a> </p>
                    <form class="text-center mt-2" id="login-form" action="<?php echo base_url("user_login/doLogin"); ?>" method="post">
                        <?php if(isset($_GET['redirect']) && $_GET['redirect']==1){ ?>
                            <input type="hidden" name="redirect" value="1">
                        <?php } ?>
                        <div class="form-group mb-3" >
                            <input type="text" name="email" class="form-control" placeholder="Email">
                        </div>
                        <div class="form-group mb-3">
                            <input type="password" name="password" class="form-control mb-2" placeholder="Password">
                            <label class="text-end d-block"><a href="<?php echo base_url(); ?>forgot-password">Forgot Password</a> </label>
                        </div>
                        <div class="d-flex align-items-center mb-2">                                
                            <div class="form-check form-group">
                              <input type="checkbox" class="form-check-input" id="ch">
                              <label class="form-check-label d-inline-block" for="ch">Keep me signed in </label>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-primary w-100">Sign In</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>