* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
		"Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
	background-color: #f5f7fa;
	background-image: url("https://taix.cn/web/statics/img/admin/passport/saas-admin-login-bg.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	overflow: hidden;
}

.login-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 24px 24px;
}

.login-main {
	width: 100%;
	max-width: 980px;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex: 1;
}

.login-card {
	width: 360px !important;
	margin: 0 !important;
	padding: 40px 36px 28px;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.login-card-title {
	text-align: center;
	font-size: 22px;
	font-weight: 600;
	color: #333333;
	letter-spacing: 2px;
	margin-bottom: 28px;
	line-height: 1.4;
}

.layui-form-item {
	margin-top: 0 !important;
	margin-bottom: 18px !important;
}

.layui-form-item:last-child {
	margin-bottom: 0 !important;
}

.layui-input {
	height: 42px !important;
	line-height: 42px !important;
	padding-left: 14px !important;
	border-radius: 4px !important;
	border: 1px solid #e5e6eb !important;
	background: #fafbfc !important;
	color: #333 !important;
	font-size: 14px !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.layui-input::placeholder {
	color: #c0c4cc;
}

.layui-input:hover {
	border-color: #c9cdd4 !important;
}

.layui-input:focus {
	border-color: #ff9900 !important;
	background: #fff !important;
	box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.12) !important;
}

.layui-form-danger:focus {
	border-color: #f56c6c !important;
	box-shadow: 0 0 0 2px rgba(245, 108, 108, 0.12) !important;
}

.captcha-item {
	display: flex !important;
	align-items: center;
	gap: 12px;
}

.captcha-item .code {
	float: none !important;
	flex: 1;
	margin: 0 !important;
	display: block !important;
	width: auto !important;
}

.codeImage {
	float: none;
	height: 42px;
	width: 110px;
	flex-shrink: 0;
	border: 1px solid #e5e6eb;
	border-radius: 4px;
	cursor: pointer;
	background: #fff;
	object-fit: cover;
}

.remember-item {
	margin-bottom: 22px !important;
}

.remember-item .layui-form-checkbox {
	padding-left: 24px !important;
}

.remember-item .layui-form-checkbox span {
	color: #666 !important;
	font-size: 13px !important;
}

.layui-form-checked[lay-skin=primary] i {
	border-color: #ff9900 !important;
	background-color: #ff9900 !important;
	color: #fff !important;
}

.layui-form-checkbox[lay-skin=primary]:hover i {
	border-color: #ff9900 !important;
}

.login-btn {
	display: block;
	width: 100%;
	height: 44px;
	line-height: 44px;
	border: none;
	border-radius: 4px;
	background: #f0f2f5;
	color: #666;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 4px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
	background: #ff9900;
	color: #fff;
	box-shadow: 0 4px 12px rgba(255, 153, 0, 0.28);
}

.login-btn:active {
	background: #e68a00;
	color: #fff;
}

.login-footer {
	width: 100%;
	text-align: center;
	padding: 20px 16px 8px;
	font-size: 12px;
	line-height: 1.6;
	color: #b0b4bc;
	letter-spacing: 0.3px;
}

@media screen and (max-width: 900px) {
	body {
		background-position: left center;
	}

	.login-main {
		justify-content: center;
	}

	.login-card {
		width: 100% !important;
		max-width: 360px;
	}
}

@media screen and (max-width: 480px) {
	.login-page {
		padding: 24px 16px 16px;
	}

	.login-card {
		padding: 32px 22px 24px;
	}

	.login-card-title {
		font-size: 20px;
		margin-bottom: 22px;
	}
}
