<% content_for :title, "Sign in" %>

<div class="thin-form">
  <div class="page-title">
    <h1>Sign in</h1>
  </div>

  <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'panel panel-default', autocomplete: 'on' }) do |f| %>
    <div class="panel-body">
      <div class="form-group">
        <%= f.label :email %>
        <%= f.email_field :email, class: 'form-control input-lg', autofocus: 'autofocus' %>
      </div>

      <div class="form-group">
        <%= f.label :password, "Passphrase" %>
        <%= f.password_field :password, class: 'form-control input-lg' %>
      </div>

      <% if devise_mapping.rememberable? %>
        <label class="checkbox" for="remember_me">Remember me?
          <%= f.check_box :remember_me, class: 'checkbox' %>
        </label>
      <% end %>
    </div>
    <div class="panel-footer">
      <%= f.submit "Sign in", class: 'btn btn-success btn-lg btn-block' %>
    </div>
  <% end %>
</div>

<%= render "links" %>

<% content_for :title, "Sign in" %>

<div class="thin-form">
  <div class="page-title">
    <h1>Sign in</h1>
  </div>

  <%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'panel panel-default', autocomplete: 'on' }) do |f| %>
    <div class="panel-body">
      <div class="form-group">
        <%= f.label :email %>
        <%= f.email_field :email, class: 'form-control input-lg', tabindex: 1, autofocus: 'autofocus' %>
      </div>

      <div class="form-group">
        <%= f.label :password, "Passphrase" %>
        <%= f.password_field :password, tabindex: 2, class: 'form-control input-lg' %>
      </div>

      <%= render "links" %>

      <% if devise_mapping.rememberable? %>
        <label class="checkbox" for="remember_me">Remember me?
          <%= f.check_box :remember_me, class: 'checkbox' %>
        </label>
      <% end %>
    </div>
    <div class="panel-footer">
      <%= f.submit "Sign in", tabindex: 3, class: 'btn btn-success btn-lg btn-block' %>
    </div>
  <% end %>
</div>

Move forgot your passphrase link
Move forgot your passphrase link

Having the link below the form, and outside of the container made it
harder to find.

Move alongside passphrase field and explicitly set the tab index route
to avoid tab-enter mistakes.
