178 lines
5.3 KiB
HTML
178 lines
5.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Password Protected Link - BZOD</title>
|
|
<style>
|
|
:root {
|
|
--bg-base: #070a13;
|
|
--bg-card: rgba(17, 24, 39, 0.7);
|
|
--border-color: rgba(255, 255, 255, 0.08);
|
|
--text-primary: #f8fafc;
|
|
--text-secondary: #94a3b8;
|
|
--primary-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
|
|
--accent-color: #6366f1;
|
|
--danger-color: #ef4444;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-base);
|
|
color: var(--text-primary);
|
|
font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.gate-card {
|
|
background-color: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 16px;
|
|
padding: 2.5rem;
|
|
width: 100%;
|
|
max-width: 420px;
|
|
backdrop-filter: blur(12px);
|
|
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
|
|
text-align: center;
|
|
}
|
|
|
|
.icon-container {
|
|
margin-bottom: 1.5rem;
|
|
display: inline-flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 50%;
|
|
background: rgba(99, 102, 241, 0.1);
|
|
border: 1px solid rgba(99, 102, 241, 0.2);
|
|
color: #818cf8;
|
|
}
|
|
|
|
.lock-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
fill: currentColor;
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
margin-bottom: 0.5rem;
|
|
background: var(--primary-grad);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 1.25rem;
|
|
text-align: left;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.form-input {
|
|
background-color: rgba(15, 23, 42, 0.6);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 0.75rem 1rem;
|
|
color: var(--text-primary);
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
width: 100%;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.form-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.btn {
|
|
background: var(--primary-grad);
|
|
color: #fff;
|
|
border: none;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn:hover {
|
|
opacity: 0.9;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px 0 rgba(99, 102, 241, 0.35);
|
|
}
|
|
|
|
.alert-error {
|
|
background-color: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
color: #fca5a5;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 8px;
|
|
font-size: 0.85rem;
|
|
margin-bottom: 1.5rem;
|
|
text-align: left;
|
|
font-weight: 500;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="gate-card">
|
|
<div class="icon-container">
|
|
<svg class="lock-icon" viewBox="0 0 24 24">
|
|
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"/>
|
|
</svg>
|
|
</div>
|
|
<h1 class="title">Secure Link</h1>
|
|
<p class="subtitle">This link is password-protected. Please enter the password to proceed.</p>
|
|
|
|
{% if let Some(err) = error %}
|
|
<div class="alert-error">
|
|
{{ err }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<form action="/gate/{{ code }}" method="POST">
|
|
<div class="form-group">
|
|
<label for="password">Password</label>
|
|
<input type="password" id="password" name="password" class="form-input" required autofocus autocomplete="current-password" placeholder="Enter password">
|
|
</div>
|
|
|
|
<button type="submit" class="btn">Unlock Link</button>
|
|
</form>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|