Here is the complete source code to create Transparent Login Form
index.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Quicksand:100,300,500">
<link rel="stylesheet" href="styles.css">
<title>Transparent Login Form</title>
</head>
<body>
<div class="full-screen-container">
<div class="login-container">
<h3 class="login-title">Welcome</h3>
<form>
<div class="input-group">
<label>Email</label>
<input type="email">
</div>
<div class="input-group">
<label>Password</label>
<input type="password">
</div>
<button type="submit" class="login-button">Sign In</button>
</form>
</div>
</div>
</body>
</html>
styles.css
* {
box-sizing: border-box;
font-family: 'Quicksand', sans-serif;
}
html, body {
margin: 0;
}
.full-screen-container {
background-image: url("background_image.jpg");
height: 100vh;
width: 100vw;
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
}
.login-container {
background-color: hsla(201, 100%, 6%, 0.6);
padding: 50px 30px;
min-width: 400px;
width: 50%;
max-width: 600px;
}
.login-title {
color: white;
text-align: center;
margin: 0;
margin-bottom: 40px;
font-size: 2.5em;
font-weight: normal;
}
.input-group {
display: flex;
flex-direction: column;
margin-bottom: 20px;
}
.input-group label {
color: white;
font-weight: lighter;
font-size: 1.5em;
margin-bottom: 7px;
}
.input-group input {
font-size: 1.5em;
padding: .1em .25em;
background-color: hsla(201, 100%, 91%, 0.3);
border: 1px solid hsl(201, 100%, 6%);
outline: none;
border-radius: 5px;
color: white;
font-weight: lighter;
}
.input-group input:focus {
border: 1px solid hsl(201, 100%, 50%)
}
.login-button {
padding: 10px 30px;
width: 100%;
border-radius: 5px;
background-color: hsla(201, 100%, 50%, 0.1);
border: 1px solid hsl(201, 100%, 50%);
outline: none;
font-size: 1.5em;
color: white;
font-weight: lighter;
margin-top: 20px;
cursor: pointer;
}
.login-button:hover {
background-color: hsla(201, 100%, 50%, 0.3)
}
.login-button:focus {
background-color: hsla(201, 100%, 50%, 0.5)
}