<%= render HeaderCompactComponent.new(title: "Log in") %>

<%= render MainCompactComponent.new do %>
  <h2>Resend confirmation instructions</h2>

  <%= form_for(resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :post }) do |f| %>
    <%= render "devise/shared/error_messages", resource: resource %>
    <p>
      <%= f.label :email, 'Email address', class: 'block mb-2 font-bold' %>
      <%= f.email_field :email,
        required: true, autofocus: true, autocomplete: "email",
        value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email),
        class: "w-full" %>
    </p>
    <p class="mt-8">
      <%= f.submit "Resend confirmation link",
                   class: 'btn-md btn-blue w-full' %>
    </p>
  <% end %>

  <%= render "devise/shared/links" %>
<% end %>
