<?php global $wpgrade_private_post; ?>

<div class="content--client-area">
	<div class="content-helper  flexbox">
		<div class="flexbox__item">
			<div class="form-container">
				<div class="lock-icon">
					<i class="icon-lock"></i>
				</div>
				<div class="protected-area-text">
					<?php
					_e( 'This is a protected area.', 'rosa_txtd' );

					if ( $wpgrade_private_post['error'] ) {
						echo $wpgrade_private_post['error']; ?>
						<span class="gray"><?php _e( 'Please enter your password again.', 'rosa_txtd' ); ?></span>
					<?php } else { ?>
						<span class="gray"><?php _e( 'Please enter your password to continue.', 'rosa_txtd' ); ?></span>
					<?php } ?>

				</div>
				<form class="auth-form" method="post" action="<?php echo wp_login_url() . '?action=postpass'; // just keep this action path ... wordpress will refear for us?>">
					<?php wp_nonce_field( 'password_protection', 'submit_password_nonce' ); ?>
					<input type="hidden" name="submit_password" value="1"/>
					<input type="password" name="post_password" id="auth_password" class="auth__pass" placeholder="<?php _e( "Password", 'rosa_txtd' ) ?>"/>
					<input type="submit" name="Submit" id="auth_submit" class="auth__submit  btn" value="<?php _e( "Authenticate", 'rosa_txtd' ) ?>"/>
				</form>
			</div>
		</div>
	</div>
</div><!-- .content -->