Log in

<%= form_for @conn, Routes.user_session_path(@conn, :create), [as: :user, class: "flex flex-col h-full justify-center items-start m-auto"], fn f -> %> <%= if @error_message do %>

<%= @error_message %>

<% end %>
<%= label f, :email %> <%= email_input f, :email, [class: "text-black px-2 py-1 outline-none", required: true] %>
<%= label f, :password %> <%= password_input f, :password, [class: "text-black px-2 py-1 outline-none", required: true] %>
<%= checkbox f, :remember_me, [class: "mr-2 outline-none"] %> <%= label f, :remember_me, "Keep me logged in for 60 days" %>
<%= submit "Log in" %>
<% end %>

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