<% provide :title do %><%= t("devise_views.sessions.new.title") %><% end %>
<h2><%= t("devise_views.sessions.new.title") %></h2>

<%= render 'devise/omniauth_form' %>

<p>
  <%= t("devise_views.shared.links.signup",
      signup_link: link_to(t("devise_views.shared.links.signup_link"), new_user_registration_path)).html_safe %>
</p>

<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
  <div class="row">
    <div class="small-12 columns">
      <%= f.email_field :email, autofocus: true, placeholder: t("devise_views.sessions.new.email_label"), tabindex: "1" %>
    </div>

    <div class="small-12 columns">
      <%= link_to t("devise_views.shared.links.new_password"), new_password_path(resource_name), class: "float-right", tabindex: "3" %>
      <%= f.password_field :password, autocomplete: "off", placeholder: t("devise_views.sessions.new.password_label"), tabindex: "2" %>
    </div>

    <% if devise_mapping.rememberable? -%>
      <div class="small-12 columns">
        <%= f.label :remember_me do %>
          <%= f.check_box :remember_me, title: t('devise_views.sessions.new.remember_me'), label: false, tabindex: "4" %>
          <span class="checkbox"><%= t("devise_views.sessions.new.remember_me") %></span>
        <% end %>
      </div>
    <% end -%>

    <div class="small-12 columns">
      <%= f.submit(t("devise_views.sessions.new.submit"), class: "button expanded") %>
    </div>
  </div>
<% end %>

<%= render "devise/shared/links" %>


