<% @page_title = "Confirm email change" %>

<div class="panel shadow center flex flex-column gap-half" style="--panel-size: 45ch;">
  <header>
    <h1 class="txt-x-large font-weight-black margin-none">
      <%= @page_title %>
    </h1>
    <p class="margin-none">Just a sec while we confirm your new email address.</p>
  </header>

  <%= form_with url: email_address_confirmation_path(membership_id: @membership.id), method: :post, data: { controller: "form auto-submit" } do |form| %>
    <%= form.hidden_field :email_address_token, value: params[:email_address_token] %>

    <button type="submit" class="btn btn--link center" data-form-target="submit">
      <span>Done</span>
    </button>
  <% end %>
</div>
