Neumorphism Login Form using HTML & CSS

Neumorphism Login Form using HTML & CSS

Neumorphism Login Form using HTML & CSS

Neumorphism Login Form is much more interesting than other login designs. CSS Neumorphism Login Form You can easily create with HTML and CSS. In this article, I am going to show you how to create a Neumorphism login form using only HTML and CSS code. Earlier I made login form in many more designs.

 We all know that the login form is a very important element of a website. This type of login form is used to access accounts on various websites. There are different types of login forms that I have already created. Neumorphism is a very important UI trend. This design is much simpler and much more interesting to look at than the general design.

Neumorphism All these elements are made by a single color in the case of login design. In this case, the element and the background of the web page are completely the same. The size of the element is determined here using only the shadow of the CSS code.

Video Tutorial of Neumorphism Login Form

 You can watch the video below to know the complete tutorial on how I made this CSS Neumorphism login page.

Hopefully, you have learned how to make it from the video tutorial above. Everything here is like a normal login form. 

In the case of Neumorphism design, the background color of the webpage and the background color of the element is the same. In that case, the shape of the element is created using the shadow (box-shadow) of CSS.

First of all, I used a profile image. This image is slightly above the login form, meaning that half of the image is inside the Neomorphism Login Form Design and the other half is outside the login form. Which looks much more interesting and beautiful to look at. Below that, I used a title. I used email ID and password input space to log in. I have used one icon for each input. Then there is a login button. 

Normally the button rises slightly upwards. When you click on it, the button will move slightly inwards. I have used some text below everyone. All in all, it is a very simple CSS Neumorphism login form design.

Below I have given a live demo that will help you know how it works. Below you will find the required source code which you can copy and use for any of your own purposes. Also at the bottom of the article, I have given the download button to download the source code. But if you are a beginner then you must follow the tutorial below.

See the Pen
Neumorphism login form 3
by Foolish Developer (@fghty)
on CodePen.

Neumorphism Login Form using HTML & CSS

Now is the time to know which code I have used for any purpose. To use the source code, first create an HTML and CSS file. Then attach that CSS file to the HTML file. Paste the above HTML codes into the HTML file and paste the CSS codes into the CSS file.

Step 1: Create the basic structure of the login form

First I designed the background of this login form. Here I made a Neumorphism design box. I have used the background-color # dde1e7 of the webpage and the minimum height is 100vh. I used the width of the box: 330 px and min-height: 100px

In this case, I have used box-shadow here to understand something more clearly from the webpage of the box. As I said earlier in the case of Neumorphism design the background color of the web page and the element are the same. 

In this case, the elements are identified using only the shadow of the CSS code. Here margin-top and margin-left are used to place this box in the middle of the webpage.

<div class=”content”>
</div>
body{
  margin:0;
  padding:0;
  font-family:sans-serif;
  background: #dde1e7;
  user-select:none;
  min-height: 100vh;
}
 
.content{
  align-items: center;
  justify-content: center;
  background: #dde1e7;
  padding: 45px 35px 40px;
  box-sizing: border-box;
  margin-top: 10%;
  margin-left: 30%;
  width: 330px;
  height: auto;
  min-height:100px;
  border-radius: 5px;
  box-shadow: -4px -4px 7px #fffdfdb7,
              3px 3px 5px rgba(94, 104, 121, 0.288);
}
Create the basic structure of the login form

Step 2: Add a profile image

Now I will add a profile image. For which I added the image using everyone’s first HTML and designed that image using CSS code. In this case, I have used the height and width of the image 90 px. 

Margin-top: -100px has been used to place something above the login form. Border-radius: 50px is used to make round. Also here is a border and shadow is used around the image for which I have used box-shadow. Margin-left: 31% has been used to place this profile image in the middle of the login form.

<img src=”img.jpg”>
.content img{
  width: 90px;
  height: 90px;
  border-radius: 50px;
  margin-bottom: 20px;
  margin-left: 31%;
  margin-top: -100px;
  box-shadow: 
       0px 0px 2px #6b6a6a,
       0px 0px 0px 5px #ecf0f3,
       5px 5px 15px #a7aaaf,
      -8px -8px 15px #ffffff;
}
Add a profile image

Step 3: Add titles to the form

Now I have used a title. As you can see in the demo, a title is used below the profile image. I have used font-size: 30px of that title, text-align: center has been used to keep it in the middle.

<div class=”text”> LOGIN </div>
.text{
  font-size: 30px;
  text-align: center;
  letter-spacing: 2px;
  color: #000000;
  font-weight: 600;
}
Add titles to the form

Step 4: Create Email Password Input Place

Now I will create a place to input the email ID and password to log in using the input function of HTML. Here I have used the font awesome icon. So of course when you add a font awesome CDN link to your HTML file. 

Using input I have created a place to input email IDs and passwords here. In each case, we have used a placeholder that will help us understand what to input in a box.

<form>
 <div class=”field”>
   <div class=”fas fa-envelope”></div>
     <input type=”text” placeholder=”Email or Phone”>
 </div>
 <div class=”field”>
   <div class=”fas fa-lock”></div>
      <input type=”password” placeholder=”Password”>
 </div>
</form>
Create Email Password Input Place

Step 5: Design the input using CSS code

Now using CSS I will design those input places. I have used the height of the icon used in this case: 50px and the width: 60px. I used font-size: 20px to make the icons a bit bigger. The input space here is line-height: 50px and width 100%. 

In this case outline: none and border: none have been made so that there is no border. In this case, you will see that the input space is slightly inward. I have used the box-shadow inset for this.

form{
  margin-top: 40px;
}
form .field{
  margin-top: 20px;
  display: flex;
}
 
.field .fas{
  background: #dde1e7;
  color: #868686;
  font-size: 20px;
  line-height: 50px;
  height: 50px;
  width: 60px;
  border: none;
  text-align: center;
  border-right: none;
  box-shadow: inset 2px 2px 5px #babecc,
              inset -5px -5px 10px #ffffff73;
}
.field input,form button{
  background: #dde1e7; 
  padding: 0 15px;
  border-radius: 0 5px 5px 0;
  height: 50px;
  width: 100%;
  font-size: 19px;
  color: #868686;
  outline: none;
  border: none;
  box-shadow: inset 2px 2px 5px #babecc,
              inset -5px -5px 10px #ffffff73;
}
Design the input using CSS code

Step 6: Create a login button to login

Now I will create a login button. For this, I have used the following HTML and CSS codes. First I created a button using HTML’s button function. 

Then I designed it by CSS code. The hove effect has been used on the button. When you click on that login button, the login button will move slightly inwards and the color will change.

<button>LOGIN</button>
form button{
  color:  #363837;
  margin-top: 40px;
  border-radius: 5px!important;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: -3px -3px 7px #fffdfdb7,
               2px 2px 5px rgba(94, 104, 121, 0.288);
}
 
button:hover{
  color: #0dafbb;
  box-shadow: inset 2px 2px 5px #babecc,
              inset -5px -5px 10px #ffffff73;
}
Neumorphism Login Form UI design using HTML & CSS

Step 7: Add extra links

At the end of it all, I used some text and used a link. Text-align: center is used to place this link and text in the middle. Text-decoration: none has been used so that there is no underline below the link.

<div class=”link”>Not a member?
    <a href=”#”>Signup now</a>
/div>
.link{
  margin-top: 35px;
  color: #000000;
  text-align: center;
}
.link a{
  color: #08adef;
  text-decoration: none;
}
.link a:hover{
  text-decoration: underline;
}
CSS Neumorphism Login page using HTML & CSS

Hopefully, in this tutorial, I have explained to you how I created this CSS Neumorphism login form design. If you want to know more about how it is made, you can watch the video tutorial above. 

Earlier using Neumorphism design I have created many types of elements like login form, sidebar menu, navigation menu, calculator, etc. If there is any problem or the download button below does not work, you can let me know by commenting.