<?php
/**
 * @package     MefisAssetBridge
 * @subpackage  Joomla_Administrator_Component
 *
 * @copyright   Copyright (C) 2025 Goran Usljebrka. All rights reserved.
 * @license     Proprietary — No resale or incorporation into other projects without explicit written permission. see LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\Uri\Uri;
?>

<h3><?php echo Text::_('COM_MEFISASSETBRIDGE_AUTH_RESET_TITLE'); ?></h3>
<p class="lead-"><?php echo Text::_('COM_MEFISASSETBRIDGE_AUTH_RESET_DESC'); ?></p>

<form action="<?php echo Route::_('index.php?option=com_mefisassetbridge&task=auth.reset'); ?>" method="post" name="loginForm" id="login-form" class="form-validate">

    <div class="mb-3">
        <label for="email" class="form-label"><?php echo Text::_('COM_MEFISASSETBRIDGE_AUTH_EMAIL_LABEL'); ?></label>
        <input type="email" name="email" id="email" class="form-control required" required
               value="<?php echo $this->escape($this->app->input->get('email', '', 'raw')); ?>">
    </div>

    <div class="mb-3">
        <button type="submit" class="btn btn-primary">
            <?php echo Text::_('COM_MEFISASSETBRIDGE_AUTH_RESET_BUTTON'); ?>
        </button>
    </div>

    <input type="hidden" name="returnurl" value="<?php echo urldecode($this->app->input->get('returnurl', '', 'raw')); ?>">
    <?php echo HTMLHelper::_('form.token'); ?>
</form>
