Skip to main content

Neumorphism login form UI Design using HTML and CSS

Neumorphism login form UI Design using HTML and CSS

In this article, I will show you how to create a Neumorphism login form UI design. We all know that the login form plays an important role in any website. Basically, we face the login form to access the account on different websites. Where we can log in to our account with a username and password.

 Neumorphism is currently a very popular UI trend that is being used extensively to create a variety of web elements. This type of design is more beautiful than ordinary design and it is much easier to make. 

This Neumorphism login form I created only with HTML and CSS code. Here is the complete color of the background color and the color of the web element. Basically, in this type of design, the background color of the web page and the element is completely the same. However, in this case, some shadows are created using CSS code which determines the size of these elements.

 I put everything here like a normal login form. First of all, I added a title then there is no place for username and password input. Then there is a login button and there is some text at the bottom.

Neumorphism login form UI Design [Live Demo]

You can use the demo section below to learn how it works. Here you will find the required source code which you can copy and use in any of your work.


See the Pen by Raj Template (@RajTemplate) on CodePen.

Hopefully, the demo above has helped you to get a live experience of this design. 

How to create a Neumorphism login form

Now I have shown below the complete tutorial on how to design this CSS Neumorphism login page. However, if you want to download the source code, then use the download button at the bottom of the article.

Step 1: Basic structure of login form

I have created the basic structure of this login form using the following HTML and CSS code. Only the basic structure of the login form and the following HTML and CSS codes are used to shape the login form.

 Here I used the background color of the webpage # dde1e7. In this case, I have used box-shadow to give shape to this login form. I used height: 420px and width: 350px of login form.

If you watch the demo, you will understand that I have made the two corners of this login form a little round. For this, I have used a border-radius. In this case, I have used a 40px border radius for bottom-right and top-left angles.


<div class="wrapper">
  <div class="login-form">

 </div>
</div>


*{
 margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  font-family: sans-serif;
}

body{
  background-color:#dde1e7;
}

.wrapper{
  width: 100%;
  padding: 0 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.login-form{
  width: 350px;
  height: 420px;
  padding: 0 45px;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: 0 auto;
  background: #dde1e7;
  box-shadow: -3px -3px 7px #ffffff8a,
              2px 2px 5px rgba(128, 135, 148, 0.562);
  border-bottom-right-radius: 40px;
  border-top-left-radius: 40px;
}


Basic structure of login form

Step 2: Add title

 I have added a title in the login form. I have used font-size: 30px and color black for this title. I used margin: 30px 0 15px to create some space on it. In this case, text-align: center has been used to place the text in the middle.


<div class="title">
  Login Form
</div>


.login-form .title{
  text-align: center;
  margin:30px 0 15px;
  font-weight: 600;
  color: #252525;
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 50px;
}


Add title

Step 3: Create a place to input

Now I have created the input places in this simple Neumorphism login form. Basically, two input spaces are used here, one for the email ID and the other for the password. The box-shadow inset function has been used to make the input places slightly inward.


<div class="input-fields">
  <input type="text" class="input" placeholder="Username">
  <input type="password" class="input" placeholder="Password">
</div>


.input-fields{
  width: 100%;
}

.input-fields .input{
  width: 100%;
  background: none;
  padding: 14px;
  margin-bottom: 22px;
  border: 2px solid #dde1e7;
    box-shadow:
              inset 2px 2px 5px #babecc,
              inset -5px -5px 10px #ffffff73;
}


Create a place to input

Step 5: Create a login button

I have created a login button using the following codes. Font-size: 23px of the text in this login button and padding: 8px to create some space around it. I have also used box-shadow in this picture to understand the size of the login form.

Added hover effect on login button. This button will move slightly inwards when you click on the button or move the mouse. I have used box-shadow: inset for this.


<div class="btn">login</div>


.btn{
  background: #dde1e7;
  margin-bottom: 40px;
  margin-top: 30px;
  letter-spacing: 3px;
  font-size: 23px;
  box-shadow: -3px -3px 7px #ffffff8a,
              2px 2px 5px rgba(128, 135, 148, 0.562);
  color: #252525;
  text-align: center;
  text-transform: uppercase;
  padding: 8px;
  cursor: pointer;
}
.btn:hover{
  color: #3498db;
  box-shadow: inset 2px 2px 5px #babecc,
              inset -5px -5px 10px #ffffff73;
}


Create a login button

Step 6: Add some external links

Below all here I have used two texts. One is a forgotten password and the other is for registration. Display: flex and justify-content: space-between has been used to keep these two texts on the same line.


<div class="content">
   <div class="items"><a href="#">Forgot Password</a></div>
   <div class="items"><a href="#">Register Here</a></div>
</div>


.content{
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.content .items a{
  text-decoration: none;
  font-size: 15px;
  color: #279bfa;
}
.content .items a:hover{
  color: blue;
}


how to make Neumorphism login form UI design

Hopefully from this article, you have learned how to make Neumorphism login form UI design. In the meantime, I have created many more designs using HTML and CSS. You can see those articles.






Comments

Popular Posts

Animated Progress Bar using Only HTML and CSS

Animated progress bar is mainly used in various business and personal web sites. css progress bar helps to organize your knowledge in a beautiful way. In this article, I am going to show you how to create an animated progress bar using only HTML and CSS code. I have made many other types of Progress Bar before but in that case, I have used JavaScript.  I have not used any JavaScript or external JavaScript library for this design. I created this Animated Progress Bar design using Pure HTML and CSS code. Skill bars are used on various websites to streamline the amount of experience, education, etc. with the help of animations. First of all, I have given the background-color: # 30336b of a web page. Then I made a small box here. I used four CSS Progress Bar in that box. The value of this bar will be zero when opening the page then gradually it will reach the pre-determined meaning. Video Tutorial of Pure CSS Progress Bar If you want to know how to make it better then you can watc

Sidebar Menu Using Only HTML and CSS

This article shows you how to create sidebar menus using HTML and CSS code only. I have previously created many types of sidebars and navigation menubars using only HTML and CSS code so you can see those designs if you want.  Side Menubar A popular web element is currently used in the sidebar along with menubars on various websites. Undoubtedly the side menu bar is much more attractive and for this, the quality and beauty of the website are greatly enhanced. Under normal circumstances, I have completely hidden the menu bar on the web page.  There is a menu button that can be clicked to view the entire menu bar. There is also a cancel button which, when clicked, will completely hide the sidebar. In the sidebar, I have added links to various menu items, profile names, profile images, social media platforms.  First I gave the profile image and below that, I gave the profile name. Then I added some menu items here and added icons to each menu item. Then I created the buttons of fo

Popup Login Form using Only HTML & CSS

In this article, I am going to show you how to create a pop-up login form using only HTML and CSS code. I have previously designed many more types of pop-up login forms , but in that case, I have used JavaScript. I did not use any JavaScript code in this design, only pure HTML and CSS code. In the case of this type of design, the complete login form is hidden. Instead, a button appears on which the complete login form can be viewed by clicking on it. One type of design is much more attractive than the usual login design and enhances the quality of the website a lot.  Like the normal form, it has everything here, namely the place to input the email ID and password and a login button. First I made a small button on the web page. Clicking on that button will show the complete login form.  There is a small cancel button in the login form which if clicked will hide the complete login form again. Video Tutorial of Popup Login Form If you want to know the complete step-by-step how I made