/* 登录页面样式 */
.login {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999999;
	font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
	overflow-y: auto;
	display: none;
}

#win10-login {
	background: url('/res/img/wallpapers/login.jpg') no-repeat center center fixed;
	width: 100%;
	min-height: 100%;
	background-size: cover;
	position: fixed;
	z-index: -1;
	top: 0;
	left: 0;
	padding-top: 120px;
}

.login-container {
	width: 300px;
	overflow: hidden;
	margin: 0 auto;
	padding-bottom: 20px;
}

.win10-login-box-square {
	width: 105px;
	margin: 0 auto;
	border-radius: 50%;
	background-color: darkgray;
	position: relative;
	overflow: hidden;
}

.win10-login-box-square::after {
	content: "";
	display: block;
	padding-bottom: 100%;
}

.win10-login-box-square .content {
	position: absolute;
	width: 100%;
	height: 100%;
}

.tabs {
	display: flex;
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	margin: 20px 0;
}

.tab {
	flex: 1;
	text-align: center;
	padding: 10px 0;
	cursor: pointer;
	font-size: 16px;
	color: white;
	transition: all 0.3s ease;
}

.tab.active {
	color: #fff;
	font-weight: bold;
	border-bottom: 2px solid #fff;
}

.login-form {
	padding: 0;
	display: none;
}

.login-form.active {
	display: block;
	animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.input-group {
	position: relative;
	margin-bottom: 15px;
}

.input-group input {
	width: 100%;
	display: block;
	border: 0;
	margin: 0 auto;
	line-height: 36px;
	font-size: 16px;
	padding: 0 1em;
	border-radius: 5px;
	box-sizing: border-box;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.input-group input:focus {
	outline: none;
	border-color: #009688;
	box-shadow: 0 0 5px rgba(0, 150, 136, 0.3);
}

.login-username, .login-password, #register-username, #register-password, 
#register-confirm-password, #register-nickname, #register-phone, #register-email {
	width: 100%;
	font-size: 13px;
	color: #333;
	background: rgba(255, 255, 255, 0.9);
}

.login-password {
	width: calc(100% - 54px);
	border-radius: 5px 0 0 5px;
	margin: 0;
	float: left;
}

.login-submit {
	margin: 10px 0;
	float: left;
	border-radius: 5px;
	background-color: #009688;
	width: 100%;
	display: inline-block;
	height: 38px;
	line-height: 38px;
	padding: 0;
	color: #fff;
	white-space: nowrap;
	text-align: center;
	font-size: 14px;
	border: none;
	cursor: pointer;
	opacity: .9;
	transition: all 0.3s ease;
}

.login-btn {
	width: 100%;
	padding: 10px;
	background-color: #009688;
	border: none;
	border-radius: 5px;
	color: white;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
	opacity: 0.9;
}

.login-btn:hover, .login-submit:hover {
	opacity: 1;
	background-color: #00877a;
}

.register-btn {
	float: none;
	width: 100%;
	height: auto;
	margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 480px) {
	.login {
		display: block;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	#win10-login {
		position: absolute;
		min-height: 100%;
		padding-top: 60px;
	}
	
	#win10-login-box {
		margin: 20px auto;
		padding-bottom: 40px;
	}

	.login-container {
		width: 90%;
		margin: 20px auto;
	}
	
	.input-group {
		margin-bottom: 12px;
	}
	
	.input-group input {
		padding: 0 0.5em;
		font-size: 14px;
		height: 40px;
	}
	
	.login-btn {
		padding: 10px;
		height: 40px;
	}
	
	.win10-login-box-square {
		width: 80px;
	}
	
	.tabs {
		margin: 15px 0;
	}
	
	.tab {
		padding: 8px 0;
	}
}

/* 针对更小屏幕的优化 */
@media (max-width: 320px) {
	.login-container {
		width: 95%;
	}
	
	.win10-login-box-square {
		width: 70px;
	}
	
	.input-group input {
		font-size: 13px;
	}
}

/* 针对横屏的优化 */
@media (max-height: 480px) and (orientation: landscape) {
	#win10-login > div:first-child {
		height: 5%;
		min-height: 60px;
	}
	
	.win10-login-box-square {
		width: 60px;
	}
	
	.input-group {
		margin-bottom: 10px;
	}
}