<%= icon_div @conn, "bi-door-open", [class: "icon baseline"] %> Log in

<%#

Who goes there?

%> <%= form_for @conn, Routes.user_session_path(@conn, :create), [as: :user, class: "needs-validation", novalidate: true], fn f -> %> <%= if @error_message do %> <% end %> <%= label f, :email, class: "form-label" %>
<%= icon_div @conn, "bi-at", [class: "icon is-left text-muted fs-5"] %> <%= email_input f, :email, class: "form-control", placeholder: "e.g., babka@73k.us", maxlength: User.max_email, required: true %> must be a valid email address
<%= label f, :password, class: "form-label" %>
<%= icon_div @conn, "bi-lock", [class: "icon is-left text-muted fs-5"] %> <%= password_input f, :password, class: "form-control", required: true %> password is required
<%= checkbox f, :remember_me, class: "form-check-input" %> <%= label f, :remember_me, "Keep me logged in for 60 days", class: "form-check-label" %>
<%= submit "Log in", class: "btn btn-primary" %>
<% end %>

<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> | <%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>