<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dynamic Login</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(to right, #3498db, #2c3e50);
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.login-container {
background-color: #fff;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
padding: 40px;
border-radius: 8px;
width: 400px;
text-align: center;
position: relative;
overflow: hidden;
animation: fadeIn 1s ease-in-out;
}
h1 {
color: #333;
font-size: 24px;
margin-bottom: 20px;
}
input {
width: calc(100% - 20px);
padding: 15px 10px;
margin: 10px 0;
box-sizing: border-box;
border: none;
border-bottom: 2px solid #3498db;
background-color: transparent;
color: #333;
font-size: 16px;
outline: none;
transition: border-bottom-color 0.3s;
}
input:focus {
border-bottom-color: #e74c3c;
}
button {
background-color: #3498db;
color: #fff;
padding: 15px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
}
button:hover {
background-color: #2980b9;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(-20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
</head>
<body>
<div class="login-container">
<h1>Dynamic Login</h1>
<form action="/login" method="post">
<input type="text" name="username" placeholder="Username" required>
<input type="password" name="password" placeholder="Password" required>
<button type="submit">Login</button>
</form>
</div>
</body>
</html>
h5 css3 登录页面 渐入
最新推荐文章于 2025-02-12 23:48:46 发布
