<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Login Form</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"> <style> body { font-family: Arial, sans-serif; background: #f0f2f5; display: flex; justify-content: center; align-items: center; height: 100vh; } .login-box { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 300px; } .login-box h2 { text-align: center; margin-bottom: 20px; color: #333; } .input-box { position: relative; margin-bottom: 20px; } .input-box input { width: 100%; padding: 10px 35px; border: 1px solid #ccc; border-radius: 5px; outline: none; } .input-box i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #888; } .btn { width: 100%; padding: 10px; background: #007bff; border: none; border-radius: 5px; color: #fff; font-size: 16px; cursor: pointer; } .btn:hover { background: #0056b3; } </style> </head> <body> <div class="login-box"> <h2>Login</h2> <form> <div class="input-box"> <i class="fa fa-user"></i> <input type="text" placeholder="Username" required> </div> <div class="input-box"> <i class="fa fa-lock"></i> <input type="password" placeholder="Password" required> </div> <button type="submit" class="btn">Login</button> </form> </div> </body> </html>