rpg-westreiche/westreiche_website/views/login.php

54 lines
2.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/** @var string $error */
/** @var string $identifier */
/** @var string $next */
?>
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#0a0d16">
<meta name="robots" content="noindex, nofollow">
<title>Anmelden · Westreiche</title>
<link rel="icon" href="<?= e(asset('crest.svg')) ?>" type="image/svg+xml">
<link rel="stylesheet" href="<?= e(asset('app.css')) ?>">
<script src="<?= e(asset('app.js')) ?>" defer></script>
</head>
<body class="auth-shell">
<div class="auth-stars" aria-hidden="true"></div>
<div class="embers" aria-hidden="true">
<span></span><span></span><span></span><span></span>
<span></span><span></span><span></span><span></span>
</div>
<main class="auth-card">
<p class="brand-kicker">Zauberturm · Westreiche</p>
<h1>Charakterverwalter</h1>
<p class="muted">Geschlossene Runde. Anmeldung mit Benutzername oder E-Mail.</p>
<?php if ($error !== ''): ?>
<p class="alert alert-error"><?= e($error) ?></p>
<?php endif; ?>
<form method="post" action="<?= e(url('/login')) ?>" class="form-grid">
<?= csrf_field() ?>
<input type="hidden" name="next" value="<?= e($next) ?>">
<label class="field">
<span>Benutzername oder E-Mail</span>
<input type="text" name="identifier" value="<?= e($identifier) ?>" required autocomplete="username" autofocus>
</label>
<label class="field">
<span>Passwort</span>
<input type="password" name="password" required autocomplete="current-password">
</label>
<label class="field" style="grid-auto-flow: column; justify-content: start; align-items: center; gap: .5rem;">
<input type="checkbox" name="remember" value="1">
<span style="margin:0">Angemeldet bleiben</span>
</label>
<button class="btn btn-primary" type="submit">Einlass gewähren</button>
</form>
<p class="auth-links">Kein Konto? Der Spielleiter verschickt Einladungen – ohne Einladung ist kein Beitritt möglich.</p>
</main>
</body>
</html>