<?php
/**
 * Registration 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>Create an Account</h2>
        <p>Fill in the form below to register for a new account.</p>
    </div>
    
    <div class="subscription-system-message-container"></div>
    
    <form id="subscription-system-register-form" class="subscription-system-form">
        <div class="form-row">
            <div class="form-group">
                <label for="first_name">First Name</label>
                <input type="text" id="first_name" name="first_name" class="form-control">
            </div>
        </div>
        
        <div class="form-row">
            <div class="form-group">
                <label for="last_name">Last Name</label>
                <input type="text" id="last_name" name="last_name" class="form-control">
            </div>
        </div>
        
        <div class="form-row">
            <div class="form-group">
                <label for="username">Username *</label>
                <input type="text" id="username" name="username" class="form-control" required>
            </div>
        </div>
        
        <div class="form-row">
            <div class="form-group">
                <label for="email">Email *</label>
                <input type="email" id="email" name="email" class="form-control" required>
            </div>
        </div>
        
        <div class="form-row">
            <div class="form-group">
                <label for="password">Password *</label>
                <div class="password-field-container">
                    <input type="password" id="password" name="password" class="form-control" required>
                    <span class="password-toggle" data-target="password">👁️</span>
                </div>
            </div>
        </div>
        
        <div class="form-row">
            <div class="form-group">
                <button type="submit" class="subscription-system-submit-btn">Register</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>Already have an account? <a href="<?php echo esc_url($login_url); ?>">Login here</a></p>
        </div>
        
        <?php wp_nonce_field('subs_sys_register_nonce', 'subs_sys_register_nonce'); ?>
    </form>
</div> 