Magento – Move login pop up form above shipping address magento 2 checkout

magento2onepage-checkout

I have to move login pop above shipping address in magento 2 checkout.

enter image description here

I have found popup sign in form code in checkout_index_index.xml.

How can I move sign in form above shipping address.

 <item name="authentication" xsi:type="array">
    <item name="sortOrder" xsi:type="string">1</item>
    <item name="component" xsi:type="string">Magento_Checkout/js/view/authentication</item>
    <item name="displayArea" xsi:type="string">authentication</item>
    <item name="children" xsi:type="array">
         <!--Additional authentication fields-->
         <item name="errors" xsi:type="array">
         <item name="sortOrder" xsi:type="string">0</item>
         <item name="component" xsi:type="string">Magento_Checkout/js/view/authentication-messages</item>
         <item name="displayArea" xsi:type="string">messages</item>
    </item>
  </item>

Best Answer

In your custom checkout_index_index.xml file add these lines:

<item name="authentication" xsi:type="array"> <item name="displayArea" xsi:type="string">steps</item> </item>

(Source: https://inviqa.com/blog/technical-guide-magento-2-checkout)

Then you only have to make minor changes to your CSS in order to display the form the way you want.