80 lines
3.6 KiB
PHP
80 lines
3.6 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="de">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<meta name="robots" content="noindex, nofollow">
|
||
<title>Login – Black Sheep Bluff</title>
|
||
<link rel="icon" href="identity/favicon.png" type="image/png">
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@600;700;800&display=swap" rel="stylesheet">
|
||
<link rel="stylesheet" href="/assets/css/base.css">
|
||
<link rel="stylesheet" href="/assets/css/login.css">
|
||
</head>
|
||
<body>
|
||
<div class="wrap">
|
||
<div class="brand">
|
||
<img src="identity/logo.png" alt="Black Sheep Bluff" class="brand-logo">
|
||
<p class="tag">Melde dich an</p>
|
||
</div>
|
||
|
||
<div class="card">
|
||
<div id="errBox" class="err hidden"></div>
|
||
|
||
<!-- Step 1: Username -->
|
||
<div id="step1">
|
||
<p class="step-title">Schritt 1 — Username eingeben</p>
|
||
<label for="usernameInput">Username</label>
|
||
<input id="usernameInput" type="text" placeholder="dein-name"
|
||
maxlength="40" autocomplete="username" autocapitalize="none"
|
||
onkeydown="if(event.key==='Enter')Login.checkUser()">
|
||
<button onclick="Login.checkUser()">Weiter →</button>
|
||
</div>
|
||
|
||
<!-- Step 2a: PIN eingeben -->
|
||
<div id="step2pin" class="hidden">
|
||
<p class="step-title">Schritt 2 — PIN eingeben</p>
|
||
<div class="pin-dots" id="pinDots"></div>
|
||
<label for="pinInput" style="margin-top:14px">PIN</label>
|
||
<input id="pinInput" type="password" inputmode="numeric" placeholder="••••"
|
||
maxlength="8" autocomplete="current-password"
|
||
oninput="Login.updateDots('pinInput','pinDots')"
|
||
onkeydown="if(event.key==='Enter')Login.login()">
|
||
<button onclick="Login.login()">Einloggen</button>
|
||
<button class="ghost" onclick="Login.back()">← Zurück</button>
|
||
</div>
|
||
|
||
<!-- Step 2b: Passwort (Admin) -->
|
||
<div id="step2pass" class="hidden">
|
||
<p class="step-title">Schritt 2 — Passwort</p>
|
||
<label for="passInput">Passwort</label>
|
||
<input id="passInput" type="password" placeholder="••••••••"
|
||
autocomplete="current-password"
|
||
onkeydown="if(event.key==='Enter')Login.login()">
|
||
<button onclick="Login.login()">Einloggen</button>
|
||
<button class="ghost" onclick="Login.back()">← Zurück</button>
|
||
</div>
|
||
|
||
<!-- Step 2c: PIN festlegen (first time) -->
|
||
<div id="step2setup" class="hidden">
|
||
<p class="step-title">Willkommen! Lege deinen PIN fest</p>
|
||
<div class="pin-dots" id="setupDots"></div>
|
||
<label for="newPinInput" style="margin-top:14px">Neuer PIN (4–8 Ziffern)</label>
|
||
<input id="newPinInput" type="password" inputmode="numeric" placeholder="••••"
|
||
maxlength="8" autocomplete="new-password"
|
||
oninput="Login.updateDots('newPinInput','setupDots')">
|
||
<label for="confirmPinInput">PIN bestätigen</label>
|
||
<input id="confirmPinInput" type="password" inputmode="numeric" placeholder="••••"
|
||
maxlength="8" autocomplete="new-password"
|
||
onkeydown="if(event.key==='Enter')Login.setPin()">
|
||
<button onclick="Login.setPin()">PIN festlegen & einloggen</button>
|
||
<button class="ghost" onclick="Login.back()">← Zurück</button>
|
||
<p class="info">Dieser PIN ersetzt ein Passwort. Wähle 4–8 Ziffern.</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="/assets/js/login.js"></script>
|
||
</body>
|
||
</html>
|