| | <!DOCTYPE html> |
| | <html lang="en" class="dark"> |
| | <head> |
| | <meta charset="UTF-8"> |
| | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | <title>Login - CraftyMunch</title> |
| | <script src="https://cdn.tailwindcss.com"></script> |
| | <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
| | <style> |
| | .gradient-text { |
| | background: linear-gradient(90deg, #d946ef 0%, #a855f7 100%); |
| | -webkit-background-clip: text; |
| | background-clip: text; |
| | color: transparent; |
| | } |
| | </style> |
| | </head> |
| | <body class="bg-gray-900 text-gray-100 min-h-screen"> |
| | <nav class="bg-gray-800 border-b border-gray-700 px-4 py-3"> |
| | <div class="max-w-7xl mx-auto flex items-center justify-between"> |
| | <div class="flex items-center space-x-2"> |
| | <i data-feather="hand" class="text-primary-500 w-8 h-8"></i> |
| | <span class="text-2xl font-bold gradient-text">CraftyMunch</span> |
| | </div> |
| | <a href="index.html" class="text-primary-500 hover:text-primary-400 transition"> |
| | Back to Home |
| | </a> |
| | </div> |
| | </nav> |
| |
|
| | <section class="max-w-md mx-auto py-16 px-4"> |
| | <div class="bg-gray-800 rounded-xl p-8 shadow-lg"> |
| | <h1 class="text-3xl font-bold mb-6 text-center">Welcome Back</h1> |
| | |
| | <form id="loginForm" class="space-y-6"> |
| | <div> |
| | <label for="loginEmail" class="block text-sm font-medium mb-1">Email</label> |
| | <input type="email" id="loginEmail" name="email" required |
| | class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500"> |
| | </div> |
| | |
| | <div> |
| | <label for="loginPassword" class="block text-sm font-medium mb-1">Password</label> |
| | <input type="password" id="loginPassword" name="password" required |
| | class="w-full bg-gray-700 border border-gray-600 rounded-lg px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary-500"> |
| | </div> |
| | |
| | <div class="flex items-center justify-between"> |
| | <label class="inline-flex items-center"> |
| | <input type="checkbox" class="text-primary-500 focus:ring-primary-500"> |
| | <span class="ml-2 text-sm">Remember me</span> |
| | </label> |
| | <a href="#" class="text-sm text-primary-500 hover:text-primary-400 transition">Forgot password?</a> |
| | </div> |
| | |
| | <div class="pt-2"> |
| | <button type="submit" |
| | class="w-full bg-primary-500 hover:bg-primary-600 text-white font-bold py-3 px-4 rounded-lg transition"> |
| | Log In |
| | </button> |
| | </div> |
| | |
| | <div class="text-center text-sm text-gray-400"> |
| | Don't have an account? |
| | <a href="register.html" class="text-primary-500 hover:text-primary-400 transition">Sign up</a> |
| | </div> |
| | </form> |
| | </div> |
| | </section> |
| |
|
| | <script> |
| | feather.replace(); |
| | |
| | document.getElementById('loginForm').addEventListener('submit', function(e) { |
| | e.preventDefault(); |
| | |
| | alert('Login successful! Redirecting...'); |
| | |
| | |
| | setTimeout(() => { |
| | window.location.href = 'index.html'; |
| | }, 1000); |
| | }); |
| | </script> |
| | </body> |
| | </html> |