Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    How to create Airpods Animation using HTML CSS and JS

    15 July 2025

    How to create Heart Animation using HTML CSS and JS

    11 July 2025

    How to create Tab Bar Navigation using HTML CSS and JS

    9 July 2025
    Facebook X (Twitter) Instagram YouTube Telegram Threads
    Coding StellaCoding Stella
    • Home
    • Blog
    • HTML & CSS
      • Login Form
    • JavaScript
    • Hire us!
    Coding StellaCoding Stella
    Home - HTML & CSS - How to make Glassmorphism Login form using HTML & CSS
    HTML & CSS

    How to make Glassmorphism Login form using HTML & CSS

    Coding StellaBy Coding Stella7 April 2025No Comments3 Mins Read
    Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Email WhatsApp Copy Link

    Let’s create a Glassmorphism Login Form using HTML and CSS. This modern design style features a frosted glass effect with soft shadows and transparency, giving your login page a sleek and futuristic look.

    We’ll use:

    • HTML to structure the login form.
    • CSS to apply the glassmorphism style with blur effects, gradients, and smooth borders.

    This project is perfect for practicing trendy UI design techniques and enhancing your frontend skills. Whether you’re a beginner or experienced, it’s a great way to make your login page visually appealing and modern. Let’s dive in and build something stylish! ✨🔐

    HTML :

    This HTML code creates a stylish login form using Glassmorphism design (handled in the linked CSS). It includes input fields for email and password, a “Remember me” checkbox, a “Forgot Password” link, and a prompt to register if the user doesn’t have an account.

    <!DOCTYPE html>
    <html lang="en" >
    <head>
      <meta charset="UTF-8">
      <title>CSS Glassmorphism | @codingstella</title>
      <link rel="stylesheet" href="./style.css">
    
    </head>
    <body>
    
    <div class="wrapper">
    
      <div class="login-box">
        <form action="">
          <h2>Login</h2>
    
          <div class="input-box">
            <span class="icon">
              <ion-icon name="mail"></ion-icon>
            </span>
            <input type="email" required>
            <label>Email</label>
          </div>
    
          <div class="input-box">
            <span class="icon">
              <ion-icon name="lock-closed"></ion-icon>
            </span>
            <input type="password" required>
            <label>Password</label>
          </div>
    
          <div class="remember-forgot">
            <label><input type="checkbox"> Remember me</label>
            <a href="#">Forgot Password?</a>
          </div>
    
          <button type="submit">Login</button>
    
          <div class="register-link">
            <p>Don't have an account? <a href="#">Register</a></p>
          </div>
        </form>
      </div>
    
    </div>
    
    </body>
    </html>
    

    CSS :

    This CSS code styles a full-screen, centered login form with a modern glassmorphism effect – featuring a blurred transparent box, white text, smooth animations for input labels, and responsive design for mobile devices, all using the Montserrat font and a background image.

    @import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
    
    * {
      margin:0;
      padding:0;
      box-sizing:border-box;
      font-family: 'Montserrat', sans-serif;
    }
    .wrapper {
      display:flex;
      justify-content:center;
      align-items: center;
      height:100vh;
      width:100%;
      background:url('https://codingstella.com/wp-content/uploads/2024/01/download-7.jpeg') no-repeat;
      background-size:cover;
      background-position:center;
    }
    
    .login-box {
      position: relative;
      width: 407px;
      height: 455px;
      background: transparent;
      border-radius: 10px;
      border: 2px solid rgba(255,255,255,.5);
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 0 10 rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(8px);
    }
    h2 {
      font-size:2em;
      color:#fff;
      text-align:center;
    }
    .input-box {
      position:relative;
      width:310px;
      margin:30px 0;
      border-bottom:1px solid #fff;
    }
    .input-box label {
      position:absolute;
      top:50%;
      left:5px;
      transform:translateY(-50%);
      font-size:1em;
      color:#fff;
      pointer-events:none;
      transition:.5s;
    }
    .input-box input:focus  ~ label,
    .input-box input:valid  ~ label {
      top:-5px;
    }
    .input-box input {
      width:100%;
      height:50px;
      background:transparent;
      border:none;
      outline:none;
      font-size:1em;
      color:#fff;
      padding:0 35px 0 5px;
    }
    .input-box .icon {
      position:absolute;
      right:8px;
      top:50%;
      color: #fff;
      transform: translateY(-50%);
    }
    .remember-forgot {
      margin:-15px 0 15px;
      font-size:.9em;
      color:#fff;
      display:flex;
      justify-content:space-between;
    }
    .remember-forgot label input {
      margin-right:3px;
    }
    .remember-forgot a {
      color:#fff;
      text-decoration:none;
    }
    .remember-forgot a:hover {
      text-decoration:underline;
    }
    button {
      width:100%;
      height:40px;
      background-color:#fff;
      border:none;
      border-radius:40px;
      cursor:pointer;
      font-size:1em;
      color:#000;
      font-weight;500;
    }
    .register-link {
      font-size:.9em;
      color:#fff;
      text-align:center;
      margin:25px 0 10px;
    }
    .register-link p a {
      color:#fff;
      text-decoration:none;
      font-weight:600;
    }
    .register-link p a:hover {
      text-decoration:underline;
    }
    @media (max-width:500px) {
      .login-box {
        width:100%;
        height:100vh;
        border:none;
        border-radius:0;
      }
      .input-box {
        width:290px;
      }
    }

    In conclusion, creating a Glassmorphism Login Form using HTML and CSS is a fun and creative way to learn modern UI design. With just simple code, you can achieve a beautiful, sleek look that enhances your project’s visual appeal. Keep coding and exploring cool design trends! 💻🧊

    If your project has problems, don’t worry. Just click to download the source code and face your coding challenges with excitement. Have fun coding!

    glassmorphism login form
    Share. Copy Link Twitter Facebook LinkedIn Email WhatsApp
    Previous ArticleHow to make Awesome Search Bar 2 using HTML & CSS
    Next Article How to make Hourglass Preloader using HTML & CSS
    Coding Stella
    • Website

    Related Posts

    HTML & CSS

    How to create Netflix Intro Animation using HTML and CSS

    29 June 2025
    HTML & CSS

    How to create Social media popup hover menu using HTML and CSS

    25 June 2025
    HTML & CSS

    How to create Awesome Cool Loading Animation using HTML CSS and JS

    16 June 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Trending Post

    Master Frontend in 100 Days Ebook

    2 March 202420K Views

    How to make Modern Login Form using HTML & CSS | Glassmorphism

    11 January 202419K Views

    How to make I love you Animation in HTML CSS & JavaScript

    14 February 202417K Views

    How to make Valentine’s Day Card using HTML & CSS

    13 February 202413K Views
    Follow Us
    • Instagram
    • Facebook
    • YouTube
    • Twitter
    ads
    Featured Post

    How to make Netflix Login page using HTML & CSS

    14 January 2024

    Comprehensive Guide to HTML, CSS, and Responsive Design

    26 January 2024

    How to make Monster Alien Star Rating using HTML CSS & JavaScript

    20 April 2024

    How to Make Moon Animation Using Pure CSS

    5 January 2024
    Latest Post

    How to create Airpods Animation using HTML CSS and JS

    15 July 2025

    How to create Heart Animation using HTML CSS and JS

    11 July 2025

    How to create Tab Bar Navigation using HTML CSS and JS

    9 July 2025

    How to create Newton’s Sun and Moon Loading Animation using HTML CSS and JS

    5 July 2025
    Facebook X (Twitter) Instagram YouTube
    • About Us
    • Privacy Policy
    • Return and Refund Policy
    • Terms and Conditions
    • Contact Us
    • Buy me a coffee
    © 2025 Coding Stella. Made with 💙 by @coding.stella

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Looks like you're using an ad blocker. We rely on advertising to help fund our site.
    Okay! I understood