Join Now
 
 
 
Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Frosted Glass Login</title>
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
margin: 0;
padding: 0;
height: 100vh;
background-image: url('https://images.unsplash.com/photo-1741986947217-d1a0ecc39149?q=80&w=1466&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
background-size: cover;
background-position: center;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
align-items: center;
justify-content: center;
}
.frosted-container {
width: 400px;
padding: 40px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.login-title {
color: white;
text-align: center;
margin-bottom: 30px;
font-weight: 300;
letter-spacing: 1px;
}
.form-control {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
}
.form-control:focus {
background: rgba(255, 255, 255, 0.15);
color: white;
box-shadow: none;
border-color: rgba(255, 255, 255, 0.4);
}
.form-control::placeholder {
color: rgba(255, 255, 255, 0.6);
}
.form-check-input {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-check-input:checked {
background-color: rgba(13, 110, 253, 0.8);
}
.form-check-label {
color: white;
}
.btn-login {
background: rgba(13, 110, 253, 0.8);
border: none;
width: 100%;
padding: 12px;
margin-top: 20px;
border-radius: 50px;
font-weight: 500;
letter-spacing: 1px;
transition: all 0.3s ease;
}
.btn-login:hover {
background: rgba(13, 110, 253, 1);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.forgot-password {
display: block;
text-align: center;
color: rgba(255, 255, 255, 0.8);
margin-top: 20px;
text-decoration: none;
}
.forgot-password:hover {
color: white;
}
.invalid-feedback {
color: #ffc7c7;
}
</style>
</head>
<body>
<div class="frosted-container">
<h2 class="login-title">Welcome Back</h2>
<form class="needs-validation" novalidate>
<div class="mb-4">
<input type="email" class="form-control" id="email" placeholder="Email address" required>
<div class="invalid-feedback">
Please enter a valid email address.
</div>
</div>
<div class="mb-4">
<input type="password" class="form-control" id="password" placeholder="Password" required>
<div class="invalid-feedback">
Password is required.
</div>
</div>
<div class="mb-4 form-check">
<input type="checkbox" class="form-check-input" id="rememberMe" required>
<label class="form-check-label" for="rememberMe">I agree to the Terms and Conditions</label>
<div class="invalid-feedback">
You must agree before submitting.
</div>
</div>
<button type="submit" class="btn btn-primary btn-login">LOG IN</button>
<a href="#" class="forgot-password">Forgot Password?</a>
</form>
</div>
<!-- Bootstrap JS and Form Validation -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script>
// Form validation script
(function() {
'use strict';
// Fetch all forms that need validation
var forms = document.querySelectorAll('.needs-validation');
// Loop over them and prevent submission
Array.prototype.slice.call(forms).forEach(function(form) {
form.addEventListener('submit', function(event) {
if (!form.checkValidity()) {
event.preventDefault();
event.stopPropagation();
} else {
event.preventDefault(); // In a real app, you'd remove this line
alert('Form successfully submitted!');
}
form.classList.add('was-validated');
}, false);
});
})();
</script>
</body>
</html>