<?php
/**
 * Página de restablecimiento de contraseña.
 */
require_once dirname( __DIR__ ) . '/core/bootstrap.php';

JB_App::set_current_post( (object) array(
	'ID'           => 3,
	'post_title'   => 'Restablecer contraseña',
	'post_content' => '',
	'post_type'    => 'page',
	'post_name'    => 'reset-password',
) );

do_action( 'wp_enqueue_scripts' );

wp_enqueue_style( 'dashicons' );
wp_enqueue_style(
	'logistica-admin',
	LOGISTICA_PLUGIN_URL . 'assets/css/admin.css',
	array( 'dashicons' ),
	logistica_asset_version( 'assets/css/admin.css' )
);
wp_enqueue_style(
	'logistica-user-panel',
	LOGISTICA_PLUGIN_URL . 'assets/css/panel.css',
	array( 'logistica-admin' ),
	logistica_asset_version( 'assets/css/panel.css' )
);
Logistica_Panel_Auth::enqueue_assets();

$body_class = apply_filters( 'body_class', array( 'jb-planeacion-app', 'logistica-panel-page', 'logistica-reset-password-page' ) );
?>
<!DOCTYPE html>
<html lang="es">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title><?php echo esc_html( JB_App::config( 'app_name' ) ); ?> — <?php esc_html_e( 'Restablecer contraseña', 'logistica' ); ?></title>
	<?php
	if ( function_exists( 'logistica_print_favicon' ) ) {
		logistica_print_favicon();
	}
	wp_print_styles();
	?>
</head>
<body class="<?php echo esc_attr( implode( ' ', $body_class ) ); ?>">
	<div id="jb-app" class="jb-app-root">
		<?php echo Logistica_Panel_Auth::render_reset_password_screen(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
	</div>
	<?php wp_print_scripts(); ?>
</body>
</html>
