



HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login Form 3</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<form class="login-form-3" action="#">
<h1><u>Login</u></h1>
<input type="text" name="email" placeholder="Email">
<input type="password" name="password" placeholder="Password">
<input type="submit" name="submit" value="- Login -">
</form>
</body>
</html>
CSS
body{
margin: 0;
padding: 0;
font-family: sans-serif;
background: #1e1e1e;
}
.login-form-3{
width: 555px;
height: 550px;
padding: 40px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
background: #C6B89E;
text-align: center;
border-radius: 12px;
border: none;
box-shadow: 10px 10px 10px #847A69;
}
.login-form-3 h1{
color: white;
text-transform: uppercase;
font-weight: 600;
font-size: 55px;
margin-top: 115px;
}
.login-form-3 input[type = "text"],
.login-form-3 input[type = "password"]{
border:0;
background: none;
display: block;
margin: 20px auto;
text-align: center;
border: 3px solid #1e1e1e;
padding: 14px 10px;
width: 280px;
height: 32px;
outline: none;
color: white;
border-radius: 12px;
transition: 0.25s;
}
.login-form-3 input[type = "text"]:focus,
.login-form-3 input[type = "password"]:focus{
width: 320px;
border-color: #7D6741;
border-radius: 24px;
}
.login-form-3 input[type = "submit"]{
border:0;
background: none;
display: block;
margin: 20px auto;
text-align: center;
border: 2px solid #7D6741;
padding: 14px 40px;
outline: none;
color: white;
border-radius: 24px;
transition: 0.35s;
cursor: pointer;
}
.login-form-3 input[type = "submit"]:hover{
background: #7D6741;
}
::placeholder{
font-size: larger;
font-weight: 400;
}
Để lại câu trả lời
Xem Bình Luận