<?php
declare(strict_types=1);

use Magento\Customer\Block\Form\Login\Info;
use Magento\Framework\Escaper;

/** @var Info $block */
/** @var Escaper $escaper */
?>
<?php if ($block->getRegistration()->isAllowed()): ?>
    <div class="w-full my-8 block-new-customer md:w-1/2 md:my-0">
        <div class="block-title">
            <h2 class="mb-3 text-xl font-semibold text-black title-font" role="heading"
                aria-level="2"><?= $escaper->escapeHtml(__('New Customers')) ?></h2>
        </div>
        <div class="font-medium block-content" aria-labelledby="block-new-customer-heading">
            <p>
                <?= $escaper->escapeHtml( // phpcs:disable Generic.Files.LineLength.TooLong
                    __('Creating an account has many benefits: check out faster, keep more than one address, track orders and more.')
                ) // phpcs:enable ?>
            </p>
        </div>
        <div class="flex self-end pt-6 pb-2 actions-toolbar">
            <a href="<?= $escaper->escapeUrl($block->getCreateAccountUrl()) ?>"
               class="btn btn-primary"><span><?= $escaper->escapeHtml(__('Create an Account')) ?></span></a>
        </div>
    </div>
<?php endif; ?>
