html,body{ 
	width:100%;
	height:100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

canvas{
  display:block;
  vertical-align:bottom;
}

.count-particles{
  background: #000022;
  position: absolute;
  top: 48px;
  left: 0;
  width: 80px;
  color: #13E8E9;
  font-size: .8em;
  text-align: left;
  text-indent: 4px;
  line-height: 14px;
  padding-bottom: 2px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

.js-count-particles{
  font-size: 1.1em;
}

#stats,
.count-particles{
  -webkit-user-select: none;
  margin-top: 5px;
  margin-left: 5px;
}

#stats{
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.count-particles{
  border-radius: 0 0 3px 3px;
}

#particles-js{
	width: 100%;
	height: 100%;
	position: relative;
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
}

.sk-rotating-plane {
	display: none;
    width: 80px;
    height: 80px;
    margin: auto;
    background-color: white;
    -webkit-animation: sk-rotating-plane 1.2s infinite ease-in-out;
    animation: sk-rotating-plane 1.2s infinite ease-in-out;
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -40px;
    margin-top: -80px;
}
.sk-rotating-plane.active{display: block;}

@keyframes sk-rotating-plane{
	0% {
	    -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg);
	    transform: perspective(120px) rotateX(0deg) rotateY(0deg);
	}
	50% {
	    -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
	    transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
	}
	100% {
	    -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
	    transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
	}
}

@keyframes login-small{
	0%{
		transform: scale(1);
	}
	100%{
		transform: scale(0.2);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 40px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.login{
	z-index: 2;
	position: absolute;
	width: 420px;
	border-radius: 12px;
	min-height: 580px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 40px 35px;
	box-sizing: border-box;
	transition: all 0.3s ease;
	/* 移除fadeInUp动画，防止页面加载时位置跳动 */
}

.login:hover{
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* 头部样式 */
.login-header{
	text-align: center;
	margin-bottom: 35px;
}

.login-logo{
	margin: 0 auto 15px;
}

.logo-icon{
	width: 60px;
	height: 60px;
	animation: fadeInUp 0.8s ease;
}

.login-title{
	font-size: 26px;
	font-weight: 600;
	color: #1890ff;
	margin-bottom: 8px;
	letter-spacing: 1px;
}

.login-subtitle{
	font-size: 12px;
	color: #999;
	letter-spacing: 2px;
	font-weight: 300;
}

/* 输入框样式 */
.login-center{
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	margin-bottom: 22px;
	position: relative;
}

.login-center-img{
	width: 20px;
	height: 20px;
	float: left;
	margin-top: 10px;
}

.login-center-img svg{
	width: 100%;
	height: 100%;
}

.login-center-input{
	float: left;
	width: calc(100% - 35px);
	margin-left: 15px;
	height: 42px;
	position: relative;
	transition: all 0.3s ease;
}

.login-center-input.captcha-input{
	width: calc(100% - 175px);
}

.login-center-input input{
	z-index: 2;
	transition: all 0.3s ease;
	padding: 10px 12px;
	color: #333333;
	width: 100%;
	height: 42px;
	border: 2px solid #e8e8e8;
	border-radius: 6px;
	box-sizing: border-box;
	outline: none;
	position: relative;
	background: #fafafa;
	font-size: 14px;
}

.login-center-input input:focus{
	border-color: #1890ff;
	background: white;
	box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.login-center-input input::placeholder{
	color: #bbb;
}

.login-center-input-text{
	background: white;
	padding: 0 6px;
	position: absolute;
	z-index: 0;
	opacity: 0;
	height: 20px;
	top: 50%;
	margin-top: -10px;
	font-size: 12px;
	left: 8px;
	color: #1890ff;
	line-height: 20px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.login-center-input input:focus~.login-center-input-text{
	top: 0;
	z-index: 3;
	opacity: 1;
	margin-top: -10px;
}

.login-center-input.input-focus{
	transform: translateY(-2px);
}

/* 验证码图片 */
.captcha-img{
	float: left;
	width: 120px;
	height: 42px;
	margin-left: 10px;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid #e8e8e8;
	transition: all 0.3s ease;
	background: #fff;
}

.captcha-img:hover{
	border-color: #1890ff;
	box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.captcha-img img{
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

/* 选项行 */
.login-options{
	margin: 20px 0;
	font-size: 13px;
}

.remember-me{
	float: left;
	cursor: pointer;
	color: #666;
	user-select: none;
}

.remember-me input[type="checkbox"]{
	margin-right: 6px;
	cursor: pointer;
}

.remember-me span{
	vertical-align: middle;
}

.forgot-password{
	float: right;
	color: #1890ff;
	text-decoration: none;
	transition: all 0.3s ease;
}

.forgot-password:hover{
	color: #40a9ff;
	text-decoration: underline;
}

/* 登录按钮 */
.login-button{
	cursor: pointer;
	width: 100%;
	text-align: center;
	height: 44px;
	line-height: 44px;
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
	border-radius: 6px;
	margin: 25px auto 0;
	color: white;
	font-size: 16px;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.login-button:hover{
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(17, 153, 142, 0.5);
}

.login-button:active{
	transform: translateY(0);
}

.button-loading{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.loading-spinner{
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

/* 底部 */
.login-footer{
	margin-top: 30px;
	text-align: center;
}

.copyright{
	font-size: 12px;
	color: #999;
	line-height: 1.6;
}

.login.active{
	animation: login-small 0.8s forwards;
}

