<div class="container h-100 d-flex align-items-center flex-column justify-content-center">
	
	<?php //debug($this->locale->setCurrentLanguage()); ?>
	    	
	<div class="login-wrapper w-100">
	
    	<div class="card bg-light">
	    	<div class="card-header font-weight-bold">
		    	<div class="row">
		    		<div class="col-lg-9 d-flex justify-content-center flex-column">
			    		<h4><img src="/images/logo-64-w-nob.png" width="30" height="30" class="d-inline-block align-top logo-image" alt="Logo"> <?php echo $this->view->appTitle; ?></h4>
			    	</div>
		    		<div class="col-lg-3 text-right">
			    		<?php if(is_array($this->view->languageList)): ?>
							<select class="custom-select my-1 mr-sm-2" id="change-language-list">
								<option value="">...</option>
								
								<?php foreach($this->view->languageList as $item): ?>
									<option value="<?php echo $item['code']; ?>" <?php echo optionSelected($item['selected']); ?>><?php echo $item['string']; ?></option>
								<?php endforeach; ?>
							</select>
						<?php endif; ?>
		    		</div>
		    	</div>
		    </div>
	    	
	    	<div class="card-body">
		    	<div class="row">
			    	<div class="col-lg-2 text-center locker-wrapper"><img src="images/locked.svg" alt="Locked" width="100" height="100" /></div>
			    	<div class="col-lg-10">
						<form method="POST" action="/" id="form-login">
							<input type="hidden" name="data[token]" value="<?php echo $this->view->token; ?>" />
							<div class="form-group">
								<label for="login_username"><?php echo _('Username'); ?></label>
								<input type="text" class="form-control" name="data[username]" id="login_username" />
							</div>
							
							<div class="form-group">
								<label for="login_password"><?php echo _('Password'); ?></label>
								<input type="password" class="form-control" name="data[password]" id="login_password" />
							</div>
							
							<?php /*
							<div class="form-check">
								<input type="hidden" name="data[keep_connected]" value="0" />
								<input type="checkbox" class="form-check-input" name="data[keep_connected]" value="1" id="login_keep_connected" />
								<label class="form-check-label" for="login_keep_connected"><?php echo _('Remeber username'); ?></label>
							</div>
							*/ ?>
							<!--<hr />
								<p><b>Help Desk:</b> helpdesk@ghtelemedicine.org - <b>WhatsApp:</b> +39 331 881 9211</p>-->
							<hr />
							
							<div class="clearfix">
								<button type="button" class="btn btn-light btn-recovery-password float-left"><span class="icon-point-right"></span> <?php echo _('Password recovery'); ?></button>

								<?php //if($_SERVER['REMOTE_ADDR'] == '195.181.176.98'): ?>
									<button type="submit" class="btn btn-primary float-right btn-access btn-login float-right"><?php echo _('Login'); ?></button>
								<?php //endif; ?>

							</div>
						</form>
			    	</div>
		    	</div>
	    	</div>
	    	
	    	<div class="card-footer text-center"><small>Powered by <a href="https://www.ttreinformatica.it/" target="_blank"><img src="https://www.ttreinformatica.it/wp-content/themes/ttretheme/images/logo.png" width="50" alt="TTRE S.r.l."></a></small></div>
	    	
		</div>
	
	</div>
	
	<?php echo $this->partial('Login/password-recovery-dialog'); ?>
</div>