<div class="row" style="margin-top: 5%">
  <div class="col s12 m6 offset-m3">
    <% if resource.errors.any? %>
      <div class="card red lighten-3">
        <div class="card-content">
          <div class="card-title">Please fix the following errors:</div>
          <ul class="browser-default">
            <%= devise_error_messages! %>
          </ul>
        </div>
      </div>
    <% end %>
    
    <div class="card">
      <div class="card-content">
        <h2 class="card-title">Forgot your password?</h2>
        <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :post }) do |f| %>
      
          <div class="field">
            <%= f.label 'Enter the email associated with your account' %><br />
            <%= f.email_field :email, autofocus: true %>
          </div>

          <div class="actions center">
            <%= f.submit "Send me reset password instructions", class: 'btn blue' %>
          </div>
          <p class="center">
            <br />
            <%= render "devise/shared/links" %>
          </p>
        <% end %>
      </div>
    </div>
  </div>
</div>
