<!DOCTYPE html>
<html lang="es-MX">

<!-- This is the head information, normally you don't have to move this section  -->
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1"/>
  <title><%= titulo %></title>

  <!-- CSS  -->
  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link href="/css/materialize_login.css" type="text/css" rel="stylesheet" media="screen,projection"/>
  <link href="/css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
</head>

<!-- This section is where all the content goes  -->
<body>

      <!-- Navigation bar DESKTOP -->
  <nav class="transparent" role="navigation">
    <div class="nav-wrapper container">
      <a id="logo-container" href="#" class="brand-logo white-text">NATDEV LOGO <div class="side_logo"> | Gestión de Proyectos</div></a>

      <!-- Navigation bar MOBILE  -->
      <ul id="nav-mobile" class="sidenav">
        <li><a href="#">LINK PARA CERRAR SESIÓN (NO VISIBLE EN INICIO DE SESIÓN)</a></li>
      </ul>
    </div>
  </nav>

    <div>
        <!-- Titulo  -->
        
        <h1 class="header center white-text">Iniciar sesión</h1>
        <main class="container">
          <h1><%= titulo %></h1>
          
          <% if (error) { %> 
            <span style="color:red"><%= error %></span>
          <% } %>

          <form action="/users/login" method="POST">
              <label for="usuario">Nombre de usuario</label> <input type="text" name="usuario">
              <label for="password">Contraseña</label> <input type="password" name="password">
              <input type="submit" value="Ingresar">
          </form>
      </main>
      
  <!--  Scripts-->
  <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  <script src="js/materialize.js"></script>
  <script src="js/init.js"></script>

  </body>
</html>
