Files
lamp-link-themes/the23/auth/login.php
T

104 lines
6.6 KiB
PHP

<section class="cyber-auth-section d-flex align-items-center justify-content-center min-vh-100 py-5">
<div class="container d-flex flex-column align-items-center justify-content-center">
<!-- Brand 3D Banner Logo Floating Above Card -->
<div class="cyber-auth-logo-box text-center mb-4">
<a href="<?php echo route('home') ?>" title="<?php echo config('title') ?>">
<img src="/content/link_banner_logo.png" alt="link.free-warez.win" class="img-fluid cyber-auth-logo">
</a>
</div>
<!-- Glassmorphism Login Card -->
<div class="cyber-auth-card shadow-2xl">
<div class="text-center mb-4">
<h3 class="fw-bolder text-white mb-2"><?php ee('Willkommen zurück') ?></h3>
<p class="text-muted small mb-0"><?php ee('Melde dich mit deinem Benutzerkonto an') ?></p>
</div>
<?php message() ?>
<?php if(config("user") && !config("private") && !config("maintenance")): ?>
<?php if(config('fb_connect') || config('tw_connect') || config('gl_connect') || plug('sociallogin')): ?>
<div class="py-2 text-center">
<span class="small fw-bold text-uppercase text-muted"><?php ee('Anmelden mit') ?></span>
</div>
<div class="d-flex justify-content-center gap-3 mb-4 mt-2">
<?php if(config('fb_connect')): ?>
<a href="<?php echo route('login.facebook') ?>" class="btn btn-outline-cyber rounded-circle p-2" title="<?php echo e("Anmelden mit") ?> Facebook">
<img src="<?php echo assets('images/facebook.svg') ?>" alt="Facebook" width="22" height="22">
</a>
<?php endif ?>
<?php if(config('gl_connect')): ?>
<a href="<?php echo route('login.google') ?>" class="btn btn-outline-cyber rounded-circle p-2" title="<?php echo e("Anmelden mit") ?> Google">
<img src="<?php echo assets('images/google.svg') ?>" alt="Google" width="22" height="22">
</a>
<?php endif ?>
<?php if(config('tw_connect')): ?>
<a href="<?php echo route('login.twitter') ?>" class="btn btn-outline-cyber rounded-circle p-2" title="<?php echo e("Anmelden mit") ?> X">
<img src="<?php echo assets('images/x.svg') ?>" alt="X" width="22" height="22" class="p-1">
</a>
<?php endif ?>
<?php if($plugged = plug('sociallogin')): ?>
<?php foreach($plugged as $provider): ?>
<a href="<?php echo $provider['route'] ?>" class="btn btn-outline-cyber rounded-circle p-2" title="<?php echo e("Anmelden mit").' '.$provider['name'] ?>">
<img src="<?php echo $provider['icon'] ?>" alt="<?php echo $provider['name'] ?>" width="22" height="22">
</a>
<?php endforeach ?>
<?php endif ?>
</div>
<div class="position-relative text-center my-4">
<hr class="border-secondary opacity-25">
<span class="position-absolute top-50 start-50 translate-middle px-3 cyber-badge-or small text-uppercase text-muted"><?php ee('oder') ?></span>
</div>
<?php endif ?>
<?php endif ?>
<form method="post" action="<?php echo route('login.auth') ?>" class="mt-2">
<div class="mb-4">
<label for="input-email" class="form-label text-uppercase small fw-bold text-light"><?php ee('E-Mail oder Benutzername') ?></label>
<div class="input-group">
<span class="input-group-text cyber-input-addon"><i class="fa fa-user"></i></span>
<input type="text" class="form-control form-control-lg cyber-input" name="email" id="input-email" placeholder="name@domain.de" required autofocus>
</div>
</div>
<div class="mb-4">
<div class="d-flex justify-content-between align-items-center mb-1">
<label for="input-pass" class="form-label text-uppercase small fw-bold text-light mb-0"><?php ee('Passwort') ?></label>
<a href="<?php echo route('forgot') ?>" class="small cyber-link"><?php ee('Passwort vergessen?') ?></a>
</div>
<div class="input-group">
<span class="input-group-text cyber-input-addon"><i class="fa fa-lock"></i></span>
<input type="password" class="form-control form-control-lg cyber-input" name="password" id="input-pass" placeholder="••••••••••••" required autocomplete="current-password">
</div>
</div>
<div class="form-check mb-4">
<input class="form-check-input cyber-checkbox" type="checkbox" value="1" name="rememberme" id="rememberme">
<label class="form-check-label text-muted small" for="rememberme"><?php ee('Angemeldet bleiben') ?></label>
</div>
<div class="mt-4">
<?php echo \Helpers\Captcha::display('login') ?>
<?php echo csrf() ?>
<button type="submit" class="btn btn-cyber-primary w-100 py-3 fw-bolder fs-6">
<i class="fa fa-arrow-right-to-bracket me-2"></i><?php ee('Anmelden') ?>
</button>
</div>
</form>
<?php if(config("user") && !config("private") && !config("maintenance")): ?>
<div class="text-center mt-4 pt-3 border-top border-secondary border-opacity-25">
<span class="text-muted small"><?php ee('Noch kein Konto?') ?></span>
<a href="<?php echo route('register') ?>" class="cyber-link fw-bold ms-1 small"><?php ee('Jetzt registrieren') ?></a>
</div>
<?php endif ?>
</div>
<!-- Footer Notice -->
<div class="text-center text-muted small mt-4 opacity-75">
&copy; <?php echo date("Y") ?> <a href="<?php echo config('url') ?>" class="text-muted fw-bold"><?php echo config('sitename') ?></a>. <?php ee('Alle Rechte vorbehalten.') ?>
</div>
</div>
</section>