Files
Blitz-Proxy/core/scripts/webpanel/templates/login.html
2025-08-29 21:48:31 +03:30

326 lines
8.9 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Blitz Dashboard - Login</title>
<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@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 25%, #1e3c72 50%, #2a5298 75%, #1e3c72 100%);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
padding: 16px;
}
body::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
animation: float 20s ease-in-out infinite;
}
@keyframes gradientShift {
0%, 100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
@keyframes float {
0%, 100% {
transform: translate(0px, 0px) rotate(0deg);
}
33% {
transform: translate(30px, -30px) rotate(120deg);
}
66% {
transform: translate(-20px, 20px) rotate(240deg);
}
}
.login-container {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(20px);
border-radius: 20px;
padding: 48px 40px;
width: 100%;
max-width: 400px;
box-shadow:
0 25px 50px rgba(0, 0, 0, 0.15),
0 0 0 1px rgba(255, 255, 255, 0.2);
border: 1px solid rgba(255, 255, 255, 0.2);
position: relative;
z-index: 1;
animation: slideUp 0.8s ease-out;
}
@media (max-width: 480px) {
.login-container {
padding: 32px 24px;
border-radius: 16px;
margin: 0 16px;
}
}
@media (max-width: 320px) {
.login-container {
padding: 24px 20px;
}
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.logo {
text-align: center;
margin-bottom: 32px;
}
.logo h1 {
font-size: 32px;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 8px;
}
.logo p {
color: #6b7280;
font-size: 16px;
font-weight: 400;
}
@media (max-width: 480px) {
.logo {
margin-bottom: 24px;
}
.logo h1 {
font-size: 28px;
}
.logo p {
font-size: 14px;
}
}
.error-message {
background: #fef2f2;
border: 1px solid #fecaca;
color: #dc2626;
padding: 12px;
border-radius: 8px;
margin-bottom: 24px;
font-size: 14px;
}
.form-group {
margin-bottom: 24px;
}
@media (max-width: 480px) {
.form-group {
margin-bottom: 20px;
}
}
.form-input:focus {
outline: none;
border-color: #1e3c72;
box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
transform: translateY(-2px);
}
.form-input {
width: 100%;
padding: 16px;
border: 2px solid #e5e7eb;
border-radius: 12px;
font-size: 16px;
transition: all 0.3s ease;
background: #ffffff;
}
@media (max-width: 480px) {
.form-input {
padding: 14px;
font-size: 16px;
}
}
.form-input::placeholder {
color: #9ca3af;
}
.submit-btn {
width: 100%;
padding: 16px;
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
color: white;
border: none;
border-radius: 12px;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
@media (max-width: 480px) {
.submit-btn {
padding: 14px;
}
}
@media (hover: hover) {
.submit-btn:hover {
transform: translateY(-3px);
box-shadow: 0 15px 30px rgba(30, 60, 114, 0.4);
}
.submit-btn:hover::before {
left: 100%;
}
}
.submit-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s;
}
.submit-btn:hover::before {
left: 100%;
}
.submit-btn:hover {
transform: translateY(-3px);
box-shadow: 0 15px 30px rgba(30, 60, 114, 0.4);
}
.submit-btn:active {
transform: translateY(0);
}
.footer {
text-align: center;
margin-top: 32px;
font-size: 14px;
color: #6b7280;
}
@media (max-width: 480px) {
.footer {
margin-top: 24px;
font-size: 13px;
}
}
.footer a {
color: #1e3c72;
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
font-size: 20px;
display: inline-block;
margin-top: 8px;
}
@media (hover: hover) {
.footer a:hover {
color: #2a5298;
transform: scale(1.1);
}
}
@media (max-width: 480px) {
.footer a {
font-size: 18px;
}
}
</style>
</head>
<body>
<div class="login-container">
<div class="logo">
<h1>Blitz</h1>
<p>Welcome back</p>
</div>
{% if error %}
<div class="error-message">{{ error }}</div>
{% endif %}
<form action="{{ url_for('login') }}" method="post">
<div class="form-group">
<input type="text" name="username" class="form-input" placeholder="Username" required>
</div>
<div class="form-group">
<input type="password" name="password" class="form-input" placeholder="Password" required>
</div>
<button type="submit" class="submit-btn">Sign In</button>
</form>
<div class="footer">
Made with ❤️<br>
<a href="https://github.com/ReturnFI/Blitz/" target="_blank">
<i class="fab fa-github"></i>
</a>
</div>
</div>
<script>
document.addEventListener('keydown', function(event) {
if (event.key === 'Enter') {
const form = document.querySelector('form[action]');
if (form) {
event.preventDefault();
form.submit();
}
}
});
</script>
</body>
</html>