Neumorphism login form
Neumorphism login form
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>nav</title>
<style>
body {
margin: 0;
padding: 5px;
box-sizing: border-box;
background-color: #202020;
font-family: arial;
}
nav {
background: #202020;
box-shadow: 5px 5px 10px rgba(10, 10, 10, 0.7), -5px -5px 10px rgba(50, 50, 50, 0.6);
}
nav ul {
list-style: none;
padding: 0;
text-align: center;
}
nav ul li {
margin: 15px 12px;
display: inline-block;
}
a {
text-decoration: none;
font-weight: bold;
font-variant: small-caps;
color: rgba(0, 204, 251, 0.7);
font-size: 1em;
}
a:hover {
color: crimson;
border-bottom: 2px solid rgba(121, 251, 0, 0.7);
}
section {
display: flex;
align-items: center;
justify-content: center;
height: 70vh;
}
form {
padding: 50px;
box-sizing: border-box;
box-shadow: 5px 5px 10px rgba(10, 10, 10, 0.7), -5px -5px 10px rgba(50, 50, 50, 0.6);
}
form label {
display: inline-block;
margin-bottom: 2px;
font-family: arial;
font-weight: bold;
font-variant: small-caps;
color: crimson;
font-size: 1em;
}
input[type="text"] , input[type="password"] {
display: inline-block;
padding: 8px;
border-radius: 10px;
color: rgba(0, 204, 251, 0.9);
letter-spacing: 2px;
background: #202020;
border: none;
box-shadow: inset 5px 5px 10px rgba(10, 10, 10, 0.7), inset -5px -5px 10px rgba(50, 50, 50, 0.6);
}
input[type="button"] {
display: flex;
align-self: center;
justify-content: center;
color: rgba(121, 251, 0, 0.7);
border: none;
border-radius: 20px;
font-weight: bold;
font-variant: small-caps;
letter-spacing: 4px;
margin: 0 auto 0 auto;
width: 100px;
height: 40px;
background: #202020;
box-shadow: 5px 5px 10px rgba(10, 10, 10, 0.7), -5px -5px 10px rgba(50, 50, 50, 0.6);
}
input[type="button"]:hover {
box-shadow: 5px 5px 10px rgba(10, 10, 10, 0.7), -5px -5px 10px rgba(50, 50, 50, 0.5), inset 5px 5px 10px rgba(10, 10, 10, 0.7), inset -5px -5px 10px rgba(50, 50, 50, 0.5);
transform: scale(1.1);
color: rgba(121, 251, 0, 0.7);
}
</style>
</head>
<body>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Projects</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
<li><a href="#">Faq</a></li>
</ul>
</nav>
<section>
<form action="#"> <label for="username">Username :</label>
<br>
<input type="text" name="username" id="username" placeholder="Username">
<br>
<br> <label for="password">Password :</label>
<br>
<input type="password" name="password" id="password" placeholder="Password">
<br>
<br>
<br>
<input type="button" value="Login">
</form>
</section>
</body>
</html>