/* =========================================================
   登录 / 注册专用页
   ========================================================= */

body.site-auth-page {
	--auth-navy: #1c2b5b;
	--auth-blue: #586fa8;
	--auth-gold: #ffba00;
	--auth-ink: #1a2238;
	--auth-muted: #6b7280;
	--auth-line: #e4e9f2;
	--auth-soft: #f4f7fb;
	background:
		radial-gradient(1200px 600px at 12% -10%, rgba(88, 111, 168, 0.22), transparent 55%),
		radial-gradient(900px 500px at 100% 0%, rgba(255, 186, 0, 0.12), transparent 45%),
		linear-gradient(180deg, #e8eef8 0%, #f3f6fb 42%, #eef2f8 100%);
	min-height: 100vh;
}

body.site-auth-page .site-header {
	background: transparent !important;
	box-shadow: none !important;
	position: absolute !important;
	top: 0;
	left: 0;
	right: 0;
}

body.site-auth-page .site-header .nav-list,
body.site-auth-page .site-header .login-link {
	display: none !important;
}

body.site-auth-page .site-header .header {
	padding: 18px 0 !important;
}

body.site-auth-page .site-header .logo img {
	display: none;
}

body.site-auth-page .site-header .logo .site-text-logo {
	color: #1c2b5b;
	font-size: 22px;
	font-weight: 700;
	line-height: 42px;
}

body.site-auth-page .footer {
	margin-top: 0 !important;
	padding-top: 28px !important;
	padding-bottom: 20px !important;
}

body.site-auth-page .footer .site-footer-row {
	display: none !important;
}

body.site-auth-page .footer .footer-lind {
	display: none !important;
}

body.site-auth-page .footer .beian {
	text-align: center !important;
	margin: 0 !important;
	padding: 8px 16px 0 !important;
	color: #8b93ad !important;
	font-size: 12px !important;
}

body.site-auth-page .footer .beian a {
	color: #8b93ad !important;
}

body.site-auth-page .float-r {
	display: none !important;
}

/* ---------- 主舞台 ---------- */
.auth-stage {
	position: relative;
	padding: 110px 24px 48px;
	min-height: calc(100vh - 120px);
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-shell {
	width: 100%;
	max-width: 980px;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 0;
	border-radius: 24px;
	overflow: hidden;
	background: #fff;
	box-shadow:
		0 30px 80px rgba(28, 43, 91, 0.14),
		0 2px 0 rgba(255, 255, 255, 0.6) inset;
	animation: auth-rise .55s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-shell-wide {
	max-width: 1080px;
	grid-template-columns: 0.9fr 1.1fr;
}

.auth-shell-narrow {
	max-width: 860px;
	grid-template-columns: 0.95fr 1.05fr;
}

@keyframes auth-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- 左侧品牌 ---------- */
.auth-panel {
	position: relative;
	padding: 42px 40px 36px;
	background:
		linear-gradient(155deg, rgba(28, 43, 91, 0.94) 0%, rgba(60, 90, 153, 0.88) 55%, rgba(88, 111, 168, 0.9) 100%),
		url(/static/home/kaka/images/site-inner-hero.jpg?v=09071290) center/cover no-repeat;
	color: #fff;
	overflow: hidden;
}

.auth-panel::after {
	content: "";
	position: absolute;
	right: -40px;
	bottom: -40px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(255, 186, 0, 0.16);
	filter: blur(2px);
	pointer-events: none;
}

.auth-brand {
	display: inline-block;
	margin-bottom: 28px;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #ffba00;
	text-decoration: none;
	text-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	animation: auth-fade .7s ease .08s both;
}

.auth-headline {
	margin: 0 0 12px;
	font-size: 34px;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	animation: auth-fade .7s ease .14s both;
}

.auth-lead {
	margin: 0 0 28px;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.82);
	max-width: 28em;
	animation: auth-fade .7s ease .2s both;
}

.auth-points {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	animation: auth-fade .7s ease .26s both;
}

.auth-points li {
	position: relative;
	padding: 9px 0 9px 18px;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.92);
}

.auth-points li:before {
	content: "";
	position: absolute;
	left: 0;
	top: 15px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #ffba00;
	box-shadow: 0 0 0 4px rgba(255, 186, 0, 0.18);
}

.auth-panel-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #ffba00;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 186, 0, 0.35);
	padding-bottom: 2px;
	transition: color .2s ease, border-color .2s ease;
	animation: auth-fade .7s ease .32s both;
}

.auth-panel-link:hover {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.5);
}

@keyframes auth-fade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- 右侧表单 ---------- */
.auth-box {
	padding: 40px 40px 32px;
	background: #fff;
	animation: auth-fade .65s ease .18s both;
}

.auth-box-register {
	padding: 32px 36px 28px;
}

.auth-box-head {
	margin-bottom: 22px;
}

.auth-box-head h2 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: var(--auth-navy);
}

.auth-box-head p {
	margin: 0;
	font-size: 13px;
	color: var(--auth-muted);
}

.auth-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 26px;
	padding: 4px;
	background: var(--auth-soft);
	border-radius: 14px;
}

.auth-tab {
	flex: 1;
	height: 42px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--auth-muted);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.auth-tab.is-active {
	background: #fff;
	color: var(--auth-navy);
	box-shadow: 0 6px 16px rgba(28, 43, 91, 0.1);
}

.auth-pane {
	display: none;
}

.auth-pane.is-active,
.auth-pane:not(.hide) {
	display: block;
}

.auth-pane.hide {
	display: none !important;
}

.auth-field {
	margin-bottom: 16px;
}

.auth-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 700;
	color: var(--auth-navy);
}

.auth-field .form-control,
.auth-register-form .form-control {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--auth-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: none;
	font-size: 15px;
	color: var(--auth-ink);
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field .form-control:focus,
.auth-register-form .form-control:focus {
	border-color: var(--auth-blue);
	outline: none;
	box-shadow: 0 0 0 4px rgba(88, 111, 168, 0.14);
}

.auth-hint {
	margin: 6px 0 0;
	font-size: 12px;
	color: #9aa3b5;
}

.auth-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 4px 0 18px;
	font-size: 13px;
}

.auth-row a {
	color: var(--auth-muted);
	text-decoration: none;
}

.auth-row a:hover,
.auth-link {
	color: var(--auth-blue);
}

.auth-submit {
	display: block;
	width: 100%;
	height: 50px;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--auth-navy) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	box-shadow: 0 14px 28px rgba(28, 43, 91, 0.22);
	transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-submit:hover {
	background: #2a3f7a !important;
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(28, 43, 91, 0.28);
}

.auth-field-code {
	position: relative;
}

.auth-field-code .form-control {
	padding-right: 118px;
}

.auth-code-btn {
	position: absolute;
	right: 10px;
	bottom: 10px;
	height: 28px;
	line-height: 28px;
	padding: 0 10px;
	border: 0;
	background: transparent;
	color: var(--auth-blue) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.auth-code-btn:hover {
	color: var(--auth-navy) !important;
}

.auth-captcha-row {
	display: flex;
	gap: 12px;
	align-items: stretch;
}

.auth-captcha-row .form-control {
	flex: 1 1 auto;
	min-width: 0;
	height: 56px;
}

.auth-field-captcha {
	grid-column: 1 / -1;
}

.auth-captcha-row .verifyimg {
	flex: 0 0 168px;
	width: 168px;
	height: 56px;
	object-fit: cover;
	object-position: center;
	border-radius: 12px;
	cursor: pointer;
	border: 1px solid var(--auth-line);
	background: #f7f9fc;
	box-sizing: border-box;
}

.auth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.auth-agree {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 8px 0 18px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--auth-muted);
	cursor: pointer;
}

.auth-agree input {
	margin-top: 3px;
}

.auth-agree a {
	text-decoration: none;
}

.auth-alt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--auth-line);
	font-size: 13px;
	color: var(--auth-muted);
}

.auth-alt.is-empty {
	display: none;
}

.auth-alt a {
	color: var(--auth-navy);
	font-weight: 700;
	text-decoration: none;
}

.auth-alt a:hover {
	color: var(--auth-blue);
}

.auth-box .form-error:empty {
	display: none;
}

.auth-box .form-error:not(:empty) {
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff1f0;
	color: #c0392b;
	font-size: 13px;
}

.auth-result h2 {
	margin: 0 0 12px;
	font-size: 22px;
	color: var(--auth-navy);
}

.auth-result p {
	margin: 0 0 10px;
	color: var(--auth-muted);
	line-height: 1.7;
	font-size: 14px;
}

.auth-result .auth-submit {
	margin-top: 20px;
	text-align: center;
	line-height: 50px;
	text-decoration: none;
}

/* 密码强度 */
#setpass_security {
	margin-top: 8px;
	font-size: 12px;
}

.auth-strength-label {
	color: var(--auth-muted);
	margin-right: 8px;
}

#setpass_security .levs {
	display: inline-flex;
	gap: 4px;
	vertical-align: middle;
}

#setpass_security .lev {
	display: inline-block;
	width: 28px;
	height: 4px;
	border-radius: 4px;
	background: #e5e7eb;
	color: transparent;
	overflow: hidden;
	font-size: 0;
}

#setpass_security .text {
	display: none;
}

#setpass_security.security-level-weak .lev1 {
	background: #ef4444;
}

#setpass_security.security-level-medium .lev1,
#setpass_security.security-level-medium .lev2 {
	background: #f59e0b;
}

#setpass_security.security-level-strong .lev1,
#setpass_security.security-level-strong .lev2,
#setpass_security.security-level-strong .lev3 {
	background: #22c55e;
}

body.site-auth-page #loading,
body.site-auth-page #loading.loading {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 10050 !important;
	display: inline-block;
	margin: 0 !important;
	padding: 18px 28px !important;
	transform: translate(-50%, -50%) !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: #1c2b5b !important;
	color: #fff !important;
	opacity: 1 !important;
	box-shadow: 0 18px 40px rgba(28, 43, 91, 0.32) !important;
	text-align: center;
	white-space: nowrap;
}

body.site-auth-page #loading.loading .iconimg {
	display: inline-block;
	width: 18px;
	height: 18px;
	margin-right: 8px;
	background: none !important;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-top-color: #ffba00;
	border-radius: 50%;
	vertical-align: middle;
	animation: auth-spin .8s linear infinite;
}

body.site-auth-page #modal-dialog-cover,
body.site-auth-page .modal-cover {
	position: fixed !important;
	left: 0 !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 10040 !important;
	background: rgba(15, 23, 42, 0.45) !important;
}

body.site-auth-page #modal-dialog.modal,
body.site-auth-page #modal-dialog {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	z-index: 10060 !important;
	margin: 0 !important;
	transform: translate(-50%, -50%) !important;
	max-width: 92vw;
}

@keyframes auth-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
	.auth-stage {
		padding: 96px 16px 32px;
		align-items: flex-start;
	}

	.auth-shell,
	.auth-shell-wide,
	.auth-shell-narrow {
		grid-template-columns: 1fr;
		max-width: 520px;
	}

	.auth-panel {
		padding: 28px 24px 24px;
	}

	.auth-brand {
		font-size: 22px;
		margin-bottom: 16px;
	}

	.auth-headline {
		font-size: 26px;
	}

	.auth-points {
		display: none;
	}

	.auth-box,
	.auth-box-register {
		padding: 28px 22px 24px;
	}

	.auth-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- 简洁居中布局（对齐 store 逻辑页） ---------- */
.auth-simple {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	animation: auth-rise .5s cubic-bezier(.22, 1, .36, 1) both;
}

.auth-simple-wide {
	max-width: 560px;
}

.auth-simple-brand {
	margin: 0 0 18px;
	text-align: center;
}

.auth-simple-brand a {
	font-size: 22px;
	font-weight: 700;
	color: var(--auth-navy);
	text-decoration: none;
	letter-spacing: 0.04em;
}

.auth-box-simple {
	padding: 32px 32px 28px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(28, 43, 91, 0.1);
}

.auth-simple .auth-box-head {
	margin-bottom: 20px;
	text-align: left;
}

.auth-simple .auth-box-head h2 {
	margin: 0 0 6px;
	font-size: 26px;
	color: var(--auth-navy);
}

.auth-simple .auth-box-head p {
	margin: 0;
	font-size: 14px;
	color: var(--auth-muted);
}

.auth-simple-foot {
	margin: 18px 0 0;
	text-align: center;
	font-size: 13px;
	color: #8b93ad;
}

/* setTab 兼容：#login1.active */
body.site-auth-page .login-tab.auth-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin: 0 0 22px;
	padding: 4px;
	border-radius: 12px;
	background: var(--auth-soft);
}

body.site-auth-page .login-tab.auth-tabs a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--auth-muted);
	text-decoration: none;
	border: 0;
	background: transparent;
}

body.site-auth-page .login-tab.auth-tabs a.active {
	background: #fff;
	color: var(--auth-navy);
	box-shadow: 0 4px 12px rgba(28, 43, 91, 0.08);
}

body.site-auth-page .login-content.hide {
	display: none !important;
}

body.site-auth-page .login-content[hidden] {
	display: none !important;
}

body.site-auth-page #sign-error:empty,
body.site-auth-page #sign-error-code:empty,
body.site-auth-page .form-error:empty {
	display: none !important;
}

body.site-auth-page #sign-error:not(:empty),
body.site-auth-page #sign-error-code:not(:empty),
body.site-auth-page .form-error:not(:empty) {
	display: block !important;
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff5f5;
	border: 1px solid #f5c6cb;
	color: #c0392b;
	font-size: 13px;
	line-height: 1.5;
}

/* formtip 在登录页可见 */
body.site-auth-page .tooltip {
	z-index: 3000 !important;
}

body.site-auth-page .form-control-error {
	border-color: #e57373 !important;
	box-shadow: 0 0 0 3px rgba(229, 115, 115, 0.18);
}

@media (max-width: 640px) {
	.auth-box-simple {
		padding: 24px 18px 20px;
	}
}

/* ========== 登录成功等系统弹窗（对齐 store，训民色） ========== */
body.site-auth-page #modal-dialog.modal,
body.site-auth-page #modal-dialog {
	font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
	background: #fff !important;
	border: 1px solid rgba(28, 43, 91, 0.08) !important;
	border-radius: 16px !important;
	box-shadow: 0 24px 64px rgba(28, 43, 91, 0.18) !important;
	overflow: hidden;
	max-width: calc(100vw - 32px);
	padding: 0 !important;
}

body.site-auth-page #modal-dialog .modal-header {
	display: none !important;
}

body.site-auth-page #modal-dialog .modal-prompt {
	padding: 0;
}

body.site-auth-page #modal-dialog .prompt {
	margin: 0 !important;
	padding: 36px 32px 28px !important;
	text-align: center;
	background: transparent;
}

body.site-auth-page #modal-dialog .prompt-icon {
	width: 64px !important;
	height: 64px !important;
	margin: 0 auto 18px !important;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	position: relative;
}

body.site-auth-page #modal-dialog .prompt-icon .iconimg {
	display: none !important;
}

body.site-auth-page #modal-dialog .prompt-icon::before {
	content: "";
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: block;
}

body.site-auth-page #modal-dialog .prompt-success .prompt-icon {
	background: rgba(28, 43, 91, 0.08);
}

body.site-auth-page #modal-dialog .prompt-success .prompt-icon::before {
	background: #1c2b5b;
	box-shadow: 0 8px 20px rgba(28, 43, 91, 0.28);
}

body.site-auth-page #modal-dialog .prompt-success .prompt-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 46%;
	width: 14px;
	height: 8px;
	margin-left: -8px;
	margin-top: -6px;
	border-left: 2.5px solid #fff;
	border-bottom: 2.5px solid #fff;
	transform: rotate(-45deg);
	box-sizing: border-box;
}

body.site-auth-page #modal-dialog .prompt-info .prompt-icon {
	background: rgba(88, 111, 168, 0.12);
}

body.site-auth-page #modal-dialog .prompt-info .prompt-icon::before {
	background: #586fa8;
}

body.site-auth-page #modal-dialog .prompt-info .prompt-icon::after {
	content: "i";
	position: absolute;
	inset: 0;
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	font-style: italic;
	line-height: 64px;
	text-align: center;
}

body.site-auth-page #modal-dialog .prompt-warning .prompt-icon {
	background: rgba(255, 186, 0, 0.16);
}

body.site-auth-page #modal-dialog .prompt-warning .prompt-icon::before {
	background: #ffba00;
}

body.site-auth-page #modal-dialog .prompt-warning .prompt-icon::after {
	content: "!";
	position: absolute;
	inset: 0;
	color: #1c2b5b;
	font-size: 28px;
	font-weight: 700;
	line-height: 64px;
	text-align: center;
}

body.site-auth-page #modal-dialog .prompt-danger .prompt-icon {
	background: rgba(192, 57, 43, 0.1);
}

body.site-auth-page #modal-dialog .prompt-danger .prompt-icon::before {
	background:
		linear-gradient(#fff, #fff) center / 20px 2.5px no-repeat,
		linear-gradient(#fff, #fff) center / 2.5px 20px no-repeat,
		#c0392b;
	transform: rotate(45deg);
	box-shadow: 0 8px 20px rgba(192, 57, 43, 0.25);
}

body.site-auth-page #modal-dialog .prompt-cont {
	padding: 0 !important;
	overflow: visible !important;
}

body.site-auth-page #modal-dialog .prompt-cont h4 {
	margin: 0 0 10px !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: #1c2b5b !important;
	letter-spacing: 0.02em;
}

body.site-auth-page #modal-dialog .prompt-success .prompt-cont h4,
body.site-auth-page #modal-dialog .prompt-info .prompt-cont h4,
body.site-auth-page #modal-dialog .prompt-warning .prompt-cont h4,
body.site-auth-page #modal-dialog .prompt-danger .prompt-cont h4 {
	color: #1c2b5b !important;
}

body.site-auth-page #modal-dialog .prompt-cont p {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14px !important;
	line-height: 1.7 !important;
	color: #6b7280 !important;
}

body.site-auth-page #modal-dialog .prompt-cont .action {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding-top: 24px !important;
	white-space: normal !important;
}

body.site-auth-page #modal-dialog .prompt-cont .action .btn {
	margin: 0 !important;
	min-height: 42px;
	min-width: 108px;
	padding: 0 22px !important;
	border-radius: 999px !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 42px !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
}

body.site-auth-page #modal-dialog .prompt-cont .action .btn-primary,
body.site-auth-page #modal-dialog .prompt-cont .action .btn-ok {
	background: #1c2b5b !important;
	color: #fff !important;
}

body.site-auth-page #modal-dialog .prompt-cont .action .btn-primary:hover,
body.site-auth-page #modal-dialog .prompt-cont .action .btn-ok:hover {
	background: #2a3f7a !important;
}

body.site-auth-page #modal-dialog .prompt-cont .action .btn-default,
body.site-auth-page #modal-dialog .prompt-cont .action .btn-cancel {
	background: #f0f3f8 !important;
	color: #6b7280 !important;
}

body.site-auth-page #modal-dialog .prompt-success .action .btn-cancel {
	display: none !important;
}

body.site-auth-page #modal-dialog .prompt-success .action .btn-ok {
	min-width: 148px;
}

body.site-auth-page #modal-dialog-cover.modal-cover,
body.site-auth-page .modal-cover#modal-dialog-cover {
	background: rgba(28, 43, 91, 0.45) !important;
	backdrop-filter: blur(2px);
}

body.site-auth-page #modal-dialog {
	animation: authModalIn .35s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes authModalIn {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
