<?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"
>
    <!-- Inject the login and registration forms -->
    <update handle="hyva_checkout_customer_account_login"/>

    <body>
        <!-- The customer should be able to navigate during the authentication process -->
        <referenceBlock name="hyva.checkout.navigation" remove="true"/>
        <!-- Move the full login block into the main column -->
        <move element="customer.login.container" destination="column.main"/>
        <!-- Remove the shipping summary for the "shipping" step -->
        <referenceBlock name="checkout.shipping-summary" remove="true"/>

        <referenceBlock name="customer_form_login">
            <arguments>
                <argument name="magewire" xsi:type="object">
                    \Hyva\Checkout\Magewire\Checkout\CustomerLogin
                </argument>
            </arguments>
        </referenceBlock>

        <!-- Remove the "Sign in / Register" link since we are on the login / registration step -->
        <referenceBlock name="additional.signin-register" remove="true"/>
    </body>
</page>
