Log In

<%= form_for(resource, as: resource_name, html: { class: 'space-y-6' }, url: session_path(resource_name)) do |f| %>
<%= f.label :email, class: 'label' %> <%= f.email_field :email, autofocus: true, autocomplete: 'email', class: 'base-input' %>
<%= f.label :password, class: 'label' %> <%= f.password_field :password, autocomplete: 'current-password', class: 'base-input' %>
<% if devise_mapping.rememberable? %>
<%= f.label :remember_me, class: 'flex items-center cursor-pointer' do %> <%= f.check_box :remember_me, checked: true, class: 'base-checkbox' %> Remember me <% end %>
<% end %>
<%= f.button button_title(title: 'Log In', disabled_with: 'Logging In'), class: 'base-button' %>
<% end %> <% if devise_mapping.omniauthable? %> <%= button_to button_title(title: 'Log in with Google', icon: svg_icon('brand_google', class: 'w-6 h-6')), omniauth_authorize_path(resource_name, :google_oauth2), class: 'white-button w-full mt-4', data: { turbo: false }, method: :post %> <% end %> <%= render 'devise/shared/links' %>