Skip to main content

SIMPLE & RESPONSIVE GLASSMORPHISM LOGIN FORM using HTML & CSS

    In this tutorial, we will show you how to create a simple and responsive glassmorphism login form using HTML and CSS. If you're interested in web development and want to learn how to create a sleek and modern login form for your website, then this video is perfect for you!Glassmorphism is a popular design trend that gives a glass-like effect to elements on a web page. It involves using translucent backgrounds and blurred elements to create a sleek and modern look. In this tutorial, we will show you how to apply glassmorphism to a login form using HTML and CSS. To start, we will create a basic login form in HTML. This will include input fields for the username and password, as well as a submit button for users to sign in. We will also add some basic styling using CSS, such as setting the background color and font styles.

    Next, we will dive into the main focus of this tutorial - creating the glassmorphism effect. We will use CSS properties such as backdrop-filter and blur to create a translucent background for the login form. This will give it a glass-like appearance with a blurred effect, making it visually appealing and modern. We will also show you how to add hover and focus effects to the login form to make it more interactive. For example, when users hover over the input fields, we will apply some CSS transitions to create a smooth animation effect. We will also add some styling to the submit button to make it more visually appealing when clicked. As we progress, we will make the login form responsive, meaning it will adapt to different screen sizes, such as mobile devices and tablets. 

    We will use CSS media queries to adjust the layout and styling of the login form based on the screen size, ensuring that it looks great on all devices. Throughout the video, we will explain each step in detail and provide you with the code snippets so you can follow along and implement the glassmorphism login form on your own website. We will also share some tips and tricks for troubleshooting common issues and making adjustments to the design to suit your specific needs.By the end of this tutorial, you will have a solid understanding of how to create a simple and responsive glassmorphism login form using HTML and CSS. 

    You will be able to apply this knowledge to your own web projects and create modern and visually appealing login forms that will enhance the user experience on your website. So, if you're looking to level up your web development skills and create sleek and modern login forms, then be sure to check out this video tutorial. Don't forget to like, comment, and subscribe to our channel for more web development tutorials and tips. Happy coding!

index.html


    <!DOCTYPE html>
    <html lang="en">
      <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Glassmorphism Login Form</title>
        <link rel="stylesheet" href="style.css">
      </head>
      <body>
         <div class="container">
            <h2>Login Form</h2>
            <form>
                <div class="form-group">
                    <input type="text" id="username" placeholder="username" required/>
                    <input type="password" id="password" placeholder="password" required/>
                    <input type="submit" id="btn" placeholder="login" required/>
                </div>
                <div class="under-button">
                  <a id="fp" href="#"><p>Forgot Password</p></a>
                  <p><b>or</b></p>
                  <a id="su" href="#"><p>Sign Up</p></a>
                </div>
            </form>
         </div>
      </body>
    </html>


style.css


    body{
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      width: 100%;
      background-image: url(/img.jpg);
      background-size: cover;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      font-family: Arial, Helvetica, sans-serif;
    }

  .container{
    background: rgba(139,139,139, 0.229);
    border-radius: 5%;
    backdrop-filter: blur(8px);
    padding: 40px;
    height: 450px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 15px 25px rgba(97, 97, 97, 0.122);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  h2{
    text-align: center;
    color: #484848;
    margin-bottom: 30px;
    font-size: 30px;
  }

  #username, #password{
    width: 100%;
    padding: 20px 20px;
    margin: 15px 0;
    display: inline-block;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.8);
    font-size: 19px;
    color: #222222;
    outline: none;
  }

  #btn{
    background-color: #43ba8d;
    color: #ffffff;
    padding: 18px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    outline: none;
    transition: background-color 0.3s ease;
    margin: 10px 0;
    width: 100%;
  }

  #btn:hover{
    background-color: #379a74;
  }

  form{
    width: 350px;
    display: flex;
    align-items: center;
    flex-direction: column;
  }

  .under-button{
    width: 70%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    font-size: 18px;
  }

  #su{
    text-decoration: none;
    background: none;
    padding: 0;
    width: auto;
    color: #484848;
  }

  #fp{
    text-decoration: none;
    background: none;
    padding: 0;
    width: auto;
    color: #484848;
  }

  .form-group{
    margin-bottom: 20px;
    width: 100%;
  }

  #username:focus,
  #password:focus{
    background-color: rgba(255,255,255. 0.8);
    border: 1px solid #4caf50;
  }

  @media screen and (max-width: 768px){
    .container{
      max-width: 100%;
    }
  }


WATCH FULL VIDEO HERE!

Comments

Popular posts from this blog

Auto Image Slider using CSS Only

     Are you ready to learn how to create an image slider using only CSS? Look no further! In this tutorial, we'll walk you through the step-by-step process of building a sleek and modern image slider using HTML and CSS. No JavaScript required! In this tutorial We'll cover setting up the HTML structure for the slider.       This will include creating the container element and styling the slider with CSS. You'll also learn how to add transitions and animations to create a smooth sliding effect. By the end of this tutorial, you'll have a fully functional image slider that you can use on your own website. Whether you're a beginner or an experienced developer, this tutorial has something for you. So let's get started creating your own image slider using CSS today! index.html <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="css/style.css"...

Display Battery Status using HTML, CSS and Javascript

     Hey everyone, welcome to Code Instinct! In this tutorial, we're going to show you how to create a battery status indicator using HTML, CSS and Javascript. This is a great Javascript project for beginners who want to learn how to use the Battery API Javascript and create a battery level indicator. We'll also be showing you how to add a battery charging animation and CSS battery shape to make it more visually appealing.Our tutorial will cover all the steps needed to create your own battery status indicator with ease. You'll learn how to use the Battery API Javascript to get the current battery level of your device, and display it using HTML and CSS.       We'll also be covering the different types of battery indicators you can use and how to customize them to fit your website design. You'll learn how to create a battery charging animation using Javascript and CSS to give your battery status indicator a more dynamic look.At Code Instinct, we're dedi...

Glass Fill Effect using CSS Only

     In this tutorial, we will be creating a glass fill animation effect without using any SVG graphics or JavaScript. We will be using only CSS to create the animation. This animation is perfect for creating a liquid filling effect on a website. The tutorial is easy to follow and can be implemented on any website. So, if you're looking to add a cool animation effect to your website, this tutorial is for you. With this method, you can create a realistic looking glass fill animation effect without the need for any additional graphics or libraries.  index.html <html> <head> <title>TUTORIAL</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="glass-ctr"> <div class="glass"></div> <div class="water-ctr"> <div class="water"></div> ...