<?php

/*

 * Copyright (c) 2018 Earworks.

 * Codeigniter Project Template Modification

 * Please contact our email for more information :

 * contact@earworks.co.id

 */



defined('BASEPATH') OR exit('No direct script access allowed');

$error = validation_errors();

?>

<!-- BEGIN LOGIN FORM -->
<?php echo form_open('backoffice/user/login', array('class' => 'login-form')) ?>
<h3 class="form-title" style="font-family: MercedesFont; font-size: 20px;">Welcome, Please Login.</h3>
<?php if ($error) : ?>
    <div class="alert alert-danger">
        <button class="close" data-close="alert"></button>
        <span><?php echo $error ?></span>
    </div>
<?php endif; ?>
<div class="form-group">
    <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
    <label class="control-label visible-ie8 visible-ie9" ><?php echo $this->lang->line('username') ?></label>
    <?php echo form_input(array(
        'class' => 'form-control form-control-solid placeholder-no-fix', 
        'style' => 'background-color: #0a0a0a; border: 1px solid #1f1f1f;', 
        'autocomplete' => 'off', 
        'placeholder' => $this->lang->line('username'), 
        'name' => 'username')); ?>
</div>
<div class="form-group" >
    <label class="control-label visible-ie8 visible-ie9" ><?php echo $this->lang->line('password') ?></label>
    <?php echo form_password(array('class' => 'form-control form-control-solid placeholder-no-fix', 'style' => 'background-color: #0a0a0a; border: 1px solid #1f1f1f;', 'autocomplete' => 'off', 'placeholder' => $this->lang->line('password'), 'name' => 'password')) ?>
</div>
<div class="form-actions">
    <?php echo form_submit('login', $this->lang->line('login'), array('type' => 'submit', 'class' => 'btn red btn-block uppercase', 'style' => 'color: #ffffff;
    background-color: #d9252b;
    border-color: #d9252b;')) ?>
    <label class="rememberme check mt-checkbox mt-checkbox-outline" >
        <?php echo form_checkbox('remember', 'yes', TRUE); ?>
        <?php echo $this->lang->line('remember'); ?>
        <span></span>
    </label>
    <a href="<?php echo base_url('backoffice/user/forgot') ?>" class="forget-password" style="float: right; margin-top: 8px;"><?php echo $this->lang->line('forgot_password') ?></a>
</div>
<div class="login-options" style="margin-top: 20px;
    padding-top: 10px;
    padding-bottom: 50px;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;">
    <h4>Connect With Us</h4>
    <ul class="social-icons">
        <li>
            <a class="social-icon-color facebook" data-original-title="facebook" href="https://www.facebook.com/MercedesBenzID"></a>
        </li>
        <li>
            <a class="social-icon-color twitter" data-original-title="Twitter" href="https://twitter.com/mbindonesia"></a>
        </li>
        <li>
            <a class="social-icon-color instagram" data-original-title="Instagram" href="https://www.instagram.com/mercedesbenzid/"></a>
        </li>
    </ul>
</div>
<!--    <div class="create-account">
        <p>
            <a href="javascript:;" id="register-btn" class="uppercase">Create an account</a>
        </p>
    </div>-->
<?php echo form_close(); ?>

<!-- END LOGIN FORM -->