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"&

Banner image/Hero Image Tutorial with HTML and CSS

     In this video, we will be creating a banner/hero image using CSS. A banner or hero image is a large, full-width image that is typically placed at the top of a website or webpage and is used to visually represent the content or purpose of the page. We will be using CSS properties such as background-image and background-size to create the banner/hero image, as well as some basic layout techniques to ensure that it looks great on all devices. By the end of this tutorial, you will have a fully functional banner/hero image that you can use on your own website. So, if you want to learn how to create a banner/hero image using CSS, be sure to follow this tutorial till the end.   index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Tutorial 6</title> <link rel="stylesheet" href="css/tutorial6.css"> <link href="https://fonts.googleapis.co

Image with Accordion Effect on Hover using CSS and HTML

     Hey there, folks! Are you looking to jazz up your website's image galleries? Well, you've come to the right place! In this tutorial, we'll show you how to create an image with accordion effect on hover using HTML and CSS. First off, let's chat about HTML and CSS. HTML is like the building blocks of web pages, while CSS adds style and personality to your website.       By combining these two, you can create some seriously cool designs that'll knock your user's socks off!In this tutorial, we're gonna be using CSS animation effects to make an accordion effect on an image when a user hovers over it. It's a slick way to add a bit of movement and interactivity to your web design. To get started, we'll walk you through creating a basic HTML structure for your image.       Then, we'll apply some CSS styles to give it that fancy accordion look. Finally, we'll create a hover effect using CSS animation that'll make your image expand and colla