<?php
if(isset($_COOKIE["sesion"])){
  echo '<meta http-equiv="refresh" content="0;url=./cotizaciones.php" />';
  die();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>MYPSA CASEWORK | Login</title>
  <link rel="stylesheet" href="css/family.css">
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <link rel="stylesheet" href="plugins/toastr/toastr.min.css">
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
  <link rel="shortcut icon" href="dist/img/Menu.png" />
  <style type="text/css">
    body * {
      font-family: 'Century Gothic';
    }
  </style>
</head>
<body class="hold-transition login-page">
  <div class="login-box">
    <div class="row">
      <div class="offset-md-3 col-md-6">
        <img src="dist/img/Login.png" style="width: 100%;">
      </div>
    </div>
    <br>  
    <div class="card">
      <div class="card-body login-card-body">
        <div class="input-group mb-3">
          <input type="text" class="form-control" style="border-radius:0" id="usuario" autocomplete="off" placeholder="Usuario" autofocus>
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-user"></span>
            </div>
          </div>
        </div>
        <div class="input-group mb-3">
          <input type="password" class="form-control" style="border-radius:0" id="clave" placeholder="Clave" onkeypress="keyLogin()">
          <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-12">
            <button type="button" style="border-radius:0" class="btn btn-primary btn-block" id="btnIniciarSesion">Iniciar sesión</button>
          </div>
        </div>
      </div>
    </div>
  </div>
  <script src="plugins/jquery/jquery.min.js"></script>
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="dist/js/adminlte.min.js"></script>
  <script src="scripts/index.js"></script>
  <script src="plugins/toastr/toastr.min.js"></script>
  <script src="plugins/blockui/jquery.blockui.min.js"></script>
  <script src="scripts/cookies.js"></script>
</body>
</html>
