<% content_for :title, "Registrati — Match Live TV" %>

<section class="auth-page">
  <h1>Registra la squadra</h1>
  <p class="auth-lead">Crea l'account del referente (coach o dirigente), poi configurerai la squadra.</p>
  <div class="card">
    <%= form_with model: @user, url: public_signup_path do |f| %>
      <%= f.label :name, "Nome" %>
      <%= f.text_field :name, required: true %>
      <%= f.label :email, "Email" %>
      <%= f.email_field :email, required: true %>
      <%= f.label :password, "Password" %>
      <%= f.password_field :password, required: true, minlength: 8 %>
      <%= f.label :password_confirmation, "Conferma password" %>
      <%= f.password_field :password_confirmation, required: true %>
      <%= f.submit "Continua", class: "btn btn-primary" %>
    <% end %>
    <p class="auth-footer">Hai già un account? <%= link_to "Accedi", public_login_path %></p>
  </div>
</section>
