By voidman on Sep 13, 2025 04:13
<html>
<body>
<head>
<title>fb login</title>
<link rel="stylesheet" href="beautify.css">
</head>
</body>
<div class="container">
<div class="logo"> fakebook</i> </div>
<div class="box">
<form>
<input type="text" placeholder="Enter your email or phone number" required>
<input type="password" placeholder="enter your password" required>
<button class="btn" type="submit">LOGIN </button>
<a href="#" class="fgpw">forgot password?</a>
<div class="divider"></div>
<button class="signup" type="submit">create new account
</button>
</form>
</div>
</div>
</body>
</html>
NOW CSS
html, body {
height: 100%;
margin: 0;
padding: 0;
}
body {
background: linear-gradient(pink, powderblue, lightblue);
}
.container {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
height: 100vh;
}
.logo {
color: midnightblue;
font-size: 30px;
margin-bottom: 20px;
}
.logo i {
margin-left: 5px;
}
.box {
width: 350px;
}
input {
width: 100%;
padding: 14px;
margin-bottom: 10px;
font-size: 20px;
border-radius: 5px;
border: 1px solid #ccc;
}
.btn {
color: palevioletred;
background-color: aquamarine;
border-radius: 10px;
padding: 14px;
border: none;
width: 100%;
margin-bottom: 10px;
cursor: pointer;
}
.fgpw {
display: block;
text-decoration: none;
font-size: 20px;
width: 100%;
margin-bottom: 10px;
text-align: center;
}
.fgpw:hover {
text-decoration: underline;
color: lightpink;
}
.divider {
border: 1px solid grey;
margin-bottom: 10px;
}
.signup {
padding: 14px;
background-color: palegreen;
border: none;
border-radius: 10px;
font-size: 20px;
color: white;
width: 100%;
cursor: pointer;
}