Creating a beautiful login page involves adding various design elements such as a background image, a form for entering login credentials, and some styling to make it visually appealing. Below is an example of HTML code for a simple yet beautiful login page:
<!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>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background: url('background-image.jpg') no-repeat center center fixed;
background-size: cover;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.login-container {
background: rgba(255, 255, 255, 0.8);
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
text-align: center;
}
.login-container h2 {
margin-bottom: 20px;
color: #333;
}
.login-container input {
width: 100%;
padding: 10px;
margin: 10px 0;
border-radius: 4px;
border: 1px solid #ccc;
}
.login-container button {
width: 100%;
padding: 10px;
border: none;
border-radius: 4px;
background: #007bff;
color: #fff;
cursor: pointer;
}
</style>
</head>
<body>
<div class="login-container">
<h2>Login</h2>
<form>
<input type="text" placeholder="Username" required>
<input type="password" placeholder="Password" required>
<button type="submit">Login</button>
</form>
</div>
</body>
</html>
In this example, the background image is set as the page background, and the form is styled using CSS to make it visually appealing. Keep in mind that you may need to adjust the styles and layout to fit your specific design requirements.