<% provide(:head_title, t("devise.sessions.new.head_title")) %>

<div class="center-block center-block-narrow">
  <h2><%=t "devise.sessions.new.title" %></h2>

  <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
    <div class="input-group">
      <span class="input-group-addon" style="text-transform: capitalize;">
        <%= :email %>
      </span>
      <%= f.email_field :email, autofocus: true, class: "form-control", placeholder: t("devise.sessions.new.email_placeholder") %>
    </div>

    <div class="input-group" style="margin-top: 10px;">
      <span class="input-group-addon" style="text-transform: capitalize;">
        <%= :password %>
      </span>
      <%= f.password_field :password, autocomplete: "off", class: "form-control", placeholder: t("devise.sessions.new.password_placeholder") %>
    </div>

    <% if devise_mapping.rememberable? -%>
      <div class="field" style="margin-top: 10px;">
        <%= f.check_box :remember_me %>
        <%= f.label :remember_me %>
      </div>
    <% end -%>

    <div class="actions" style="margin-top: 10px; margin-bottom: 10px;">
      <%= f.submit t("devise.sessions.new.submit"), class: "btn btn-primary" %>
    </div>
  <% end %>

  <%= render "users/shared/links" %>
</div>
