Create a Login Form using HTML and CSS

Login Page :-  

Login form is used to enter authentication credentials to access a restricted page or form. The login form contains a field for the username and another for the password. ... Like the search form, a login form is basically a record form whose insert, update and delete properties have been disabled.




Source Code :- 

HTML :-


<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta name="viewport" content="width=device-width; initial-scale=1;">

    <title>Registration Form </title>

    <link rel="stylesheet" href="6_august.css">

</head>

<body>

    <div class="container">

        <img src="2.png">

       

        <form class="box" method="POST">

            <input type="text" name="username" placeholder="Username" required>

            <input type="password" name="password" placeholder="Password" requried>

    

            <input type="submit" value="Sign In" class="button">

            <input type="submit" value="Sign Up" class="button">


        </form>

    </div>

</body>

</html>



CSS :- 


body{

    padding: 0;

    margin: 0;

    font-family: sans-serif;

    background: rgb(214, 214, 214);

}

.container{

    width: 350px;

    height: 500px;

    background: rgb(214, 214, 214);

    margin: 80px auto;

    border-radius: 20px;

    box-shadow: 5px 5px 10px #b6a9a9, -5px -5px 10px white;

    text-align: center;

   

}

img{

    width: 90px;

    height: 90px;

    padding-top: 30px;

}

.box input[type="text"], .box input[type="password"]{

    border: 0;

    background: rgb(214, 214, 214);

    display: block;

    margin: 50px auto;

    text-align: center;

    box-shadow: inset 5px 5px 10px #b6a9a9, inset -5px -5px 10px white;

    padding: 14px 10px;

    width: 230px;

    outline: none;

    border-radius: 25px;

    transition: 0.25s;

}

.box input[type="text"]:focus,

.box input[type="password"]:focus{

    width: 260px;

}

.button{

    height: 40px;

    width: 90px;

    border: 0;

    outline: 0;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;

    border-radius: 25px;

    background: rgb(214,214,214);

    margin: 0 10px;

    box-shadow: 5px 5px 10px #b6a9a9, -5px -5px 10px white;

    display: inline-block;

}

.button:active{

    box-shadow: 1px 1px 2px #ffffff, -1px -1px 2px #b6a9a9;

}




Comments

Popular posts from this blog

Clock In HTML , CSS and JavaScript

Hover Effect With CSS

Neumorphism Button