<% providers.each do |provider| %>
<% provider_id = provider[:id].to_s %>
<% provider_name = provider[:name].to_s %>
<% if provider_id == "google" || provider[:strategy].to_s == "google_oauth2" %>
<%= button_to "/auth/#{provider_name}", method: :post, form: { data: { turbo: false } }, class: "gsi-material-button w-full" do %>
<%= provider[:label].presence || t(".google_auth_connect") %>
<%= provider[:label].presence || t(".google_auth_connect") %>
<% end %>
<% else %>
<%= button_to "/auth/#{provider_name}", method: :post, form: { data: { turbo: false } }, class: "w-full inline-flex items-center justify-center gap-2 rounded-md border border-secondary bg-container px-4 py-2 text-sm font-medium text-primary hover:bg-secondary transition" do %>
<% if provider[:icon].present? %>
<%= icon provider[:icon], size: "sm" %>
<% end %>