Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Projects/Glassmorphism Login Form/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Glassmorf login form</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="maincontainer">
<form action="#">
<h2>Login</h2>
<div class="input-field">
<input type="text" name="mail" id="mail" required>
<label for="mail">Enter your E-mail</label>
</div>
<div class="input-field">
<input type="password" name="password" id="password" required>
<label for="password">Enter your Password</label>
</div>

<div class="password-options">
<label for="remember">
<input type="checkbox" id="remember">
<p>Remember me</p>
</label>

<a href="#">Forgot Password</a>
</div>

<button type="submit">Log In</button>

<div class="account-options">
<p>Don't have an account?<a href="#">Register</a></p>
</div>

</form>
</div>
</body>
</html>
130 changes: 130 additions & 0 deletions Projects/Glassmorphism Login Form/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@200;300;400;500;600;700&display=swap");

*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Open Sans",sans-serif;
}
body{
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
width: 100%;
}
body::before{
content: "";
position: absolute;
height: 100%;
width:100%;
background: url(https://i.postimg.cc/MZ7dYZLS/backgrundimg.webp);
background-position: center;
background-size: cover;

}

.maincontainer{
width: 400px;
padding: 30px;
border: 1px solid rgba(255, 255, 255, 0.5);
backdrop-filter:blur(7px);
border-radius:8px;
display:flex;
display:grid;
/* height:440px */
}
form{
display: flex;
flex-direction: column;
}
form h2{
font-size: 2rem;
color: white;
margin-bottom: 20px;
}

.input-field{
position: relative;
border-bottom: 2px solid #ccc;
margin: 15px 0;
}
.input-field input{
width: 100%;
height:40px;
background: transparent;
border: none;
outline: none;
color: #fff;
font-size: 1rem;
}

.input-field label{
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
color: #fff;
font-size: 1rem;
pointer-events: none;
transition: 0.3s ease-in;
}

.input-field input:focus~label,
.input-field input:valid~label{
transform: translateY(-120%);
font-size: 0.8rem;
top: 10px;
}

.password-options{
display: flex;
align-items: center;
justify-content: space-between;
margin: 25px 0 35px 0;
color: #fff;
}

.password-options label{
display: flex;
align-items: center;

}
#remember{
accent-color: #fff;
}
.password-options label p{
margin-left: 8px;
}

.maincontainer a{
color: #efefef;
text-decoration: none;
}
.maincontainer a:hover{
text-decoration: underline;
}

button{
background-color: #fff;
color: #000;
font-size: 1rem;
font-weight: 600;
padding: 12px 20px;
border-radius: 3px;
border:2px solid transparent ;
cursor: pointer;
transition: 0.3s ease;
}

button:hover{
background-color: rgba(255, 255, 255, 0.15);
border-color: #fff;
color: #fff;
}

.account-options{
text-align: center;
margin-top: 30px;
color: #fff;
}