<script src='https://www.google.com/recaptcha/api.js' async defer></script>
  <!-- Start main-content -->
  <div class="main-content">

   <section class="inner-header divider parallax layer-overlay overlay-dark-5" data-stellar-background-ratio="0.5" data-bg-img="images/bg/bg1.jpg" style="background-image: url(&quot;images/bg/bg1.jpg&quot;); background-position: 50% 82px;">
      <div class="container pt-10 pb-10">
        <!-- Section Content -->
        <div class="section-content">
          <div class="row"> 
            <div class="col-md-12">
              <h3 class="title text-white">Join Us</h3>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section>
      <div class="container">
        <div class="row">
          <div class="col-md-4 mb-40">
            <h4 class="text-gray mt-0 pt-5"> Login</h4>
            <hr>
            <?php echo form_open(base_url().'/submit_login');?>
              <div class="row">
                <div class="form-group col-md-12">
                  <label for="form_username_email">Mobile No.</label>
                  <input id="form_username_email" name="mobile" class="form-control" type="number" required>
                </div>
              </div>
              <div class="row">
                <div class="form-group col-md-12">
                  <label for="form_password">Password</label>
                  <input id="form_password" name="password" class="form-control" type="password" required>
                </div>
              </div>
              <div class="checkbox pull-left mt-15">
                <label for="form_checkbox">
                  <input id="form_checkbox" name="form_checkbox" type="checkbox">
                  Remember me </label>
              </div>
              <div class="form-group pull-right mt-10">
                <button type="submit" class="btn btn-dark btn-sm" name="submit">Login</button>
              </div>
              <!-- <div class="clear text-center pt-10">
                <a class="text-theme-colored font-weight-600 font-12" href="#">Forgot Your Password?</a>
              </div> -->
              
            <?php echo form_close();?>
          </div>
          <div class="col-md-7 col-md-offset-1">
            <?php echo form_open(base_url().'/create_account_from_frontend');?>
              <div class="icon-box mb-0 p-0">
                <a href="#" class="icon icon-bordered icon-rounded icon-sm pull-left mb-0 mr-10">
                  <i class="pe-7s-users"></i>
                </a>
                <h4 class="text-gray pt-10 mt-0 mb-30">Don't have an Account? Register Now.</h4>
              </div>
              <hr>
              <div class="row">
                <div class="col-sm-12">
                  <div class="form-group mb-20">
                    <label><strong>Your Name</strong> <span>*</span></label>
                    <input name="user_name" class="form-control" required placeholder="Enter Your Full Name" required>
                    <?php if($validation->getError('user_name')) {?>
                        <div class='text-danger'>
                          <?php echo $validation->getError('user_name'); ?>
                        </div>
                    <?php }?>
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group mb-20">
                    <label><strong>Your Mobile</strong> <span>*</span></label>
                    <input name="user_mobile" type="number" class="form-control" required placeholder="Enter Your Mobile Number" required>
                    <?php if($validation->getError('user_name')) {?>
                        <div class='text-danger'>
                          <?php echo $validation->getError('user_name'); ?>
                        </div>
                    <?php }?>
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group mb-20">
                    <label><strong>Your Email</strong> <span>*</span></label>
                    <input name="user_email" type="email" class="form-control" required placeholder="Enter Your Email ID" required>
                    <?php if($validation->getError('user_email')) {?>
                        <div class='text-danger'>
                          <?php echo $validation->getError('user_email'); ?>
                        </div>
                    <?php }?>
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group mb-20">
                    <label><strong>Your Password</strong> <span>*</span></label>
                    <input name="user_password" type="password" class="form-control" required placeholder="Enter Your Password" required>
                    <?php  if($validation->getError('user_password')) {?>
                        <div class='text-danger'>
                          <?php echo $validation->getError('user_password'); ?>
                        </div>
                    <?php }?>
                  </div>
                </div>
                <div class="col-sm-6">
                  <div class="form-group mb-20">
                    <label><strong>Confirm Password</strong> <span>*</span></label>
                    <input name="user_password_c" type="password" class="form-control" required placeholder="Enter Confirm Password" required>
                    <?php if($validation->getError('user_password_c')) {?>
                        <div class='text-danger'>
                          <?php echo $validation->getError('user_password_c'); ?>
                        </div>
                    <?php }?>
                  </div>
                </div>
                <?php if(session()->get('reff_link_id')):?>
                    <div class="col-sm-12">
                      <div class="form-group mb-20">
                        <label><strong>Referral Code</strong> <span>*</span></label>
                        <input name="refer_by" type="text" class="form-control" required placeholder="Enter Referral Code" required value="<?php echo session()->get('reff_link_id'); ?>" readonly>
                        <?php if($validation->getError('refer_by')) {?>
                            <div class='text-danger'>
                              <?php echo $validation->getError('refer_by'); ?>
                            </div>
                        <?php }?>
                      </div>
                    </div>
                <?php else: ?>
                    <div class="col-sm-12">
                      <div class="form-group mb-20">
                        <label><strong>Referral Code</strong> <span>*</span></label>
                        <input name="refer_by" type="text" class="form-control" required placeholder="Enter Referral Code" required>
                        <?php if($validation->getError('refer_by')) {?>
                            <div class='text-danger'>
                              <?php echo $validation->getError('refer_by'); ?>
                            </div>
                        <?php }?>
                      </div>
                    </div>
                <?php endif;?>
                <div class="col-sm-12">
                  <div class="form-group mb-20">
                    <input type="checkbox" value="1" required>
                    <label for="vehicle1">By checking this box, you are agreeing to our <a style="color:red" href="<?php echo base_url() ?>/p/Terms-&-Conditions">Terms of Condition</a></label>
                  </div>
                </div>
                <div class="col-sm-12">
                  <div class="form-group mb-20">
                      <div class="g-recaptcha" data-sitekey="<?php echo $app_setting->captcha_site_key; ?>" data-size="compact"></div>
                  </div>
                </div>
                <div class="col-sm-12">
                  <div class="form-group">
                    <button type="submit" class="btn btn-flat btn-dark btn-theme-colored mt-10 pl-30 pr-30" data-loading-text="Please wait...">Signup Now</button>
                  </div>
                </div>
              </div>
            <?php echo form_close();?>
          </div>
        </div>
      </div>
    </section>
  </div>
  <!-- end main-content -->