<% content_for :title, "Accedi — Match Live TV" %>
<% content_for :meta_description, "Accesso area riservata per staff e società registrate su Match Live TV." %>
<% content_for :robots, "noindex, nofollow" %>

<section class="auth-page">
  <h1>Accedi</h1>
  <div class="card">
    <%= form_with url: public_login_path do |f| %>
      <%= render "shared/input_toggle",
            name: :email,
            label: "Email",
            value: params[:email],
            input_type: "email",
            required: true,
            autocomplete: "username" %>
      <%= render "shared/input_toggle",
            name: :password,
            label: "Password",
            required: true,
            autocomplete: "current-password" %>
      <p class="auth-forgot"><%= link_to "Password dimenticata?", public_password_forgot_path %></p>
      <%= submit_tag "Entra", class: "btn btn-primary" %>
    <% end %>
    <p class="auth-footer">Nuovo? <%= link_to "Registrati", public_signup_path %></p>
  </div>
</section>
