<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Login</title>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: "Segoe UI", sans-serif;
}
body{
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:linear-gradient(
135deg,
#0f172a,
#1e293b,
#2563eb,
#06b6d4
);
background-size:400% 400%;
animation:bgMove 12s ease infinite;
overflow:hidden;
}
@keyframes bgMove{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}
/* Floating circles */
body::before,
body::after{
content:"";
position:absolute;
border-radius:50%;
filter:blur(60px);
z-index:-1;
}
body::before{
width:350px;
height:350px;
background:#3b82f6;
top:-100px;
left:-100px;
}
body::after{
width:300px;
height:300px;
background:#06b6d4;
bottom:-100px;
right:-100px;
}
/* Card */
.login-box{
width:100%;
max-width:420px;
padding:40px;
margin:20px;
background:rgba(255,255,255,.08);
backdrop-filter:blur(20px);
border:1px solid rgba(255,255,255,.15);
border-radius:24px;
box-shadow:
0 10px 40px rgba(0,0,0,.25),
inset 0 1px 0 rgba(255,255,255,.2);
animation:fadeUp .8s ease;
}
@keyframes fadeUp{
from{
opacity:0;
transform:translateY(50px);
}
to{
opacity:1;
transform:translateY(0);
}
}
.logo{
width:80px;
height:80px;
margin:auto;
margin-bottom:20px;
border-radius:50%;
background:linear-gradient(135deg,#3b82f6,#06b6d4);
display:flex;
justify-content:center;
align-items:center;
color:white;
font-size:32px;
font-weight:bold;
box-shadow:0 10px 30px rgba(59,130,246,.5);
}
h2{
color:#fff;
text-align:center;
margin-bottom:8px;
}
.subtitle{
text-align:center;
color:rgba(255,255,255,.75);
margin-bottom:35px;
font-size:14px;
}
/* Input */
.input-group{
position:relative;
margin-bottom:25px;
}
.input-group input{
width:100%;
padding:16px;
background:rgba(255,255,255,.08);
border:1px solid rgba(255,255,255,.15);
border-radius:12px;
color:white;
outline:none;
transition:.3s;
}
.input-group label{
position:absolute;
left:16px;
top:16px;
color:rgba(255,255,255,.6);
pointer-events:none;
transition:.3s;
}
.input-group input:focus,
.input-group input:valid{
border-color:#38bdf8;
}
.input-group input:focus + label,
.input-group input:valid + label{
top:-10px;
left:12px;
font-size:12px;
background:#0f172a;
padding:0 8px;
color:#38bdf8;
}
/* Row */
.row{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
color:white;
font-size:14px;
}
.row a{
color:#38bdf8;
text-decoration:none;
}
.row a:hover{
text-decoration:underline;
}
/* Button */
.btn{
width:100%;
border:none;
padding:15px;
border-radius:12px;
font-size:16px;
font-weight:600;
cursor:pointer;
color:white;
background:linear-gradient(
135deg,
#2563eb,
#06b6d4
);
transition:.35s;
}
.btn:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(6,182,212,.4);
}
/* Footer */
.footer{
margin-top:25px;
text-align:center;
color:rgba(255,255,255,.7);
font-size:14px;
}
.footer a{
color:#38bdf8;
text-decoration:none;
font-weight:600;
}
/* Responsive */
@media(max-width:480px){
.login-box{
padding:30px 22px;
}
.row{
flex-direction:column;
gap:10px;
}
h2{
font-size:24px;
}
}
</style>
</head>
<body>
<div class="login-box">
<div class="logo">A</div>
<h2>Welcome Back</h2>
<p class="subtitle">
Sign in to continue
</p>
<form>
<div class="input-group">
<input type="email" required>
<label>Email Address</label>
</div>
<div class="input-group">
<input type="password" required>
<label>Password</label>
</div>
<div class="row">
<label>
<input type="checkbox">
Remember Me
</label>
<a href="#">Forgot Password?</a>
</div>
<button class="btn">
Login
</button>
</form>
<div class="footer">
Don't have an account?
<a href="#">Register</a>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Modern Login</title>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: "Segoe UI", sans-serif;
}
body{
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:linear-gradient(
135deg,
#0f172a,
#1e293b,
#2563eb,
#06b6d4
);
background-size:400% 400%;
animation:bgMove 12s ease infinite;
overflow:hidden;
}
@keyframes bgMove{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}
/* Floating circles */
body::before,
body::after{
content:"";
position:absolute;
border-radius:50%;
filter:blur(60px);
z-index:-1;
}
body::before{
width:350px;
height:350px;
background:#3b82f6;
top:-100px;
left:-100px;
}
body::after{
width:300px;
height:300px;
background:#06b6d4;
bottom:-100px;
right:-100px;
}
/* Card */
.login-box{
width:100%;
max-width:420px;
padding:40px;
margin:20px;
background:rgba(255,255,255,.08);
backdrop-filter:blur(20px);
border:1px solid rgba(255,255,255,.15);
border-radius:24px;
box-shadow:
0 10px 40px rgba(0,0,0,.25),
inset 0 1px 0 rgba(255,255,255,.2);
animation:fadeUp .8s ease;
}
@keyframes fadeUp{
from{
opacity:0;
transform:translateY(50px);
}
to{
opacity:1;
transform:translateY(0);
}
}
.logo{
width:80px;
height:80px;
margin:auto;
margin-bottom:20px;
border-radius:50%;
background:linear-gradient(135deg,#3b82f6,#06b6d4);
display:flex;
justify-content:center;
align-items:center;
color:white;
font-size:32px;
font-weight:bold;
box-shadow:0 10px 30px rgba(59,130,246,.5);
}
h2{
color:#fff;
text-align:center;
margin-bottom:8px;
}
.subtitle{
text-align:center;
color:rgba(255,255,255,.75);
margin-bottom:35px;
font-size:14px;
}
/* Input */
.input-group{
position:relative;
margin-bottom:25px;
}
.input-group input{
width:100%;
padding:16px;
background:rgba(255,255,255,.08);
border:1px solid rgba(255,255,255,.15);
border-radius:12px;
color:white;
outline:none;
transition:.3s;
}
.input-group label{
position:absolute;
left:16px;
top:16px;
color:rgba(255,255,255,.6);
pointer-events:none;
transition:.3s;
}
.input-group input:focus,
.input-group input:valid{
border-color:#38bdf8;
}
.input-group input:focus + label,
.input-group input:valid + label{
top:-10px;
left:12px;
font-size:12px;
background:#0f172a;
padding:0 8px;
color:#38bdf8;
}
/* Row */
.row{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:25px;
color:white;
font-size:14px;
}
.row a{
color:#38bdf8;
text-decoration:none;
}
.row a:hover{
text-decoration:underline;
}
/* Button */
.btn{
width:100%;
border:none;
padding:15px;
border-radius:12px;
font-size:16px;
font-weight:600;
cursor:pointer;
color:white;
background:linear-gradient(
135deg,
#2563eb,
#06b6d4
);
transition:.35s;
}
.btn:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(6,182,212,.4);
}
/* Footer */
.footer{
margin-top:25px;
text-align:center;
color:rgba(255,255,255,.7);
font-size:14px;
}
.footer a{
color:#38bdf8;
text-decoration:none;
font-weight:600;
}
/* Responsive */
@media(max-width:480px){
.login-box{
padding:30px 22px;
}
.row{
flex-direction:column;
gap:10px;
}
h2{
font-size:24px;
}
}
</style>
</head>
<body>
<div class="login-box">
<div class="logo">A</div>
<h2>Welcome Back</h2>
<p class="subtitle">
Sign in to continue
</p>
<form>
<div class="input-group">
<input type="email" required>
<label>Email Address</label>
</div>
<div class="input-group">
<input type="password" required>
<label>Password</label>
</div>
<div class="row">
<label>
<input type="checkbox">
Remember Me
</label>
<a href="#">Forgot Password?</a>
</div>
<button class="btn">
Login
</button>
</form>
<div class="footer">
Don't have an account?
<a href="#">Register</a>
</div>
</div>
</body>
</html>