<div class="bg-container" style="background-image: url('https://placehold.co/1920x1080/1e293b/ffffff?text=Nature+Background')">
<form class="glass-login">
<h2>Sign In</h2>
<div class="input-box">
<input type="email" placeholder="Email Address" required>
</div>
<div class="input-box">
<input type="password" placeholder="Password" required>
</div>
<button type="submit">Login</button>
<p>Don't have an account? <a href="#">Register</a></p>
</form>
</div>
.bg-container {
font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
height: 500px;
background-size: cover;
background-position: center;
display: flex;
align-items: center;
justify-content: center;
}
.glass-login {
background: rgba(255, 255, 255, 0.15);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
padding: 40px;
border-radius: 16px;
width: 320px;
text-align: center;
border: 1px solid rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
h2 {
color: white;
margin: 0 0 30px;
font-weight: 600;
}
.input-box {
margin-bottom: 20px;
}
input {
width: 100%;
padding: 12px 15px;
background: rgba(255, 255, 255, 0.8);
border: none;
border-radius: 30px;
font-size: 1rem;
outline: none;
box-sizing: border-box;
color: #1f2937;
}
input:focus {
background: #fff;
}
button {
width: 100%;
padding: 12px;
background: #2563eb;
color: white;
border: none;
border-radius: 30px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: background 0.2s;
}
button:hover {
background: #1d4ed8;
}
p {
color: white;
margin-top: 20px;
font-size: 0.9rem;
}
a {
color: #fff;
font-weight: 700;
text-decoration: none;
}