Files
WebChecker--Web-app-/templates/login.html
T

49 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login — Website Checker</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body class="login-wrap">
<div class="login-box">
<div class="login-logo">
<span class="brand-icon">🌐</span>
<h1>Website Checker</h1>
<p>Shift Monitoring Tool</p>
</div>
{% if error %}
<div class="alert alert-danger mb-2">{{ error }}</div>
{% endif %}
<form method="post" action="{{ url_for('auth.login') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username"
autocomplete="username" autofocus required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password"
autocomplete="current-password" required>
</div>
<button class="btn btn-primary" type="submit">Sign In</button>
</form>
<p style="text-align:center;margin-top:1rem;font-size:.875rem">
<a href="{{ url_for('auth.forgot_password') }}" style="color:var(--accent)">Forgot password?</a>
</p>
{% if reg_enabled %}
<p style="text-align:center;margin-top:.5rem;font-size:.875rem">
Don't have an account?
<a href="{{ url_for('auth.register') }}" style="color:var(--accent)">Create one</a>
</p>
{% endif %}
</div>
</body>
</html>