<div class="card">
  <div class="card-body login-card-body">
    <p class="login-box-msg">Logowanie</p>
    <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
      <div class="input-group mb-3">
        <%= f.email_field :email, autofocus: true, placeholder: "E-mail", class: 'form-control' %>
        <div class="input-group-append">
          <div class="input-group-text">
            <span class="fas fa-envelope"></span>
          </div>
        </div>
      </div>
      <div class="input-group mb-3">
        <%= f.password_field :password, placeholder: "Hasło", class: 'form-control' %>
        <div class="input-group-append">
          <div class="input-group-text">
            <span class="fas fa-lock"></span>
          </div>
        </div>
      </div>
      <div class="row">
        <div class="col-8">
          <% if devise_mapping.rememberable? %>
          <div class="icheck-primary">
            <%= f.check_box :remember_me %>
            <label for="remember">
              Zapamiętaj mnie
            </label>
          </div>
          <% end %>
        </div>
        <!-- /.col -->
        <div class="col-4">
          <button type="submit" class="btn btn-primary btn-block">Zaloguj</button>
        </div>
        <!-- /.col -->
      </div>
      <% end %>
  </div>
  <!-- /.login-card-body -->
</div>
