Hello for every one: The today over lesson is about the Perfect Login Form Only With CSS, I hope this lesson is uesful for you.

Download Visual Studio Code

HTML code

<div class="main">
    <h1>Login Form<h1>
        <div class="field">
            <i class="fas fa-lock"></i>
            <input type="password" placeholder="Password">
        </div>
        <div class="field">
            <i class="fas fa-lock"></i>
            <input type="password" placeholder="Passwod">
        </div>
        <button class="login" type="submit">LOGIN</button>
        <p>Or login with</p>



        <span class="fab fa-facebook-f"></span>
        <span class="fab fa-instagram"></span>
        <span class="fab fa-twitter"></span>
    </div>

CSS code

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    border: none;
    outline: none;
    user-select: none;
}

body{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; height: 100vh;
    background: url('img.jgp') no-repeat;
    background-position: center;
    background-size: cover;
}

.main{
    text-align: center;
    color: rgba(255, 255, 255, 0.386);
    width: 350px;
    height: 380px;
    background: transparent;
    padding-top: 8px;
    box-shadow: 5px 5px 5px rgba(32, 32, 32, 0.8);
                inset: 3px 3px 3px rgba(41, 41, 41, 0.9);;
}
h1 {
    color: rgba(22, 22, 22, 0.973);
    font-size: 34px;
    padding-bottom: 20px;
}

.field {
    width: 220px;
    height: 40px;
    margin-bottom: 20px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0, 0.932);
    text-align: center;
    font-size: 25px;
}

input {
    width: 165px;
    height: 40px;
    padding-left: 12px;
    background: transparent;
    font-size: 18px;
    letter-spacing: 1px;
}

i {
    color: rgb(92, 10, 24);
    font-size: 18px;
}

.main .login {
    cursor: pointer;
    width: 220px;
    height: 38px;
    color: white;
    border-radius: 3px;
    font-size: 16px;
    letter-spacing: 1px;
    background: rgb(255, 44, 79);
    transition: .4s;
}

.main .login:hover {background: rgb(221, 37, 68);}

p {
    color: rgb(31, 31, 31);
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
}

span {
    cursor: pointer;
    display: inline-block;
    margin-top: 15px;
    width: 40px;
    height: 40px;
    padding-top: 10px;
    font-size: 18px;
    border-radius: 50px;
    transition: all .4s;
}

.fa-facebook-f {background: #0f6faa;}

.fa-facebook-f:hover {background: #0e6297;}

.fa-instagram {background: rgb(218, 38, 92);}

.fa-instagram:hover {background: rgb(187, 16, 68);}

.fa-twitter {background: #1d9ff0;}
.fa-twitter:hover {background: #1a8fd8;}