<!DOCTYPE html>
<html lang="en">
<style>
  body.login-page {
    background: url('<?php echo base_url(); ?>adminlte/img/fondo-login.jpg') no-repeat center center fixed;
    background-size: cover;
  }
</style>
<!--style>
  body.login-page {
    background: url('<?php echo base_url(); ?>adminlte/img/fondo-login.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
  }

  body.login-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5); /* Oscurece el fondo */
    z-index: 0;
  }

  .login-box,
  .card {
    position: relative;
    z-index: 1;
  }
</style-->
<head>
    
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>SGCAT SanLo | Log in</title>

  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo base_url(); ?>adminlte/plugins/fontawesome-free/css/all.min.css">
  <!-- icheck bootstrap -->
  <link rel="stylesheet" href="<?php echo base_url(); ?>adminlte/plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo base_url(); ?>adminlte/css/adminlte.min.css">
</head>
<body class="hold-transition login-page">
<div class="login-box">
  <!--div class="login-logo">
    <a href="../../index2.html"><b>SGCAT</b>SanLo</a>
  </div-->
  <!-- /.login-logo -->
  <div class="card">
    <div class="card-body login-card-body">
      <p class="login-box-msg">Inicio de Sección</p>

      <form action="<?php echo base_url(); ?>/auth/login" method="post">
        <div class="input-group mb-3">
  	      <input type="text" name='cuentalogin' id='cuentalogin' class="form-control" placeholder="Usuario o email" required>
          <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">
          <input type="password" name='clave' id='clave' class="form-control" placeholder="Clave" required>
          <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="icheck-primary">
              <input type="checkbox" id="remember">
              <label for="remember">
                Recordarme
              </label>
            </div>
          </div>
          <!-- /.col -->
          <div class="col-4">
            <button type="submit" class="btn btn-primary btn-block">Ingreso</button>
          </div>
          <!-- /.col -->
        </div>
      </form>
              
      <br>
              
      <div class="row">
        <div class="col-12" style="text-align: center;"> 
          <?php if(isset($mensaje)){ ?>
            <div class="alert alert-<?= $tipo; ?>">
              <?= $mensaje; ?>
            </div>
          <?php } ?>
        </div>
      </div>

      <!--div class="social-auth-links text-center mb-3">
        <p>- OR -</p>
        <a href="#" class="btn btn-block btn-primary">
          <i class="fab fa-facebook mr-2"></i> Sign in using Facebook
        </a>
        <a href="#" class="btn btn-block btn-danger">
          <i class="fab fa-google-plus mr-2"></i> Sign in using Google+
        </a>
      </div-->
      <!-- /.social-auth-links -->

      <!--p class="mb-1">
        <a href="forgot-password.html">I forgot my password</a>
      </p>
      <p class="mb-0">
        <a href="register.html" class="text-center">Register a new membership</a>
      </p-->
    </div>
    <!-- /.login-card-body -->
  </div>
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src="<?php echo base_url(); ?>adminlte/plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="<?php echo base_url(); ?>adminlte/plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="<?php echo base_url(); ?>adminlte/js/adminlte.min.js"></script>
</body>
</html>
