{**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/AFL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
 *}
{extends file='page.tpl'}

{* Pas de h1 générique (bloc page_title volontairement non surchargé → masqué par le flag `hide` de page.tpl).
   Le titre de la page est <h1 class="mrd-acc-title"> ci-dessous, pour éviter un double h1. *}

{block name='page_content'}
  <div class="mrd-account">
    <div class="mrd-acc-narrow">

      <h1 class="mrd-acc-title">{l s='Bon retour parmi nous' d='Shop.Theme.Customeraccount'}</h1>
      <p class="mrd-acc-lead">{l s='Connectez-vous pour suivre vos commandes, gérer vos adresses et passer commande plus rapidement.' d='Shop.Theme.Customeraccount'}</p>

      {block name='login_form_container'}
        <div class="auth-grid" style="margin-top:40px">

          {* ---- Déjà client : connexion ---- *}
          <section class="auth-card login-form">
            <h2 class="auth-card-h">{l s='Déjà client ?' d='Shop.Theme.Customeraccount'}</h2>
            {render file='customer/_partials/login-form.tpl' ui=$login_form}
            {block name='display_after_login_form'}
              {hook h='displayCustomerLoginFormAfter'}
            {/block}
          </section>

          {* ---- Nouveau client : avantages + création de compte ---- *}
          <section class="auth-card auth-card-alt no-account">
            <h2 class="auth-card-h">{l s='Nouveau client' d='Shop.Theme.Customeraccount'}</h2>
            <p class="auth-card-intro">{l s='Créer un compte prend moins d’une minute. Suivez vos commandes, enregistrez vos adresses et accédez aux ventes privées.' d='Shop.Theme.Customeraccount'}</p>
            <ul class="auth-bullets">
              {assign var=_advantages value=['Commande plus rapide, adresses enregistrées','Historique et suivi de toutes vos commandes','Accès anticipé aux ventes privées','Gestion des adresses et des retours']}
              {foreach from=$_advantages item=_adv}
                <li>
                  <svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M20 6 9 17l-5-5"/></svg>
                  {$_adv}
                </li>
              {/foreach}
            </ul>
            <a href="{$urls.pages.register}" class="mrd-btn mrd-btn-outline mrd-btn-block" data-link-action="display-register-form">
              {l s='Créer un compte' d='Shop.Theme.Customeraccount'}
            </a>
          </section>

        </div>
      {/block}

    </div>
  </div>
{/block}
