LOGIN PAGE

Create a Login Page Using HTML and CSS :



Source Code : -

HTML  :-

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Login Form</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://kit.fontawesome.com/6618bd5d88.js" crossorigin="anonymous"></script>
</head>
  </head>
</head>
<body>
    <div class="login-form">
        <div class="text">LOGIN</div>

        <form action="">
            <div class="field">
                <div class="fas fa-user"></div>
                <input type="email" placeholder="Email or Phone" required>
            </div>

            <div class="field">
                <div class="fas fa-lock"></div>
                <input type="password" placeholder="Password" required/>
            </div>
            
            <button>LOGIN</button>

            <div class="link">
                Not a member?
                <a href="#">Sign Up Now</a>
            </div>
        </form>
    </div>
</body>
</html>




CSS :- 



*{
    padding0;
    margin0;
    font-family'Poppins' , sans-serif;
}

body{
    displayflex;
    height100vh;
    text-aligncenter;
    align-itemscenter;
    justify-contentcenter;
    background#151515;
}

.login-form{
    positionrelative;
    width370px;
    heightauto;
    background#1b1b1b;
    padding40px 35px 40px;
    box-sizingborder-box;
    box-shadowinset 0 0 15px #4b4b4b
    border-radius10px;
}

.text{
    font-size30px;
    color#c7c7c7;
    font-weight600;
    letter-spacing2px;
    border-bottom1.5px solid #03e9f4;
    displayinline-block;
    padding-bottom5px;
}

form .field{
    margin-top20px;
    displayflex;
}

form .field .fas{
    height50px;
    width60px;
    backgroundlinear-gradient(#333,#222);
    color#868686;
    font-size20px;
    line-height50px;
    border-radius5px 0 0 5px;
    border1px solid #444;
    border-rightnone;
}

.field inputform button{
    height50px;
    width100%;
    backgroundlinear-gradient(#333,#222);
    outlinenone;
    font-size19px;
    color#868686;
    border1px solid #444;
    padding0 15px;
    border-radius0 5px 5px 0;
    caret-color#03e9f4;
    
}

input:focus{
    color#03e9f4
    backgroundlinear-gradient(#333939,#222929);
    box-shadow0 0 5px rgba(52082550.7),
                inset 0 0 5px rgb(323232);

    animation: glow 0.9s ease infinite alternate;
}



@keyframes glow{
    100%{
        border-color:  #03e9f4;
        box-shadow0 0 20px rgba(52092550.8),
                    inset 0 0 10px rgb(323232);
    }
}

button{
    margin-top30px;
    border-radius5px!important;
    font-weight600;
    letter-spacing1px;
    cursorpointer;
    transition0.3s ease;
}

button:hover{
    color#03e9f4;;
    border1px solid #03e9f4;
    box-shadow0 0 10px rgba(52092550.1),
                0 0 10px rgba(52092550.2),
                0 0 15px rgba(282132550.3),
                0 2px 0 black;
}

.link{
    margin-top25px;
    color#868686;
}

.link a{
    color#03e9f4;
    text-decorationnone;

}

.link a:hover{
    text-decorationunderline
    colorrgba(52092550.8);
}


Comments

Post a Comment

Popular posts from this blog

Clock In HTML , CSS and JavaScript

Hover Effect With CSS

Neumorphism Button