{!--
/**
* JCOGS OTP Pro - Pattern 3b: AJAX Inline Replacement (Custom Implementation)
* ===========================================================================
*
* Advanced demonstration of custom AJAX login with inline form replacement.
* Shows how to build your own AJAX implementation where the form replaces
* itself with OTP entry fields when required. No modal overlay.
*
* Features:
* - AJAX form submission (no page reload)
* - Inline form replacement (login → OTP in same container)
* - Custom form handling and state management
* - Error handling and loading states
* - Remember device option
* - Back button returns to login form
*
* Template Group: jcogs_otp_pro_examples
* Default Success URL: /jcogs_otp_pro_examples/user_otp_settings
* Requires: ajax-helpers.js from add-on themes directory
* CSS/JS Path: __CSS_JS_PATH__ (replaced during installation)
* Note: Inline JavaScript demonstrates custom AJAX implementation
*
* @category ExpressionEngine Template
* @package JCOGS OTP Pro
* @author JCOGS Design
AJAX login with form content replaced inline when OTP is required. Single-page feel without modal.
Pattern 3b: AJAX In-Place Replacement
Implementation Notes
otp-ajax-helpers.js library