36 lines
2.0 KiB
HTML
36 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Parental Control Login</title>
|
|
<style>
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; min-height: 100vh; display: grid; place-items: center; background: #f4f5f7; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f2937; }
|
|
.card { width: min(420px, calc(100% - 32px)); background: white; padding: 28px; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
|
|
h1 { margin-top: 0; }
|
|
label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; }
|
|
input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; }
|
|
button { width: 100%; margin-top: 20px; padding: 10px 14px; border: 0; border-radius: 8px; background: #2563eb; color: white; font-size: 15px; cursor: pointer; }
|
|
.error { padding: 10px 12px; border-radius: 8px; background: #fee2e2; color: #991b1b; margin-bottom: 14px; font-size: 14px; }
|
|
.muted { color: #6b7280; font-size: 14px; line-height: 1.5; }
|
|
code { background: #f3f4f6; padding: 2px 5px; border-radius: 4px; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="card">
|
|
<h1>Parental Control</h1>
|
|
<p class="muted">Sign in with your Linux username and password. You must also be a member of the <code>{{ pam_group }}</code> Linux group.</p>
|
|
{% if error %}<div class="error">{{ error }}</div>{% endif %}
|
|
<form method="post" action="/login">
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
<label for="username">Linux username</label>
|
|
<input id="username" name="username" autocomplete="username" required>
|
|
<label for="password">Linux password</label>
|
|
<input id="password" type="password" name="password" autocomplete="current-password" required>
|
|
<button type="submit">Sign in</button>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|