:root {
	--mj-bg: #e8f0fe;
	--mj-bg-deep: #d6e4ff;
	--mj-ink: #1a2b4a;
	--mj-muted: #6b7c99;
	--mj-primary: #2f6bff;
	--mj-primary-deep: #1f54d9;
	--mj-card: rgba(255, 255, 255, 0.92);
	--mj-line: #d9e3f5;
	--mj-radius: 20px;
}

html {
	height: 100%;
	overflow: hidden;
}

body.signin {
	height: 100%;
	min-height: 100vh;
	margin: 0;
	padding: 0 8vw 0 0;
	box-sizing: border-box;
	color: var(--mj-ink);
	background: #eef4ff url(../img/logo-BG.png) no-repeat center center fixed;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.signinpanel {
	position: relative;
	z-index: 1;
	width: 420px;
	max-width: 100%;
	margin: 0;
	flex-shrink: 0;
	color: var(--mj-ink);
}

.login-card {
	background: var(--mj-card);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: var(--mj-radius);
	padding: 32px 28px 28px;
	box-shadow: 0 20px 50px rgba(47, 90, 180, 0.12);
	backdrop-filter: blur(12px);
	animation: rise 0.7s ease both;
}

.login-title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--mj-ink);
}

.login-sub {
	margin: 8px 0 24px;
	font-size: 13px;
	color: var(--mj-muted);
}

.field {
	margin-bottom: 16px;
}

.field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--mj-muted);
}

.signinpanel .form-control {
	display: block;
	width: 100%;
	height: 44px !important;
	margin-top: 0;
	padding: 10px 14px !important;
	border: 1px solid var(--mj-line) !important;
	border-radius: 12px !important;
	background: #fff;
	color: var(--mj-ink);
	box-shadow: none !important;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.signinpanel .uname,
.signinpanel .pword,
.signinpanel .code {
	background-image: none;
}

.signinpanel .form-control:focus {
	border-color: var(--mj-primary) !important;
	box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15) !important;
}

.captcha-row {
	margin-left: -8px;
	margin-right: -8px;
}

.captcha-row > [class*="col-"] {
	padding-left: 8px;
	padding-right: 8px;
}

.captcha-wrap {
	display: block;
	margin-top: 24px;
	height: 44px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--mj-line);
	background: #fff;
}

.captcha-wrap .imgcode {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.login-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 4px 0 8px;
	min-height: 24px;
}

.register-link {
	font-weight: 500;
	font-size: 13px;
}

.register-link a {
	color: var(--mj-primary);
}

.btn-login,
.signinpanel .btn {
	margin-top: 8px;
	height: 46px;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: #fff !important;
	background: linear-gradient(135deg, #5b8cff, var(--mj-primary)) !important;
	box-shadow: 0 10px 22px rgba(47, 107, 255, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-login:hover,
.btn-login:focus,
.signinpanel .btn:hover,
.signinpanel .btn:focus {
	filter: brightness(1.03);
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(47, 107, 255, 0.34);
	color: #fff !important;
}

.btn-login:active {
	transform: translateY(0);
}

.signup-footer {
	margin-top: 14px;
	padding: 0;
	border: none;
	text-align: center;
	font-size: 12px;
	color: var(--mj-muted);
	animation: rise 0.7s ease 0.16s both;
}

.checkbox-custom {
	position: relative;
	padding: 0 0 0 24px;
	margin-bottom: 0;
	display: inline-block;
}

.checkbox-custom input[type="checkbox"] {
	opacity: 0;
	position: absolute;
	cursor: pointer;
	z-index: 2;
	margin: -6px 0 0 0;
	top: 50%;
	left: 0;
	width: 18px;
	height: 18px;
}

.checkbox-custom label:before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	margin-top: -9px;
	width: 18px;
	height: 18px;
	display: inline-block;
	border-radius: 5px;
	border: 1px solid #c5d2ea;
	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: var(--mj-primary);
}

.checkbox-custom label {
	cursor: pointer;
	line-height: 1.2;
	font-weight: normal;
	margin-bottom: 0;
	text-align: left;
	color: var(--mj-muted);
	font-size: 13px;
}

.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;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media screen and (max-width: 768px) {
	html,
	body.signin {
		overflow: auto;
	}

	body.signin {
		padding: 24px 16px;
		justify-content: center;
		align-items: flex-start;
	}

	.signinpanel {
		width: 100%;
		max-width: 420px;
		margin: 0 auto;
	}

	.login-card {
		padding: 28px 22px 24px;
	}
}

@media screen and (max-width: 320px) {
	body.signin {
		padding: 16px 12px;
	}

	.signinpanel {
		width: auto;
		max-width: none;
	}
}

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;
}
