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...

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...

Responsive Navigation Menu Bar using only HTML & CSS

Responsive navigation menu bar plays an important role for every website. The navigation menu bar creates user satisfaction with the beauty of the website. The user needs a responsive navbar so that he can easily find the topic of his choice.  I have designed many more types of menubars before. But in that case, I used JavaScript code to execute the menu button. I have not used any JavaScript or external JavaScript library for this design. I have created this Responsive Navigation menu bar using pure CSS and HTML code. I only used CSS code to make it responsive. I have made it responsive using only the  @media function of CSS code. Here I have basically used a logo and used five menu items . I have used the hover effect on the menu links. The background color will change when you click on those items or move the mouse. Video Tutorial of Responsive Navigation Menu Bar You can watch the video tutorial below to know how it works and how to make it. How T...

Automatic Image Slider using Only HTML & CSS

In this article, I am going to show you how to create an automatic image slider using only HTML and CSS code. We know that an image slider is a simple web element that is used to organize different images of the website in one place.  There are different types of image sliders and the most automatic image slider is used. This type of slider is mainly used in the hero section of the homepage of various websites. In addition, different types of services or portfolio websites are used to decorate the images of many types of projects.  Basically, this type of design has no navigation buttons which means there is no way to change the image manually. The images here will continue to change automatically from time to time. You can set this time in advance.  First of all, I set the background of a web page to black. Then I arranged all the images nicely there. In this case, I did not use any JavaScript code . It was created using effects in the animation of css3. ...

3D Image Slideshow using Only HTML and CSS

3D Image Slideshow is a type of image gallery that is currently used on a variety of websites. It helps to keep many types of images neatly arranged together. This not only enhances the beauty of the website but also user satisfaction.  I have already created many types of image sliders and image galleries but it is a little different. Basically, we use JQuery or JavaScript to change the image in other designs. However, I did not use any JavaScript in this case. In this case, I made it using only HTML and css3 . Yeah Al that sounds pretty crap to me, Looks like css3 just got used to the modern animation effect .  In this case, no button was created to change the image. It tends to change from time to time by itself. This means that it is an automatic 3d image slider built with HTML and CSS code only. This 3D image slider is like a square box. At certain intervals, this box rotates from right to left. I have used four images around this box. When the box is rotated, e...