<%- include('partials/header') %>

<div class="form-container">
    
    <img src="Logo/logo-cogobierna-3.png" class="img-responsive img-center">

    <% if(locals.error) { %>
        <div class="alert alert-danger"><%= error %></div>
    <% } %>
    <% if(locals.success) { %>
        <div class="alert alert-success"><%= success %></div>
    <% } %>
    <form method="post">
        <div class="form-group">
            <label for="username">Nombre de usuario</label>
            <input type="text" name="username" id="username" value="<%= locals.username || '' %>" class="form-control" />
        </div>
        <div class="form-group">
            <label for="password">Contraseña</label>
            <input type="password" name="password" id="password" class="form-control" />
        </div>
        <div class="form-group">
            <button type="submit" class="btn btn-primary">Iniciar sesión</button>
            <a href="/register" class="btn btn-link">Registrar</a>
        </div>
    </form>
</div>
<%- include('partials/footer') %> 