+ <.header>
+
Log in
+ <:subtitle>
+ <%= if @current_scope do %>
+ You need to reauthenticate to perform sensitive actions on your account.
+ <% else %>
+ Don't have an account? <.link
+ navigate={~p"/admins/register"}
+ class="font-semibold text-brand hover:underline"
+ phx-no-format
+ >Sign up for an account now.
+ <% end %>
+
+
+
+ <.icon name="hero-information-circle" class="size-6 shrink-0" />
+
+
You are running the local mail adapter.
+
+ To see sent emails, visit <.link href="/dev/mailbox" class="underline">the mailbox page.
+
+
+
+
+ <.form :let={f} for={@form} as={:admin} id="login_form_magic" action={~p"/admins/log-in"}>
+ <.input
+ readonly={!!@current_scope}
+ field={f[:email]}
+ type="email"
+ label="Email"
+ autocomplete="email"
+ required
+ phx-mounted={JS.focus()}
+ />
+ <.button class="btn btn-primary w-full">
+ Log in with email
+
+ <.form :let={f} for={@form} as={:admin} id="login_form_password" action={~p"/admins/log-in"}>
+ <.input
+ readonly={!!@current_scope}
+ field={f[:email]}
+ type="email"
+ label="Email"
+ autocomplete="email"
+ required
+ />
+ <.input
+ field={f[:password]}
+ type="password"
+ label="Password"
+ autocomplete="current-password"
+ />
+ <.button class="btn btn-primary w-full" name={@form[:remember_me].name} value="true">
+ Log in and stay logged in
+
+ <.button class="btn btn-primary btn-soft w-full mt-2">
+ Log in only this time
+
+
+