Spaces:
Running
Running
| <html lang="en" class="scroll-smooth"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Login / Signup – ScholarGPT</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| </head> | |
| <body class="min-h-screen bg-gradient-to-br from-blue-100 to-purple-200 dark:from-gray-900 dark:to-gray-800 flex items-center justify-center"> | |
| <div class="bg-white dark:bg-gray-900 shadow-lg rounded-2xl p-8 w-full max-w-md"> | |
| <h2 class="text-2xl font-bold text-center text-gray-900 dark:text-white mb-6">Welcome Back</h2> | |
| <form class="space-y-4"> | |
| <input type="email" placeholder="Email" class="w-full px-4 py-2 rounded-xl bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white focus:outline-none" /> | |
| <input type="password" placeholder="Password" class="w-full px-4 py-2 rounded-xl bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white focus:outline-none" /> | |
| <button class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-2 rounded-xl transition"> | |
| Login | |
| </button> | |
| </form> | |
| <p class="mt-6 text-center text-sm text-gray-600 dark:text-gray-400"> | |
| Don't have an account? | |
| <a href="#" onclick="toggleSignup()" class="text-blue-600 dark:text-blue-400 hover:underline">Sign Up</a> | |
| </p> | |
| </div> | |
| <script> | |
| function toggleSignup() { | |
| document.querySelector("h2").textContent = "Create Account"; | |
| const btn = document.querySelector("button"); | |
| btn.textContent = "Sign Up"; | |
| } | |
| </script> | |
| </body> | |
| </html> | |