h / templates /register.html
Xlnk's picture
Upload 11 files
0671f22 verified
<!DOCTYPE html>
<html>
<head>
<title>Register - h by Xlnk</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #0d0d1f 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
font-family: 'Inter', system-ui, sans-serif;
padding: 20px;
}
.container {
width: 100%;
max-width: 420px;
}
.card {
background: rgba(15, 23, 42, 0.8);
backdrop-filter: blur(20px);
border: 1px solid rgba(99, 102, 241, 0.2);
border-radius: 24px;
padding: 40px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
0 0 100px rgba(99, 102, 241, 0.1);
}
.logo {
text-align: center;
margin-bottom: 30px;
}
.logo h1 {
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 8px;
}
.logo p {
color: #94a3b8;
font-size: 0.95rem;
}
.flash-messages {
margin-bottom: 20px;
}
.flash {
padding: 12px 16px;
border-radius: 12px;
font-size: 0.9rem;
margin-bottom: 10px;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.flash.error {
background: rgba(239, 68, 68, 0.15);
border: 1px solid rgba(239, 68, 68, 0.3);
color: #fca5a5;
}
.flash.success {
background: rgba(34, 197, 94, 0.15);
border: 1px solid rgba(34, 197, 94, 0.3);
color: #86efac;
}
.form-group {
margin-bottom: 20px;
}
label {
display: block;
color: #e2e8f0;
font-size: 0.9rem;
font-weight: 500;
margin-bottom: 8px;
}
input {
width: 100%;
padding: 14px 16px;
background: rgba(30, 41, 59, 0.8);
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 12px;
color: #f1f5f9;
font-size: 1rem;
font-family: inherit;
transition: all 0.3s ease;
}
input:focus {
outline: none;
border-color: #818cf8;
box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.15);
}
input::placeholder {
color: #64748b;
}
.password-hint {
color: #64748b;
font-size: 0.8rem;
margin-top: 6px;
}
button {
width: 100%;
padding: 14px;
background: linear-gradient(135deg, #8b5cf6, #c084fc);
border: none;
border-radius: 12px;
color: white;
font-size: 1rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 10px;
}
button:hover {
transform: translateY(-2px);
box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}
button:active {
transform: translateY(0);
}
.divider {
text-align: center;
margin: 25px 0;
position: relative;
}
.divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: rgba(148, 163, 184, 0.2);
}
.divider span {
background: rgba(15, 23, 42, 0.8);
padding: 0 15px;
color: #64748b;
font-size: 0.85rem;
position: relative;
}
.login-link {
text-align: center;
}
.login-link a {
color: #c084fc;
text-decoration: none;
font-weight: 500;
transition: color 0.3s ease;
}
.login-link a:hover {
color: #e879f9;
}
.glow-orb {
position: fixed;
width: 400px;
height: 400px;
border-radius: 50%;
filter: blur(100px);
opacity: 0.3;
pointer-events: none;
z-index: -1;
}
.orb-1 {
background: #8b5cf6;
top: -100px;
right: -100px;
animation: float 8s ease-in-out infinite;
}
.orb-2 {
background: #ec4899;
bottom: -100px;
left: -100px;
animation: float 8s ease-in-out infinite reverse;
}
@keyframes float {
0%, 100% {
transform: translate(0, 0);
}
50% {
transform: translate(30px, 30px);
}
}
.features {
display: flex;
justify-content: center;
gap: 20px;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.feature {
text-align: center;
color: #64748b;
font-size: 0.75rem;
}
.feature-icon {
font-size: 1.2rem;
margin-bottom: 4px;
}
</style>
</head>
<body>
<div class="glow-orb orb-1"></div>
<div class="glow-orb orb-2"></div>
<div class="container">
<div class="card">
<div class="logo">
<h1>h by Xlnk</h1>
<p>Create your account</p>
</div>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
<div class="flash-messages">
{% for category, message in messages %}
<div class="flash {{ category }}">{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% endwith %}
<form method="post">
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" placeholder="Create a password" required>
<p class="password-hint">Must be at least 6 characters</p>
</div>
<div class="form-group">
<label for="confirm_password">Confirm Password</label>
<input type="password" id="confirm_password" name="confirm_password" placeholder="Confirm your password" required>
</div>
<button type="submit">Create Account</button>
</form>
<div class="divider">
<span>or</span>
</div>
<div class="login-link">
<p style="color: #94a3b8;">Already have an account? <a href="/login">Sign in</a></p>
</div>
<div class="features">
<div class="feature">
<div class="feature-icon">🚀</div>
<div>Fast Hosting</div>
</div>
<div class="feature">
<div class="feature-icon">🔒</div>
<div>Secure</div>
</div>
<div class="feature">
<div class="feature-icon"></div>
<div>Free</div>
</div>
</div>
</div>
</div>
</body>
</html>