<?xml version="1.0"?>
<!--
/**
 * Hyvä Themes - https://hyva.io
 * Copyright © Hyvä Themes 2022-present. All rights reserved.
 * This product is licensed per Magento install
 * See https://hyva.io/license
 */
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"
>
    <head>
        <title>Customer Login</title>
    </head>
    <body>
        <referenceContainer name="content">
            <container
                name="customer.login.container"
                htmlTag="div"
                htmlId="customer-login-container"
                htmlClass="login-container"
            >
                <block
                    class="Magento\Customer\Block\Form\Login"
                    name="customer_form_login"
                    template="Hyva_Checkout::overrides/Magento_Customer/form/login.phtml"
                    cacheable="false"
                >
                    <arguments>
                        <argument name="viewModelRecaptcha" xsi:type="object">Hyva\Theme\ViewModel\ReCaptcha</argument>
                    </arguments>
                    <container name="form.additional.info" as="form_additional_info"/>
                </block>
                <block class="Magento\Customer\Block\Form\Login\Info" name="customer.new" template="Magento_Customer::newcustomer.phtml"/>
            </container>
        </referenceContainer>

        <referenceContainer name="hyva.checkout.api-v1.after">
            <block name="hyva.checkout.alpinejs.login"
                   template="Hyva_Checkout::overrides/Magento_Customer/form/login-component.phtml"
            >
                <arguments>
                    <argument name="viewModelRecaptcha" xsi:type="object">Hyva\Theme\ViewModel\ReCaptcha</argument>
                </arguments>
            </block>
        </referenceContainer>
    </body>
</page>
