<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>会员登录</title>
<style>
*{
margin:0;
padding:0;
/*outline: 1px dashed #cccccc;*/
}
body{
display: flex;
height: 100vh;
flex-flow: column nowrap;
/*居中显示*/
justify-content: center;
align-items: center;
font-weight: lighter;
background: linear-gradient(to top, lightgreen, white, lightgreen);
}
.container{
position:relative;
margin-top: -80px;
padding:20px;
width:280px;
}
.container >h1{
font-weight: lighter;
text-align: center;
font-size: 1.5rem;
padding: 20px ;
}
.container>form{
display: flex;
flex-flow: column nowrap;
border: 1px solid #ccc ;
border-radius:12px;
padding: 20px;
background: linear-gradient(to top, lightcyan, white, lightcyan);
}
.container>form>div{
padding: 10px;
}
.container>form:hover{
background: linear-gradient(to right, white, lightcyan);
box-shadow: 0 0 5px #2d6a88;
}
.container>form>div{
display: flex;
}
.container>form>div>input{
flex:1;
border:1px #999999;
border-radius: 5px;
padding-left:5px;
}
.container>form>div>button{
flex:1;
border:1px;
border-radius: 5px;
background-color: #1c82d4;
letter-spacing: 10px;
color: #fff;
padding: 3px;
box-shadow: 0 2px 1px darkolivegreen;
}
.container>form>div>button:hover{
box-shadow: 0 0 3px #2d6a88;
background-color: #1c82d4;
}
</style>
</head>
<body>
<div class="container">
<h1>会员登录</h1>
<form action="index.html">
<div>
<label for="useremail">邮箱:</label>
<input type="text" name="useremail" id="useremail" placeholder="请输入邮箱" required />
</div>
<div>
<label for="password">密码:</label>
<input type="password" name="password" id="password" placeholder="请输入密码" required minlength="6" maxlength="18" />
</div>
<div>
<button>登录</button>
</div>
</form>
</div>
</body>
</html>