Close Menu
    Facebook X (Twitter) Instagram
    LudiflexLudiflex
    • Home
    • Blog
    • HTML & CSS
      • Card Design
      • Login Forms
      • Navigation Bar
      • Website Designs
    • JavaScript
      • JavaScript Projects
    • Bootstrap
    • PHP
    LudiflexLudiflex
    Home » Blog » Creative Login Form with only HTML and CSS
    HTML & CSS

    Creative Login Form with only HTML and CSS

    Learn How to make creative login form with only html and css
    LudiflexBy LudiflexJuly 19, 2023Updated:October 30, 2023No Comments3 Mins Read

    In the realm of web design, creating an eye-catching and imaginative login form can set your website or application apart from the rest. This tutorial is your gateway to building a distinctive and creative login form using just HTML and CSS.

    We’ll guide you step by step through the process of designing a form that not only serves its functional purpose but also adds an artistic touch to your user interface. By the end of this tutorial, you’ll have the skills to create a login form that stands out and leaves a memorable impression on your users.

    Login forms are used in most of website and Application. The login form helps the user to get access to website or web application they are browsing. 

    Features of this Tutorial:

    1. Project Setup:
      • Learn how to set up the project and create the initial HTML file for your creative login form.
    2. Designing the HTML Structure:
      • Create the HTML structure that forms the foundation of your imaginative login form.
    3. Styling with CSS:
      • Dive into the world of CSS to add creative flair to your form, focusing on aesthetics, layout, and responsiveness.
    4. Unique Form Elements:
      • Explore imaginative form elements and unconventional design approaches to make your login form truly stand out.
    5. Color Schemes and Typography:
      • Discuss the importance of color schemes and typography in enhancing the visual appeal of your form.
    6. Creating an Artistic Background:
      • Learn how to use CSS to add an artistic background to your login form, elevating its overall design.
    7. Animating Your Form:
      • Add subtle animations and transitions to your form to make it more engaging and visually appealing.
    8. Responsive Design:
      • Ensure that your creative login form looks and functions well on various screen sizes, making it user-friendly.

    So, login form should be well organised designed. To make this login form we are going to start by.

    Creating a HTML File and add the following codes.

    HTML Codes

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Login</title>
        <link rel="stylesheet" href="style.css">
    </head>
    <body>
        <div class="container">
            <div class="header">
                <header>Login</header>
            </div>
            <div class="input-container">
                <div class="input-field">
                    <label for="user">Username</label>
                    <input type="text" name="username" id="user" required>  
                </div>
    
                <div class="input-field">
                    <label for="pass">Password</label>
                    <input type="password" name="password" id="pass" required>  
                </div>
    
                <div class="input-field">
                    
                    <input type="submit" class="submit"  name="submit" value="Login">  
                </div>
                <span><a href="#">Forgot password?</a></span>
            </div>
        </div>
    
    </body>
    </html>

    CSS Codes

    /* POPPINS FONT */
      @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
    *{
        font-family: 'Poppins', sans-serif;
    }
    body{
        background-color: rgb(230,234,234);
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 95vh;
    }
    .container{
        background: url("images/1.png");
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 10px;
        min-height: 400px;
        min-width: 370px;
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),
                    0 2px 20px 0 rgba(0,0,0,0.2);
    }
    .header{
        display: flex;
        justify-content: center;
        margin: 20px 0 0 0;
        font-size: 30px;
        color: #fff;
    }
    .input-container{
        margin: 30px 30px 10px 30px;
    }
    label{
        color: #fff;
        margin: 0 0 5px 15px;
    }
    .input-field{
        display: flex;
        flex-direction: column;
        margin: 15px 0 15px 0;
    }
    input{
        outline: none;
        padding: 0 20px 0 20px;
        border: 2px solid rgba(255,255,255, 0.015);
        background: rgba(255,255,255,0.35);
        height: 38px;
        box-shadow: 0 1px 10px 0 rgba(0,0,0,0.085),
                    0 2px 30px 0 rgba(0,0,0,0.2);
        border-radius: 50px;
        font-size: 16px;
        color: #fff;
    }
    input:focus,input:valid{
        border: 2px solid rgba(255,255,255,0.65);
        background: transparent;
        box-shadow: none;
        border-radius: 30px;
    }
    .submit{
        background: transparent;
        height: 40px;
        border: 2px solid rgba(255,255,255,0.65);
        box-shadow: none;
        transition: .3s ease-in-out;
        margin-top: 10px;
    }
    .submit:hover{
        color: rgb(106,87,168);
        cursor: pointer;
        border: 2px solid rgba(255,255,255,0.016);
        background: rgba(255,255,255,0.35);
        box-shadow: 0 1px 10px 0 rgba(0,0,0,0.085),
                    0 2px 30px 0 rgba(0,0,0,0.2);
    
    }
    span{
        display: flex;
        justify-content: right;
    }
    span a{
        color: #fff;
        font-size: 12px;
        text-decoration: none;
    }

    Think it was understandable. If you have any problem, leave a comment.

    I will be pleased to help.

    css HTML
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Next Article Modern Login form made using HTML and CSS
    Ludiflex
    • Website

    Related Posts

    HTML & CSS

    Build a Seamless PHP & AJAX Login and Registration System with No Page Reloads!

    February 1, 2025
    HTML & CSS

    How to Build a Modern, Responsive Login & Registration Form with HTML, CSS, and JavaScript (Step-by-Step Guide)

    February 1, 2025
    JavaScript

    How to Create a To-Do List App Using HTML, CSS, and JavaScript

    December 16, 2024
    Add A Comment
    Leave A Reply Cancel Reply

    Follow Us
    • YouTube
    • Instagram
    • TikTok
    • Twitter
    Recent Posts

    Build a Seamless PHP & AJAX Login and Registration System with No Page Reloads!

    How to Build a Modern, Responsive Login & Registration Form with HTML, CSS, and JavaScript (Step-by-Step Guide)

    Top 20 Essential Shortcuts for Visual Studio Code You Should Know

    How to Create a To-Do List App Using HTML, CSS, and JavaScript

    Login and Register App using React and OneEntry Headless CMS

    Facebook X (Twitter) Instagram Pinterest
    © 2025 Ludiflex. Made with ♥ by Ludiflex.

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