<div class="container">  
<section class="hero is-fullheight">
    <div class="hero-body">
        <div class="container has-text-centered">
            <div class="column is-4 is-offset-4">
                <img src="<?php echo base_url(); ?>assets/images/logo-dark.svg" width="270" alt="LicenseBox" class="noselect">
                <p class="subtitle is-6 p-t-xs p-b-xs">Log in to your account.</p>
                <?php if($this->session->flashdata('login_status')): ?>
                    <?php $flash = $this->session->flashdata('login_status');
                    echo ' <div class="notification is-'.$flash['type'].'"><button class="delete"></button>'.$flash['message'].'</div>'; ?>
                <?php endif; ?>
                <div class="box">
                 <?php echo form_open('users/login', array('id' => 'login_form')); ?>
                 <div class="field">
                    <div class="control has-icons-left">
                        <input class="input is-medium" type="text" name="username" value="<?php echo set_value('username'); ?>" placeholder="Email or username" autocomplete="on" autofocus required>
                        <span class="icon is-small is-left"><i class="fas fa-user"></i></span>
                    </div>
                </div>
                <div class="field">
                    <div class="control has-icons-left">
                        <input class="input is-medium" type="password" name="password" value="<?php echo set_value('password'); ?>" placeholder="Password" autocomplete="on" required>
                        <span class="icon is-small is-left"><i class="fas fa-lock"></i></span>
                    </div>
                </div>
                <button type="submit" id="login_form_submit" class="button is-block is-link is-medium is-fullwidth">Login</button>
                <?php echo form_close(); ?>
                <p class="p-t-sm m-t-xs"><a href="<?php echo base_url();?>forgot_password" class="has-text-dark">Forgot your password?</a></p>
            </div>
        </div>
    </div>
</div>
</section>
</div>