* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}
body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(#141e30, #243b55);
	/* 手机上竖屏内容较高时允许滚动，不强制裁切 */
	padding: 20px;
}
.login {
	display: flex;
	flex-direction: column;
	align-items: center;
	/* 响应式宽度：桌面端最大 400px，手机端跟随屏幕宽度自适应 */
	width: 100%;
	max-width: 400px;
	padding: 40px 30px;
	background-color: rgba(0, 0, 0, 0.2);
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
	border-radius: 6px;
}
.login h2 {
	color: #fff;
	margin-bottom: 30px;
	text-align: center;
}
.login .login_box {
	position: relative;
	width: 100%;
}
.login .login_box input {
	outline: none;
	border: none;
	width: 100%;
	padding: 10px 0;
	margin-bottom: 30px;
	color: #fff;
	font-size: 16px;
	border-bottom: 1px solid #fff;
	background-color: transparent;
	border-radius: 0; /* 防止 iOS Safari 给 input 加圆角内阴影 */
	-webkit-appearance: none;
}
.login .login_box label {
	position: absolute;
	top: 0;
	left: 0;
	padding: 10px 0;
	color: #fff;
	pointer-events: none;
	transition: all 0.5s;
}
.login .login_box input:focus + label,
.login .login_box input:valid + label {
	top: -20px;
	color: #03e9f4;
	font-size: 12px;
}
.login-error {
	width: 100%;
	min-height: 18px;
	color: #ff6b6b;
	font-size: 13px;
	text-align: center;
	margin-bottom: 10px;
}
.login a {
	overflow: hidden;
	position: relative;
	padding: 10px 20px;
	color: #03e9f4;
	text-decoration: none;
	transition: all 0.5s;
	/* 保证手机上有足够的点击区域 */
	display: inline-block;
	text-align: center;
	min-width: 120px;
	-webkit-tap-highlight-color: transparent;
}
.login a:hover,
.login a:active {
	color: #fff;
	border-radius: 5px;
	background-color: #03e9f4;
	box-shadow: 0 0 5px #03e9f4, 0 0 25px #03e9f4, 0 0 50px #03e9f4,
		0 0 100px #03e9f4;
}
.login a span {
	position: absolute;
}
.login a span:first-child {
	top: 0;
	left: -100%;
	width: 100%;
	height: 2px;
	background: linear-gradient(to right, transparent, #03e9f4);
	animation: move1 1s linear infinite;
}
.login a span:nth-child(2) {
	right: 0;
	top: -100%;
	width: 2px;
	height: 100%;
	background: linear-gradient(transparent, #03e9f4);
	animation: move2 1s linear 0.25s infinite;
}
.login a span:nth-child(3) {
	right: -100%;
	bottom: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(to left, transparent, #03e9f4);
	animation: move3 1s linear 0.5s infinite;
}
.login a span:last-child {
	left: 0;
	bottom: -100%;
	width: 2px;
	height: 100%;
	background: linear-gradient(#03e9f4, transparent);
	animation: move4 1s linear 0.75s infinite;
}
@keyframes move1 {
	0% { left: -100%; }
	50%, 100% { left: 100%; }
}
@keyframes move2 {
	0% { top: -100%; }
	50%, 100% { top: 100%; }
}
@keyframes move3 {
	0% { right: -100%; }
	50%, 100% { right: 100%; }
}
@keyframes move4 {
	0% { bottom: -100%; }
	50%, 100% { bottom: 100%; }
}
