gpt-4o-2024-11-20· OpenAI
WildChat-4.8M (AI2)
Created to me html code login page with CSS beutifull
- User
Created to me html code login page with CSS beutifull
- Assistant
Here's an example of a beautiful and responsive login page with HTML and CSS:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login Page</title> <style> /* Global Reset */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; } /* Background Styling */ body { background: linear-gradient(to right, #6a11cb, #2575fc); display: flex; justify-content: center; align-items: center; min-height: 100vh; } /* Login Box */ .login-box { background: #ffffff; padding: 40px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; } /* Main Heading */ .login-box h2 { text-align: center; margin-bottom: 20px; color: #333; } /* Form Styling */ .login-box form { display: flex; flex-direction: column; } .login-box label { font-size: 14px; font-weight: bold; margin-bottom: 5px; color: #555; } .login-box input { padding: 10px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; font-size: 16px; } .login-box input:focus { border-color: #2575fc; outline: none; box-shadow: 0 0 4px rgba(37, 117, 252, 0.3); } /* Submit Button */ .login-box button { background: #2575fc; color: white; padding: 12px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background 0.3s ease; } .login-box button:hover { background: #1d5bbf; } /* Links */ .login-box .links { margin-top: 10px; text-align: center; } .login-box .links a { color: #2575fc; text-decoration: none; font-size: 14px; } .login-box .links a:hover { text-decoration: underline; } </style> </head> <body> <div class="login-box"> <h2>Login</h2> <form action="#"> <label for="email">Email</label> <input type="email" id="email" name="email" placeholder="Enter your email" required> <label for="password">Password</label> <input type="password" id="password" name="password" placeholder="Enter your password" required> <button type="submit">Login</button> </form> <div class="links"> <p>Don't have an account? <a href="#">Sign up here</a></p> <p><a href="#">Forgot your password?</a></p> </div> </div> </body> </html>Features:
- Responsive Design: Adjusts beautifully on smaller and larger screens.
- Gradient Background: Adds a modern and eye-catching design.
- Hover Effects: The button and links respond visually when hovered.
- Simple & Clean Form Styling: User-friendly and elegant.
You can save the code as an
HTMLfile and open it in your browser to view this login page. Let me know if you'd like further customizations!