
//- # log in

extends layout

block content
  .container
    .row
      .col-md-4.col-md-offset-4
        if settings.facebook.enabled
          a(href='/auth/facebook').btn.btn-lg.btn-primary.btn-block
            i.fa.fa-facebook-square
            |  Log in with Facebook
          hr
        if settings.google.enabled
          a(href='/auth/google').btn.btn-lg.btn-primary.btn-block
            i.fa.fa-google-plus
            |  Log in with Google
          hr
        h1.text-center Log in
        form(action='/login', method='POST')
          input(type='hidden', name='_csrf', value=csrf)
          .form-group
            label.control-label Email
            input(type='email', name='email', placeholder='email address', required).form-control
          .form-group
            label.control-label Password
            input(type='password', name='password', required).form-control
          button(type='submit').btn.btn-lg.btn-primary.btn-block Log in
        hr
        p
          ul.list-inline.text-center
            li
              small
                a(href='/forgot') Forget password?
            li
              small
                a(href='/signup'): strong Need to sign up?
