Solution: Neumorphism Login Form using HTML & CSS with source code, demo, and also how you can execute full program easily. To complete the program you need to follow those steps given bellow
Live Demo
Also Helpful –
Neumorphism Login Form using HTML & CSS
Description
Back to coding, To complete this program with debugging free code you have to create two files. The first file is to HTML and the second file gonna be CSS for the style part,
index.html
Create an HTML file named ‘index.html‘ and put those codes given below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
<!-- Coding Debugging (https://codingdebugging.com) --> <!DOCTYPE html> <html> <head> <title>Neumorphism Login Form - Coding Debugging</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Font Fwesome Icon --> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"> <!-- My Stylesheet --> <link rel="stylesheet" href="style.css"> </head> <body> <div class="content"> <div class="text">Login Form</div> <form action=""> <div class="field"> <input type="text" required> <span class="fa fa-user"></span> <label>Email or Phone</label> </div> <div class="field"> <input type="password" required> <span class="fa fa-lock"></span> <label>Password</label> </div> <div class="forgot-pass"> <a href="">Forgot Password?</a> </div> <button>Sign In</button> <div class="sign-up">New Here? <a href="">signup Now</a> </div> </form> </div> </body> </html> |
style.css
Create a CSS file named ‘style.css‘ and put those codes given below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
@import url('https://fonts.googleapis.com/css2?family=Baloo+Thambi+2:wght@400;500;600;700;800&display=swap'); *{ margin: 0; padding: 0; box-sizing: border-box; font-family: 'Baloo Thambi 2', cursive; } html,body{ height: 100%; } body{ display: grid; place-items: center; background: #dde1e7; text-align: center; } .content{ width: 330px; padding: 40px 30px; background: #dde1e7; border-radius: 10px; box-shadow: -3px -3px 7px #ffffff73, 2px 2px 5px rgba(94,104,121,0.288); } .content .text{ font-size: 33px; font-weight: 600; margin-bottom: 35px; color: #595959; } .field{ height: 50px; width: 100%; display: flex; position: relative; } .field:nth-child(2){ margin-top: 20px; } .field input{ height: 100%; width: 100%; padding-left: 45px; outline: none; border: none; font-size: 18px; background: #dde1e7; color: #595959; border-radius: 25px; box-shadow: inset 2px 2px 5px #BABECC, inset -5px -5px 10px #ffffff73; } .field input:focus{ box-shadow: inset 1px 1px 2px #BABECC, inset -1px -1px 2px #ffffff73; } .field span{ position: absolute; color: #595959; width: 50px; line-height: 50px; } .field label{ position: absolute; top: 50%; transform: translateY(-50%); left: 45px; pointer-events: none; color: #666666; } .field input:valid ~ label{ opacity: 0; } .forgot-pass{ text-align: left; margin: 10px 0 10px 5px; } .forgot-pass a{ font-size: 16px; color: #3498db; text-decoration: none; } .forgot-pass:hover a{ text-decoration: underline; } button{ margin: 15px 0; width: 100%; height: 50px; font-size: 18px; line-height: 50px; font-weight: 600; background: #dde1e7; border-radius: 25px; border: none; outline: none; cursor: pointer; color: #595959; box-shadow: 2px 2px 5px #BABECC, -5px -5px 10px #ffffff73; } button:focus{ color: #3498db; box-shadow: inset 2px 2px 5px #BABECC, inset -5px -5px 10px #ffffff73; } .sign-up{ margin: 10px 0; color: #595959; font-size: 16px; } .sign-up a{ color: #3498db; text-decoration: none; } .sign-up a:hover{ text-decoration: underline; } |
Thank you for visiting!
We appreciate you for your precious time. I hope you are learn something from here! If you have any queries about this coding comment down below we will reply ASAP.
Keep coding, Keep debugging!