<% content_for :title, "Nuova password — Match Live TV" %>
<% content_for :robots, "noindex, nofollow" %>

<section class="auth-page">
  <h1>Scegli una nuova password</h1>
  <div class="card">
    <%= form_with url: public_password_reset_path, method: :patch, local: true do %>
      <%= hidden_field_tag :token, @token %>
      <%= render "shared/input_toggle",
            name: :password,
            label: "Nuova password (min. 8 caratteri)",
            input_type: "text",
            required: true,
            minlength: 8,
            autocomplete: "new-password" %>
      <%= render "shared/input_toggle",
            name: :password_confirmation,
            label: "Conferma password",
            input_type: "text",
            required: true,
            autocomplete: "new-password" %>
      <%= submit_tag "Salva password", class: "btn btn-primary" %>
    <% end %>
    <p class="auth-footer"><%= link_to "Torna al login", public_login_path %></p>
  </div>
</section>
