<?php
/**
 * Affiliate Login Shortcode Template
 *
 * Displays tabbed interface for login and registration forms.
 *
 * @since 2.15.0
 * @package wc-affiliate
 *
 * @var array $atts Shortcode attributes
 */

$atts = $atts ?? array();
?>

<div class="wca-login-tabs">
	<div class="wca-tab-btns">
		<button class="wca-tab-btn active" data-tab="login"><?php esc_html_e( 'Login', 'wc-affiliate' ); ?></button>
		<button class="wca-tab-btn" data-tab="register"><?php esc_html_e( 'Registration', 'wc-affiliate' ); ?></button>
	</div>
	<div class="wca-tab-contents">
		<div id="wca-login-form" class="wca-tab-content active">
			<?php wca_affiliate_login_form(); ?>
		</div>
		<div id="wca-register-form" class="wca-tab-content">
			<?php echo wca_affiliate_register_form( $atts ); // phpcs:ignore WordPress.Security.EscapeOutput ?>
		</div>
	</div>
</div>
