<.focus_box> <:title> {Phoenix.Flash.get(@flash, :login_title) || "Enter your account credentials"} <:subtitle> <%= if Phoenix.Flash.get(@flash, :login_instructions) do %>

{Phoenix.Flash.get(@flash, :login_instructions)}

<% end %> <.form :let={f} for={@conn} action="/login">
<.input type="email" autocomplete="username" placeholder="user@example.com" field={f[:email]} label="Email" />
<.input type="password" autocomplete="current-password" id="current-password" field={f[:password]} label="Password" />
<%= if login_error = Phoenix.Flash.get(@flash, :login_error) do %>
{login_error}
<% end %> <.input type="hidden" field={f[:return_to]} /> <.button class="w-full" type="submit">Log in <:footer> <.focus_list> <:item :if={ Keyword.fetch!(Application.get_env(:plausible, :selfhost), :disable_registration) == false }> Don't have an account? <.styled_link href="/register"> Register instead. <:item :if={ee?() and Plausible.sso_enabled?()}> <%= on_ee do %> Have a Single Sign-on account? <.styled_link href={ Routes.sso_path(@conn, :login_form, return_to: @conn.params["return_to"], prefer: "manual" ) }> Sign in here instead. <% end %> <:item> Forgot password? <.styled_link href="/password/request-reset"> Click here to reset it.