| <!DOCTYPE html>
|
| <html>
|
|
|
| <head>
|
| <title>Login - 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;
|
| }
|
|
|
| button {
|
| width: 100%;
|
| padding: 14px;
|
| background: linear-gradient(135deg, #6366f1, #8b5cf6);
|
| 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(99, 102, 241, 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;
|
| }
|
|
|
| .register-link {
|
| text-align: center;
|
| }
|
|
|
| .register-link a {
|
| color: #818cf8;
|
| text-decoration: none;
|
| font-weight: 500;
|
| transition: color 0.3s ease;
|
| }
|
|
|
| .register-link a:hover {
|
| color: #a5b4fc;
|
| }
|
|
|
| .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: #6366f1;
|
| top: -100px;
|
| left: -100px;
|
| animation: float 8s ease-in-out infinite;
|
| }
|
|
|
| .orb-2 {
|
| background: #c084fc;
|
| bottom: -100px;
|
| right: -100px;
|
| animation: float 8s ease-in-out infinite reverse;
|
| }
|
|
|
| @keyframes float {
|
| 0%, 100% {
|
| transform: translate(0, 0);
|
| }
|
| 50% {
|
| transform: translate(30px, 30px);
|
| }
|
| }
|
| </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>Sign in to 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="Enter your password" required>
|
| </div>
|
|
|
| <button type="submit">Sign In</button>
|
| </form>
|
|
|
| <div class="divider">
|
| <span>or</span>
|
| </div>
|
|
|
| <div class="register-link">
|
| <p style="color: #94a3b8;">Don't have an account? <a href="/register">Create one</a></p>
|
| </div>
|
| </div>
|
| </div>
|
| </body>
|
|
|
| </html>
|
|
|