<?php
/**
 * Forgot password form template
 *
 * @link       https://yourwebsite.com
 * @since      1.0.0
 *
 * @package    Subscription_System
 * @subpackage Subscription_System/public/partials
 */
?>

<div class="subscription-system-form-container">
    <div class="subscription-system-form-header">
        <h2>Forgot Your Password?</h2>
        <p>Enter your email address or username and we'll send you a link to reset your password.</p>
    </div>
    
    <div class="subscription-system-message-container"></div>
    
    <form id="subscription-system-forgot-password-form" class="subscription-system-form">
        <div class="form-row">
            <div class="form-group">
                <label for="user_login">Username or Email Address</label>
                <input type="text" id="user_login" name="user_login" class="form-control" required>
            </div>
        </div>
        
        <div class="form-row">
            <div class="form-group">
                <button type="submit" class="subscription-system-submit-btn">Get New Password</button>
            </div>
        </div>
        
        <div class="subscription-system-form-footer">
            <?php
            // Get login page
            $login_page_id = get_option('login_page', 0);
            $login_url = $login_page_id ? get_permalink($login_page_id) : wp_login_url();
            ?>
            <p>Remember your password? <a href="<?php echo esc_url($login_url); ?>">Back to Login</a></p>
        </div>
        
        <?php wp_nonce_field('subs_sys_forgot_password_nonce', 'subs_sys_forgot_password_nonce'); ?>
    </form>
</div> 