lovebyte-chronicles / login.html
wafflebrain's picture
<!DOCTYPE html>
21400a8 verified
Raw History Blame Contribute Delete
5.82 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login - LoveByte Chronicles</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
.login-card {
backdrop-filter: blur(16px);
background-color: rgba(255, 255, 255, 0.8);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}
.heart-float {
position: absolute;
animation: float 6s ease-in-out infinite;
opacity: 0.8;
}
@keyframes float {
0%, 100% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-20px) rotate(5deg); }
}
.input-field:focus {
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}
.btn-primary {
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}
</style>
</head>
<body class="min-h-screen flex items-center justify-center p-4 relative overflow-hidden">
<!-- Floating hearts background -->
<div id="hearts-container" class="absolute inset-0 pointer-events-none"></div>
<div class="login-card rounded-2xl w-full max-w-md p-8 border border-gray-100 relative z-10">
<div class="text-center mb-8">
<h1 class="text-3xl font-bold text-gray-800 mb-2">Welcome Back</h1>
<p class="text-gray-600">Sign in to continue to your love story</p>
</div>
<form id="loginForm" class="space-y-6">
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
<input
type="email"
id="email"
name="email"
placeholder="your.email@example.com"
value="malavika.love@example.com"
class="input-field w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition"
required
>
</div>
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
<input
type="password"
id="password"
name="password"
placeholder="β€’β€’β€’β€’β€’β€’β€’β€’"
value="ILoveYou3000"
class="input-field w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:border-blue-500 transition"
required
>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<input id="remember" name="remember" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="remember" class="ml-2 block text-sm text-gray-700">Remember me</label>
</div>
<a href="#" class="text-sm text-blue-600 hover:text-blue-500">Forgot password?</a>
</div>
<button type="submit" class="btn-primary w-full py-3 px-4 text-white font-medium rounded-lg">
Sign In
</button>
</form>
<div class="mt-6 text-center">
<p class="text-sm text-gray-600">
Don't have an account?
<a href="#" class="text-blue-600 hover:text-blue-500 font-medium">Create one</a>
</p>
</div>
</div>
<script>
// Create floating hearts
function createHearts() {
const container = document.getElementById('hearts-container');
const heartEmojis = ['❀️', 'πŸ’™', 'πŸ’›', 'πŸ’œ', 'πŸ’š'];
for (let i = 0; i < 15; i++) {
const heart = document.createElement('div');
heart.innerHTML = heartEmojis[Math.floor(Math.random() * heartEmojis.length)];
heart.className = 'heart-float text-2xl md:text-3xl';
heart.style.left = Math.random() * 100 + 'vw';
heart.style.top = Math.random() * 100 + 'vh';
heart.style.animationDelay = Math.random() * 5 + 's';
heart.style.animationDuration = 3 + Math.random() * 7 + 's';
container.appendChild(heart);
}
}
// Handle form submission
document.getElementById('loginForm').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
// Simple validation
if (email && password) {
// Redirect to main page after successful login
window.location.href = 'index.html';
}
});
document.addEventListener('DOMContentLoaded', () => {
feather.replace();
createHearts();
});
</script>
</body>
</html>