<%= t(".please_sign_in") %>

<% if current_organization.sign_in_enabled? %>
<% path = if content_for(:redirect_after_login) session_path(:user, redirect_url: content_for(:redirect_after_login)) else session_path(:user) end %> <%= decidim_form_for(Decidim::User.new, namespace: "login", as: :user, url: path, html: { class: "register-form new_user" }) do |f| %>
<%= f.email_field :email %>
<%= f.password_field :password, autocomplete: "off" %>
<%= f.submit t("devise.sessions.new.sign_in"), class: "button expanded" %>
<% end %> <% if current_organization.sign_up_enabled? %>

<%= link_to t(".sign_up"), decidim.new_user_registration_path, class: "sign-up-link" %>

<% end %>

<%= link_to t("devise.shared.links.forgot_your_password"), new_password_path(:user) %>

<% cache current_organization do %> <%= render "decidim/devise/shared/omniauth_buttons_mini" %> <% end %> <% else %>

<%= t("sign_in_disabled", scope: "decidim.devise.sessions.new") %>

<% cache current_organization do %> <%= render "decidim/devise/shared/omniauth_buttons" %> <% end %> <% end %>