<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>登录 - 才疏学浅俱乐部</title>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<style>
@media screen and (max-width: 768px) {
.login-box {
height: 100%;
width: 100%;
}
}
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: "微软雅黑", serif;
}
html {
height: 100%;
margin: 0;
}
body {
margin: 0;
padding: 0;
background-size: cover;
width: 100%;
height: 100%;
}
#app {
background: #000000de;
height: 100vh;
margin: 0;
padding: 0;
width: 100%;
overflow: hidden;
}
@keyframes login {
from {
box-shadow: rgba(253, 173, 204, 0.35) 0px 7px 29px 0px;
}
to {
box-shadow: rgb(253 173 204) 0px 7px 29px 0px;
}
}
@-webkit-keyframes login /* Safari 与 Chrome */
{
from {
box-shadow: rgba(253, 173, 204, 0.35) 0px 7px 29px 0px;
}
to {
box-shadow: rgb(253 173 204) 0px 7px 29px 0px;
}
}
.login-animation {
animation: login 2s;
animation-direction: alternate;
animation-iteration-count: infinite;
-webkit-animation: login 2s; /* Safari 与 Chrome */
-webkit-animation-direction: alternate;
-webkit-animation-iteration-count: infinite;
}
.login-box {
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 380px;
padding: 40px;
background: linear-gradient(to bottom right, #2d3e5594, #7d617cbd);
box-sizing: border-box;
/* box-shadow: 0 15px 25px rgba(253, 173, 204, 0.28);*/
box-shadow: rgba(253, 173, 204, 0.35) 0px 7px 29px 0px;
border-radius: 10px;
border-top: 5px solid rgb(240 74 133 / 45%);
}
.login-box h2 {
margin: 0 0 70px;
padding: 0;
text-align: center;
font-weight: bolder !important;
}
.login-box h2 span {
padding: 5px 20px;
padding-bottom: 10px;
opacity: 0.8;
font-size: 18px;
border: 1px dashed rgba(234, 136, 171, 0.45);
border-top: none;
position: absolute;
top: 0;
left: 50%;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
transform: translate(-50%, 0);
color: rgba(253, 173, 204, 0.62);
}
.login-box .user-box {
position: relative;
}
.login-box .user-box input {
margin-top: 10px;
width: 100%;
padding: 10px 0;
font-size: 14px;
color: #4acb5b;
margin-bottom: 30px;
border: none;
border-bottom: 1px dashed #ea88ab;
outline: none;
background: transparent;
}
.login-box .user-box label {
position: absolute;
padding: 10px 0;
pointer-events: none;
transition: .5s;
top: -20px;
left: 0;
color: #ea88ab;
font-size: 12px;
font-weight: bolder;
}
.login-box form a {
position: relative;
display: inline-block;
padding: 10px 20px;
color: #ea88ab;
font-size: 14px;
text-decoration: none;
text-transform: uppercase;
overflow: hidden;
transition: .5s;
margin-top: 40px;
letter-spacing: 4px;
}
.login-box a:hover {
background: rgba(243, 193, 210, 0.38);
color: #fff;
border-radius: 10px;
box-shadow: 0 0 5px #ea88ab,
0 0 25px #ea88ab,
0 0 50px #ea88ab,
0 0 100px #ea88ab;
}
.login-box a span {
position: absolute;
display: block;
}
.login-box a span:nth-child(1) {
top: 0;
left: -100%;
width: 100%;
height: 2px;
background: linear-gradient(90deg, transparent, #ea88ab);
animation: btn-anim1 1s linear infinite;
}
@keyframes btn-anim1 {
0% {
left: -100%;
}
50%, 100% {
left: 100%;
}
}
.login-box a span:nth-child(2) {
top: -100%;
right: 0;
width: 2px;
height: 100%;
background: linear-gradient(180deg, transparent, #ea88ab);
animation: btn-anim2 1s linear infinite;
animation-delay: .25s
}
@keyframes btn-anim2 {
0% {
top: -100%;
}
50%, 100% {
top: 100%;
}
}
.login-box a span:nth-child(3) {
bottom: 0;
right: -100%;
width: 100%;
height: 2px;
background: linear-gradient(270deg, transparent, #ea88ab);
animation: btn-anim3 1s linear infinite;
animation-delay: .5s
}
@keyframes btn-anim3 {
0% {
right: -100%;
}
50%, 100% {
right: 100%;
}
}
.login-box a span:nth-child(4) {
bottom: -100%;
left: 0;
width: 2px;
height: 100%;
background: linear-gradient(360deg, transparent, #ea88ab);
animation: btn-anim4 1s linear infinite;
animation-delay: .75s
}
</style>
</head>
<body>
<div id="app">
<div class="login-box">
<form>
<a href="javascript:void(0);" class="login-button">
<span></span>
<span></span>
<span></span>
<span></span>
登录
</a>
</form>
</div>
</div>
</body>
</html>