<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">
    <link rel="stylesheet" type="text/css" href="LoginForm.css">
    <title>Login Form</title>
</head>
<body>
<div class="container">
    <div class="form_body">
        <img src="https://i.imgur.com/ElpDC6R.png" alt="user">
        <div class="form_login">
            <h2><u>User Login</u></h2>
            <input type="text" placeholder="Email or Username" required><br>
            <input type="password" placeholder="Password" required>
            <button>Login</button>
        </div>
    </div>
</div>
</body>
</html>
body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(30deg, #3F0071, #610094);
    font-family: 'Verdana', sans-serif;
    color: white;
}
.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.form_body {
    height: 400px;
    width: 400px;
    border-radius: 5px;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    background: rgba(21, 0, 80, 0.5);
    box-shadow: 0 10px 20px 0 rgba(21, 0, 80, 0.5);
}
.form_body img {
    display: block;
    margin: auto;
    margin-top: -35px;
    transform: scale(1.2);
}
.form_login h2 {
    text-align: center;
    text-underline-offset: 10px;
}
.form_login input {
    display: block;
    margin: auto;
    width: 75%;
    height: 40px;
    padding: 0px 5px;
    position: relative;
    top: 50px;
    margin-bottom: 10px;
    font-size: 16px;
    box-sizing: border-box;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 0;
}
.form_login button {
    display: block;
    margin: 30px auto;
    width: 75%;
    padding: 10px 0;
    position: relative;
    top: 50px;
    font-size: 20px;
    cursor: pointer;
    background-color: #3FF0D1;
    border: 0;
    border-radius: 5px;
    box-sizing: border-box;
}
.form_login button:hover {
    transition: 0.5s;
    background-color: #24ACEA;
}
.form_login input:hover {
    transition: 0.5s;
    border: 1px solid #3FF0D1;
    color: rgb(21, 0, 80);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.