{{ 'customer.css' | asset_url | stylesheet_tag }} {%- style -%} .section-{{ section.id }}-padding { padding-top: {{ section.settings.padding_top | times: 0.75 | round: 0 }}px; padding-bottom: {{ section.settings.padding_bottom | times: 0.75 | round: 0 }}px; } @media screen and (min-width: 750px) { .section-{{ section.id }}-padding { padding-top: {{ section.settings.padding_top }}px; padding-bottom: {{ section.settings.padding_bottom }}px; } } {%- endstyle -%} {%- if section.settings.enable_shop_login_button == false -%} {%- assign hide_shop_login_button = true -%} {%- endif -%}

{{ 'customer.recover_password.title' | t }}

{{ 'customer.recover_password.subtext' | t }}

{%- form 'recover_customer_password' -%} {% assign recover_success = form.posted_successfully? %}
{%- if form.errors -%} {{- 'icon-error.svg' | inline_asset_content -}} {{ form.errors.messages.form }} {%- endif -%} {{ 'customer.login_page.cancel' | t }} {%- endform -%}

{{ 'customer.login_page.title' | t }}

{%- if recover_success == true -%}

{{- 'icon-success.svg' | inline_asset_content -}} {{ 'customer.recover_password.success' | t }}

{%- endif -%} {%- form 'customer_login', novalidate: 'novalidate' -%} {%- if form.errors -%}

{{ 'accessibility.error' | t }} {{- 'icon-error.svg' | inline_asset_content -}} {{ 'templates.contact.form.error_heading' | t }}

{{ form.errors | default_errors }} {%- endif -%} {%- if shop.features.login_with_shop_classic_customer_accounts? -%}
{{ shop | login_button: hide_button: hide_shop_login_button }} {%- unless hide_shop_login_button -%}

{{ 'customer.login_page.alternate_provider_separator' | t }}

{%- endunless -%}
{%- endif -%}
{%- if form.password_needed -%}
{{ 'customer.login_page.forgot_password' | t }} {%- endif -%} {{ 'customer.login_page.create_account' | t }} {%- endform -%}
{%- if shop.checkout.guest_login -%}

{{ 'customer.login_page.guest_title' | t }}

{%- form 'guest_login' -%} {%- endform -%}
{%- endif -%}
{% schema %} { "name": "t:sections.main-login.name", "settings": [ { "type": "checkbox", "id": "enable_shop_login_button", "label": "t:sections.main-login.shop_login_button.enable", "default": true }, { "type": "header", "content": "t:sections.all.padding.section_padding_heading" }, { "type": "range", "id": "padding_top", "min": 0, "max": 100, "step": 4, "unit": "px", "label": "t:sections.all.padding.padding_top", "default": 36 }, { "type": "range", "id": "padding_bottom", "min": 0, "max": 100, "step": 4, "unit": "px", "label": "t:sections.all.padding.padding_bottom", "default": 36 } ] } {% endschema %}