122 lines
2.6 KiB
HTML
122 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Host Login</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<style>
|
|
:root {
|
|
color-scheme: light;
|
|
font-family: "Segoe UI", sans-serif;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 1.5rem;
|
|
background:
|
|
radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28rem),
|
|
linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
|
|
color: #0f172a;
|
|
}
|
|
|
|
main {
|
|
width: min(100%, 28rem);
|
|
padding: 1.5rem;
|
|
border-radius: 1rem;
|
|
background: rgba(255, 255, 255, 0.94);
|
|
box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
|
|
}
|
|
|
|
h1 {
|
|
margin: 0 0 0.5rem;
|
|
font-size: 1.9rem;
|
|
}
|
|
|
|
p {
|
|
margin: 0 0 1rem;
|
|
color: #334155;
|
|
}
|
|
|
|
form {
|
|
display: grid;
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
label {
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
input {
|
|
padding: 0.8rem 0.9rem;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 0.8rem;
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
border: 0;
|
|
border-radius: 999px;
|
|
padding: 0.8rem 1rem;
|
|
background: #0f766e;
|
|
color: #fff;
|
|
font: inherit;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.errors {
|
|
padding: 0.75rem 0.9rem;
|
|
border-radius: 0.8rem;
|
|
background: #fef2f2;
|
|
color: #b91c1c;
|
|
}
|
|
|
|
.hint {
|
|
margin-top: 1rem;
|
|
font-size: 0.95rem;
|
|
color: #475569;
|
|
}
|
|
|
|
code {
|
|
font-family: "SFMono-Regular", Consolas, monospace;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<h1>Host login</h1>
|
|
<p>Use the demo host account for local MVP testing, then return to the SPA home page to create a session.</p>
|
|
|
|
{% if form.errors %}
|
|
<div class="errors">The username or password did not match.</div>
|
|
{% endif %}
|
|
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<label for="id_username">
|
|
Username
|
|
<input id="id_username" name="username" type="text" autocomplete="username" required autofocus>
|
|
</label>
|
|
|
|
<label for="id_password">
|
|
Password
|
|
<input id="id_password" name="password" type="password" autocomplete="current-password" required>
|
|
</label>
|
|
|
|
{% if next %}
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
{% endif %}
|
|
|
|
<button type="submit">Log in</button>
|
|
</form>
|
|
|
|
<p class="hint">Local demo account: <code>demo-host</code> / <code>demo-pass</code></p>
|
|
</main>
|
|
</body>
|
|
</html>
|