<div class="middle-box text-center loginscreen animated fadeInDown">
  <div>
    <div>
      <div class="logo-wrapper">
        <img src="/assets/logos/MissionKontrol-logo-original.png" alt="">
      </div>
    </div>

    <h2>Forgot your password?</h2>

    <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
      <%= devise_error_messages! %>

      <div class="field form-group">
        <%= f.label :email, "Email" %><br />
        <%= f.email_field :email, autofocus: true, autocomplete: "email", class: 'form-control', required: true %>
      </div>

      <div class="actions">
        <%= f.submit "Send me reset password instructions", class: 'btn btn-primary block full-width m-b' %>
      </div>
    <% end %>

    <%- if controller_name != 'sessions' %>
    <small>
      <%= link_to "Log in", new_session_path(resource_name) %><br />
    </small>
    <% end -%>
  </div>
</div>
