<?php
get_header();
$login_page    = get_the_permalink( st()->get_option( 'page_user_login' ) );
$register_page = get_the_permalink( st()->get_option( 'page_user_register' ) );
$reset_page    = get_the_permalink( st()->get_option( 'page_reset_password' ) );
$active_tab    = 'register';
?>
<div id="st-content-wrapper" class="st-style-elementor">
	<?php
	$menu_transparent = st()->get_option( 'menu_transparent', '' );
	if ( 'on' === $menu_transparent ) {
		$thumb_id = get_post_thumbnail_id( get_the_ID() );
		if ( $thumb_id ) {
			$img_url = wp_get_attachment_image_url( $thumb_id, 'full' );
			echo stt_elementorv2()->loadView( 'components/banner', [ 'img_url' => $img_url ] );
		}
	}
	?>
</div>
<div class="container">
	<div id="st-login-form-page" class="st-login-class-wrapper">
		<div class="modal-dialog" role="document">
			<div class="modal-content st-border-radius relative">
				<?php echo st()->load_template( 'layouts/modern/common/loader' ); ?>
				<div class="modal-header d-sm-flex d-md-flex justify-content-between align-items-center">
					<ul class="account-tabs">
						<li data-bs-target="login-component">
							<a href="<?php echo esc_url( $login_page ); ?>"><?php echo esc_html__( 'Sign in', 'traveler' ); ?></a>
						</li>
						<li class="active" data-bs-target="register-component"><?php echo esc_html__( 'Sign up', 'traveler' ); ?></li>
					</ul>
				</div>
				<div class="modal-body relative">
					<?php
					$forms_partial = locate_template( 'inc/modules/layouts/elementorv2/inc/views/templates/partials/account-page-forms.php' );
					if ( $forms_partial ) {
						include $forms_partial;
					}
					?>
				</div>
			</div>
		</div>
	</div>
</div>
<?php get_footer(); ?>
