<!DOCTYPE html>
<html>
<head>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: #f0f0f0;
font-family: Arial, sans-serif;
}
.login-box {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
width: 300px;
}
.login-box h2 {
text-align: center;
margin-bottom: 20px;
}
.login-box input {
width: 100%;
padding: 10px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 8px;
}
.login-box button {
width: 100%;
padding: 10px;
background: blue;
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
}
.login-box button:hover {
background: darkblue;
}
</style>
</head>
<body>
<div class="login-box">
<h2>Login</h2>
<input type="text" placeholder="Username">
<input type="password" placeholder="Password">
<button>Login</button>
</div>
</body>
</html>
Explanation:
box-shadow
gives depth.input
andbutton
styled for modern UI.
Leave a Reply