extend /layout

block content
  div.row
    div.col-md-4.col-md-offset-4.col-sm-6.col-sm-offset-3
      div.panel.panel-default
        div.panel-heading Login
        div.panel-body
          form(action=action, method="POST", autocomplete="off")
            input(type="hidden", name="_csrf", value=_csrf)
            div.form-group
              label(for="login") Email or Username
              input.form-control(type="text", id="login", name="login", placeholder="Your email or username", value=login)
            div.form-group
              label(for="password") Password
              input.form-control(type="password", id="password", name="password", placeholder="Your password")
            if error
              div.alert.alert-warning #{error}
            input(type="submit", class="btn btn-primary btn-block", value="Login")
          div.text-center(style="margin-top: 15px;")
            small: a(href="/forgot-password") Forgot Password?
