<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">
    <h1><b>3+1R</b> Developer</h1>
  </div>
  <!-- /.login-logo -->
  <div class="card">
    <div class="card-body login-card-body">
      <p class="login-box-msg">Inicia sesión con tu cuenta</p>

<?php
$input_doc = array(
        'name'          => 'documento',
        'id'            => 'documento',
        'type'			=> 'text',
        'value'			=> '',
        'placeholder'   => 'Documento',
        'autofocus'   => 'autofocus',
        'class'         => 'form-control'
);
$input_pass = array(
        'name'          => 'password',
        'id'            => 'password',
        'type'			=> 'password',
        'value'         => '',
        'placeholder'   => 'Contraseña',
        'class'         => 'form-control'
);
//phpinfo();
?>
            <?php if ($error){
			?>
			<div class="alert alert-error msg-err-login center">
            	<a class="close" data-dismiss="alert" href="#">×</a><?php echo $error ?>
          	</div>
          	<?php
          	}
          	?>

				<?php echo form_open('login/login_user',array('class'=>'validate-form' , 'id'=>'form-login')) ?>
				<div class="input-group mb-3">
					<?php echo form_input($input_doc); ?>
					<div class="input-group-append">
						<div class="input-group-text">
							<span class="fas fa-envelope"></span>
						</div>
					</div>
				</div>
				<div class="input-group mb-3">
					<?php echo form_input($input_pass); ?>
					<div class="input-group-append">
						<div class="input-group-text">
							<span class="fas fa-lock"></span>
						</div>
					</div>
				</div>

				<div class="row">
        			<div class="col-8">

				<!--<div class="g-recaptcha" data-sitekey="6LfiwhcTAAAAAIWOlKtrTiF_Bgi1YXuJz8zBDrOU"></div>-->
					</div>
					<div class="col-4">
						<button type="submit" name="entrar" id="entrar" class="btn btn-primary btn-block btn-flat" data-loading-text="<i class='fas fa-spin fa-spinner'></i> Comprobando datos...">
							<i class="fas fa-sign-in-alt"></i>
							Entrar
						</button>
					</div>
				</div>
			</form>
			<p class="mb-1">
        		<a href="<?=site_url('login/recover_pass')?>">¿Olvidaste tu contraseña?</a>
      		</p>
      		<p style="text-align:center; margin-top:10px;">
      		    <a class="btn btn-warning btn-block btn-flat" href="https://www.simple.co/Web/faces/pages/comprobantes/consultadirecta/consultaDirectaLogin.xhtml" target="_blank">Descargue aqu&iacute;<br> su planilla de aportes <i class="fas fa-chevron-right"></i> </a>
      		    <a class="btn btn-warning btn-block btn-flat" href="https://pagosimple.com/comprobantes-de-pago-aplicativo/" target="_blank">Como descargar<br> su planilla de aportes <i class="fas fa-question-circle"></i> </a>
      		</p>
	</div>
    <!-- /.login-card-body -->
  </div>
</div>
<!-- /.login-box -->

