html {
	height: 100%;
}

body.signin {
	height: 100vh;
	min-height: 100vh;
	background: linear-gradient(to bottom, #fafafa 0%, #ffe6e6 50%, #ffcccc36 100%);
	background-attachment: fixed;
	position: relative;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}

/* 顶部Logo区域 */
.login-header {
	background: transparent;
	padding: 25px 0;
	position: relative;
	z-index: 10;
	flex-shrink: 0;
}

.login-header .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.header-content {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.logo-section {
	margin-right: 20px;
}

.logo-img {
	height: 55px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.company-name {
	font-size: 18px;
	color: #333;
	font-weight: 500;
}

/* 主要内容区域 */
.signinpanel {
	width: 100%;
	max-width: 1200px;
	margin: 30px auto;
	padding: 0 20px;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.signinpanel .container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.signinpanel .row {
	margin: 0;
	display: flex;
	align-items: stretch;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

/* 左侧内容区域 */
.left-section {
	padding: 50px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(255, 243, 243, 0.95) 0%, rgba(244, 244, 244, 0.95) 100%);
	border-radius: 0;
	margin-right: 0;
	flex: 1;
	min-height: 500px;
}

.left-content {
	text-align: center;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 30px;
}

.left-content img {
	max-width: 100%;
	height: auto;
	width: 100%;
	object-fit: contain;
	display: block;
}

.logo-container {
	margin-bottom: 30px;
}

.left-logo {
	max-width: 100%;
	height: auto;
	width: auto;
	max-height: 80px;
}

.motto-title {
	font-size: 28px;
	font-weight: 700;
	color: rgb(244, 58, 44);
	margin: 0;
	letter-spacing: 6px;
	line-height: 1.4;
	text-shadow: 0 2px 4px rgba(244, 58, 44, 0.1);
}

.illustration-area {
	margin-top: 30px;
}

.illustration-placeholder {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	flex-wrap: wrap;
	color: #5cb85c;
	opacity: 0.9;
}

.illustration-placeholder i {
	margin: 10px;
	animation: float 3s ease-in-out infinite;
}

.illustration-placeholder i:nth-child(2) {
	animation-delay: 0.5s;
}

.illustration-placeholder i:nth-child(3) {
	animation-delay: 1s;
}

@keyframes float {
	0%, 100% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-10px);
	}
}

/* 右侧表单区域 */
.right-section {
	padding: 0;
	flex: 1;
	display: flex;
	align-items: stretch;
}

.form-panel {
	background: #fff;
	border-radius: 0;
	padding: 50px 45px;
	box-shadow: none;
	width: 100%;
	display: flex;
	flex-direction: column;
    /*justify-content: center;*/
     min-height: 500px;
}

.form-title {
font-size: 26px;
font-weight: 600;
color: #333;
margin-bottom: 35px;
text-align: center;
letter-spacing: 1px;
}

/* 表单输入框样式 */
.form-group {
	margin-bottom: 22px;
}

.form-group:last-of-type {
	margin-bottom: 0;
}

.input-wrapper {
	position: relative;
	background: #fffef0;
	border-radius: 4px;
	padding: 1px 15px;
	height: 40px;
	display: flex;
	align-items: center;
	border: 1px solid #e0e0e0;
	transition: all 0.3s ease;
}

.input-wrapper:focus-within {
	border-color: #5cb85c;
	box-shadow: 0 0 0 2px rgba(92, 184, 92, 0.1);
	background: #fff;
}

.input-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: rgb(168, 171, 178);
	z-index: 2;
	font-size: 16px;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.signinpanel .form-control {
	display: block;
	width: 100%;
	padding: 0 0 0 30px;
	margin: 0;
	border: 0;
	border-radius: 0;
	font-size: 14px;
	height: 38px;
	line-height: 38px;
	transition: all 0.3s ease;
	background: transparent;
	color: #333;
}

.signinpanel .form-control:focus {
	outline: none;
	border: none;
	box-shadow: none;
}

.signinpanel .form-control::placeholder {
	color: #999;
}

.signinpanel .uname,
.signinpanel .pword,
.signinpanel .code {
	background: transparent;
	background-position: 15px center;
	background-repeat: no-repeat;
}

/* 验证码区域 */
.captcha-link {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	width: 100%;
}

.imgcode {
	width: 100%;
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	object-fit: contain;
}

.imgcode:hover {
	opacity: 0.8;
}

/* 验证码区域 - 确保不换行 */
.form-group .row {
	display: flex !important;
	flex-wrap: nowrap !important;
	flex-direction: row !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
	box-sizing: border-box;
	overflow: visible;
}

/* 覆盖Bootstrap的float布局 */
.form-group .row::before,
.form-group .row::after {
	display: none !important;
	content: none !important;
}

.form-group .row [class*="col-xs"] {
	padding-left: 5px !important;
	padding-right: 5px !important;
	float: none !important;
	display: flex !important;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
	clear: none !important;
}

.form-group .row .col-xs-7 {
	width: 58.333333% !important;
	flex: 0 0 58.333333% !important;
	max-width: 58.333333% !important;
	min-width: 0 !important;
}

.form-group .row .col-xs-5 {
	width: 41.666667% !important;
	flex: 0 0 41.666667% !important;
	max-width: 41.666667% !important;
	min-width: 0 !important;
}

/* 验证码输入框容器 */
.form-group .row .input-wrapper {
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
	height: 40px;
}

.form-group .row .captcha-link {
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	background: #fffef0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.form-group .row .captcha-link:hover {
	border-color: #5cb85c;
	background: #fff;
}

/* 登录按钮 */
.btn-login {
	background: rgb(245, 108, 108);
	border: none;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	padding: 14px 19px;
	height: auto;
	border-radius: 4px;
	transition: all 0.3s ease;
	margin-top: 15px;
	width: 100%;
	letter-spacing: 1px;
}

.btn-login:hover,
.btn-login:focus {
	background: rgb(220, 90, 90);
	color: #fff;
	box-shadow: 0 2px 8px rgba(245, 108, 108, 0.3);
}

.btn-login:active {
	background: rgb(200, 80, 80);
}

.btn-login:disabled {
	background: #ccc;
	cursor: not-allowed;
}

/* 表单链接 */
.form-links {
	text-align: center;
	margin-top: 25px;
	font-size: 14px;
	color: #666;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.link-item {
	color: #5cb85c;
	text-decoration: none;
	margin: 0 10px;
	transition: color 0.3s ease;
}

.link-item:hover {
	color: #449d44;
	text-decoration: underline;
}

/* Checkbox样式 */
.checkbox-custom {
	position: relative;
	padding: 0 15px 0 25px;
	margin-bottom: 7px;
	display: inline-block;
	font-size: 14px;
}

.checkbox-custom input[type="checkbox"] {
	opacity: 0;
	position: absolute;
	cursor: pointer;
	z-index: 2;
	margin: -6px 0 0 0;
	top: 50%;
	left: 3px;
}

.checkbox-custom label:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	margin-top: -9px;
	width: 18px;
	height: 17px;
	display: inline-block;
	border-radius: 2px;
	border: 1px solid #bbb;
	background: #fff;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
	position: absolute;
	display: inline-block;
	font-family: 'Glyphicons Halflings';
	content: "\e013";
	top: 42%;
	left: 3px;
	margin-top: -5px;
	font-size: 11px;
	line-height: 1;
	width: 16px;
	height: 16px;
	color: #333;
}

.checkbox-custom label {
	cursor: pointer;
	line-height: 1.2;
	font-weight: normal;
	margin-bottom: 0;
	text-align: left;
}

.checkbox-custom a {
	color: #5cb85c;
	text-decoration: none;
}

.checkbox-custom a:hover {
	text-decoration: underline;
}

/* 底部Footer */
.signup-footer {
	background: #d9534f;
	color: #fff;
	padding: 18px 0;
	position: relative;
	z-index: 5;
	flex-shrink: 0;
	margin-top: auto;
}

.signup-footer .container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-content {
	text-align: center;
	font-size: 18px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.95);
}

/* 旧样式兼容 */
.signinpanel .logopanel {
	float: none;
	width: auto;
	padding: 0;
	background: 0 0;
}

.signinpanel .signin-info {
	padding: 20px;
}

.signinpanel .signin-info ul {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

.signinpanel .btn {
	margin-top: 15px;
}

.form-control, .form-control:focus, .has-error .form-control:focus, .has-success .form-control:focus, .has-warning .form-control:focus, .navbar-collapse, .navbar-form, .navbar-form-custom .form-control:focus, .navbar-form-custom .form-control:hover, .open .btn.dropdown-toggle, .panel, .popover, .progress, .progress-bar {
	box-shadow: none;
}

.form-control {
	border-radius: 0 !important;
	padding: 0 0 0 30px !important;
	height: 38px !important;
	line-height: 38px !important;
}

.form-control:focus {
	border-color: #5cb85c !important;
}

body .layer-ext-moon-msg[type="dialog"] {
	min-width: 100px !important;
}

body .layer-ext-moon-msg {
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	border: none;
}

body .layer-ext-moon-msg .layui-layer-content {
	padding: 12px 25px;
	text-align: center;
}

/* 移动端响应式 */
@media screen and (max-width: 768px) {
	body.signin {
		padding-bottom: 0;
	}
	
	.login-header {
		padding: 15px 0;
	}
	
	.header-content {
		flex-direction: row;
		align-items: center;
		justify-content: center;
	}
	
	.logo-section {
		margin-bottom: 0;
		margin-right: 0;
		width: auto;
		overflow: visible;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	
	.logo-img {
		height: 45px;
		width: auto;
		max-width: 100%;
		object-fit: contain;
		flex-shrink: 0;
	}
	
	.company-name {
		font-size: 14px;
		word-break: break-all;
	}
	
	.signinpanel {
		margin: 15px auto;
		padding: 0 15px;
		align-items: flex-start;
	}
	
	.signinpanel .row {
		flex-direction: column;
		align-items: stretch;
		box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
		border-radius: 10px;
	}
	
	.left-section {
		padding: 30px 20px;
		order: 2;
		width: 100%;
		margin-right: 0;
		margin-bottom: 0;
		border-radius: 0 0 10px 10px;
		min-height: auto;
	}
	
	.left-content {
		gap: 20px;
	}
	
	.motto-title {
		font-size: 20px;
		letter-spacing: 3px;
		margin-bottom: 0;
	}
	
	.left-content img {
		max-height: 200px;
		width: auto;
	}
	
	.right-section {
		padding: 0;
		order: 1;
		width: 100%;
	}
	
	.form-panel {
		border-radius: 10px 10px 0 0;
		padding: 35px 25px;
		min-height: auto;
	}
	
	.form-title {
		font-size: 22px;
		margin-bottom: 25px;
	}
	
	.form-group {
		margin-bottom: 18px;
	}
	
	.input-wrapper {
		height: 40px;
		padding: 1px 12px;
	}
	
	.signinpanel .form-control {
		height: 38px;
		padding: 0 0 0 28px;
		font-size: 14px;
		line-height: 38px;
	}
	
	.input-icon {
		left: 12px;
		font-size: 14px;
	}
	
	.btn-login {
		height: auto;
		font-size: 15px;
		padding: 13px 19px;
		margin-top: 12px;
	}
	
	.form-links {
		margin-top: 20px;
		font-size: 13px;
		gap: 12px;
	}
	
	/* 验证码区域 - 确保不换行 */
	.form-group .row {
		display: flex !important;
		flex-wrap: nowrap !important;
		flex-direction: row !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100% !important;
		overflow: visible;
		box-sizing: border-box;
	}
	
	/* 覆盖Bootstrap的clearfix */
	.form-group .row::before,
	.form-group .row::after {
		display: none !important;
		content: none !important;
		clear: none !important;
	}
	
	.form-group .row [class*="col-xs"] {
		padding-left: 5px !important;
		padding-right: 5px !important;
		float: none !important;
		display: flex !important;
		flex-direction: column;
		flex-shrink: 0;
		position: relative;
		box-sizing: border-box;
		clear: none !important;
	}
	
	.form-group .row .col-xs-7 {
		width: 58.333333% !important;
		flex: 0 0 58.333333% !important;
		max-width: 58.333333% !important;
		min-width: 0 !important;
	}
	
	.form-group .row .col-xs-5 {
		width: 41.666667% !important;
		flex: 0 0 41.666667% !important;
		max-width: 41.666667% !important;
		min-width: 0 !important;
	}
	
	.form-group .row .input-wrapper {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
		height: 40px;
		overflow: hidden;
	}
	
	.form-group .row .form-control {
		width: 100% !important;
		box-sizing: border-box;
		min-width: 0;
	}
	
	.form-group .row .captcha-link {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 40px;
	}
	
	.imgcode {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
	}
	
	.captcha-link {
		height: 40px;
		line-height: 40px;
	}
	
	.form-links {
		font-size: 12px;
	}
	
	.signup-footer {
		position: relative;
		margin-top: 40px;
	}
	
	.footer-content {
		font-size: 11px;
		padding: 10px 0;
		line-height: 1.6;
	}
}

@media screen and (max-width: 480px) {
	.logo-img {
		height: 40px;
		max-width: 100%;
	}
	
	.signinpanel {
		margin: 10px auto;
		padding: 0 10px;
	}
	
	.left-section {
		padding: 25px 15px;
	}
	
	.motto-title {
		font-size: 18px;
		letter-spacing: 2px;
	}
	
	.left-content img {
		max-height: 150px;
	}
	
	.form-panel {
		padding: 30px 20px;
	}
	
	.form-title {
		font-size: 20px;
		margin-bottom: 20px;
	}
	
	.form-group {
		margin-bottom: 16px;
	}
	
	.input-wrapper {
		height: 38px;
		padding: 1px 10px;
	}
	
	.signinpanel .form-control {
		font-size: 13px;
		height: 36px;
		line-height: 36px;
		padding: 0 0 0 26px;
	}
	
	.input-icon {
		left: 10px;
		font-size: 13px;
	}
	
	.btn-login {
		font-size: 14px;
		padding: 12px 15px;
		margin-top: 10px;
	}
	
	.form-links {
		margin-top: 18px;
		font-size: 12px;
		gap: 10px;
	}
	
	/* 小屏幕验证码区域 */
	.form-group .row {
		display: flex !important;
		flex-wrap: nowrap !important;
		flex-direction: row !important;
		width: 100% !important;
		box-sizing: border-box;
	}
	
	/* 覆盖Bootstrap的clearfix */
	.form-group .row::before,
	.form-group .row::after {
		display: none !important;
		content: none !important;
		clear: none !important;
	}
	
	.form-group .row [class*="col-xs"] {
		float: none !important;
		display: flex !important;
		flex-direction: column;
		box-sizing: border-box;
		clear: none !important;
	}
	
	.form-group .row .col-xs-7 {
		width: 55% !important;
		flex: 0 0 55% !important;
		max-width: 55% !important;
		min-width: 0 !important;
		padding-right: 8px !important;
	}
	
	.form-group .row .col-xs-5 {
		width: 45% !important;
		flex: 0 0 45% !important;
		max-width: 45% !important;
		min-width: 0 !important;
		padding-left: 8px !important;
	}
	
	.form-group .row .input-wrapper {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
		height: 38px;
	}
	
	.form-group .row .form-control {
		width: 100% !important;
		min-width: 0;
		box-sizing: border-box;
		height: 36px;
		line-height: 36px;
	}
	
	.form-group .row .captcha-link {
		width: 100%;
		min-width: 0;
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		height: 38px;
	}
	
	.form-group .row .imgcode {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
		object-fit: contain;
	}
}
