@charset "utf-8";
/* ============================================================
   水泥销售系统 · 登录页
   ============================================================ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	color: #1f2b3d;
	background: #0b5cf0;
	font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* ---------- 背景 ---------- */
.login-bg {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	inset: 0;
	overflow: hidden;
	background:
		radial-gradient(900px 520px at 12% 8%, rgba(90, 176, 255, .55), rgba(90, 176, 255, 0) 62%),
		radial-gradient(760px 520px at 88% 92%, rgba(0, 43, 148, .55), rgba(0, 43, 148, 0) 60%),
		linear-gradient(128deg, #0a4fd8 0%, #0f6bf5 42%, #2c8dff 100%);
	z-index: 0;
}
.login-bg .glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(2px);
	opacity: .55;
	background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 62%);
}
.login-bg .glow-1 { width: 460px; height: 460px; left: -120px; top: -140px; }
.login-bg .glow-2 { width: 320px; height: 320px; right: 6%; top: 14%; opacity: .32; }
.login-bg .glow-3 { width: 560px; height: 560px; right: -180px; bottom: -260px; opacity: .25; }
.login-bg .rings {
	position: absolute;
	top: -10%;
	right: -10%;
	left: -10%;
	inset: -10% -10% auto -10%;
	height: 70%;
	background-image:
		linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
}

/* ---------- 布局 ---------- */
.login-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1180px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 56px 32px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 404px;
	align-items: center;
	gap: 64px;
}

/* ---------- 左侧品牌区 ---------- */
.login-hero { color: #fff; min-width: 0; }
.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 38px; }
.brand-logo {
	width: 42px; height: 42px;
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .28);
	box-shadow: 0 8px 22px rgba(3, 33, 96, .22);
}
.brand-logo svg { width: 24px; height: 24px; }
.hero-brand .brand-name {
	font-size: 20px; font-weight: 700; letter-spacing: .5px;
}
.hero-brand .brand-tag {
	margin-left: 6px; padding: 2px 8px;
	font-size: 11px; letter-spacing: .5px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .28);
}
.hero-title {
	margin: 0 0 14px;
	font-size: 44px;
	line-height: 1.24;
	font-weight: 700;
	letter-spacing: 1px;
	text-shadow: 0 6px 26px rgba(2, 30, 92, .28);
}
.hero-title em { font-style: normal; color: #cfe6ff; }
.hero-sub {
	margin: 0;
	max-width: 460px;
	font-size: 15px;
	line-height: 1.9;
	color: rgba(255, 255, 255, .82);
}
.hero-art {
	position: relative;
	margin: 26px 0 18px;
	width: 100%;
	max-width: 520px;
	height: 250px;
}
.hero-art svg.cloud { width: 100%; height: 100%; overflow: visible; }
.hero-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	font-size: 12px;
	color: #eaf4ff;
	border-radius: 10px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .22);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	box-shadow: 0 8px 20px rgba(3, 30, 90, .18);
	white-space: nowrap;
}
.hero-chip i { width: 6px; height: 6px; border-radius: 50%; background: #7fd3ff; display: inline-block; }
.hero-chip.c1 { left: 2%; top: 8%; }
.hero-chip.c2 { right: 4%; top: 20%; }
.hero-chip.c3 { left: 8%; bottom: 16%; }
.hero-chip.c4 { right: 10%; bottom: 6%; }
.hero-points {
	margin: 6px 0 0; padding: 0; list-style: none;
	display: flex; flex-wrap: wrap; gap: 10px 26px;
	font-size: 13px; color: rgba(255, 255, 255, .78);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 15px; height: 15px; opacity: .9; }

/* ---------- 右侧登录卡片 ---------- */
.login-card {
	position: relative;
	width: 100%;
	background: #fff;
	border-radius: 22px;
	padding: 38px 34px 26px;
	box-shadow: 0 30px 60px rgba(5, 34, 96, .28), 0 2px 0 rgba(255, 255, 255, .6) inset;
	-webkit-animation: cardIn .55s cubic-bezier(.22, .68, .32, 1) both;
	animation: cardIn .55s cubic-bezier(.22, .68, .32, 1) both;
}
@-webkit-keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.card-head { margin-bottom: 26px; }
.card-head h2 { margin: 0 0 8px; font-size: 25px; font-weight: 700; letter-spacing: .5px; color: #16233a; }
.card-head p { margin: 0; font-size: 13px; color: #8b98ad; }

.form-field { position: relative; margin-bottom: 16px; }
.form-field .field-ico {
	position: absolute; left: 14px; top: 50%;
	width: 18px; height: 18px; margin-top: -9px;
	color: #9fb0c8; pointer-events: none;
}
.form-field .field-ico svg { width: 18px; height: 18px; display: block; }
.form-field input {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 42px;
	font-size: 14px;
	color: #1f2b3d;
	background: #f7f9fd;
	border: 1px solid #e2e9f4;
	border-radius: 12px;
	outline: none;
	-webkit-transition: border-color .16s, box-shadow .16s, background .16s;
	transition: border-color .16s, box-shadow .16s, background .16s;
}
.form-field input::-webkit-input-placeholder { color: #a9b6c8; }
.form-field input::-moz-placeholder { color: #a9b6c8; }
.form-field input:-ms-input-placeholder { color: #a9b6c8; }
.form-field input:hover { border-color: #cddaf0; }
.form-field input:focus {
	background: #fff;
	border-color: #4a91ff;
	box-shadow: 0 0 0 4px rgba(22, 119, 255, .12);
}
.form-field .field-eye {
	position: absolute; right: 8px; top: 50%;
	width: 34px; height: 34px; margin-top: -17px;
	display: none; align-items: center; justify-content: center;
	border: 0; background: transparent; cursor: pointer;
	color: #93a2b8; border-radius: 8px;
}
.form-field .field-eye:hover { color: #1677ff; background: #eef5ff; }
.form-field .field-eye svg { width: 18px; height: 18px; }
.form-field.has-value .field-eye { display: flex; }

.form-row {
	display: flex; align-items: center; justify-content: space-between;
	margin: 4px 0 22px; font-size: 13px; color: #7d8ba0;
}
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.checkbox input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox .box {
	width: 16px; height: 16px; border-radius: 4px;
	border: 1px solid #cfd8e6; background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	-webkit-transition: all .15s; transition: all .15s;
}
.checkbox .box svg { width: 10px; height: 10px; color: #fff; opacity: 0; transform: scale(.6); transition: all .15s; }
.checkbox input:checked + .box { background: #1677ff; border-color: #1677ff; }
.checkbox input:checked + .box svg { opacity: 1; transform: none; }
.checkbox input:focus-visible + .box { box-shadow: 0 0 0 3px rgba(22, 119, 255, .18); }
.form-row .hint { font-size: 12px; color: #a3b0c2; }

.login-error {
	min-height: 20px;
	margin: -6px 0 12px;
	font-size: 13px; color: #e5383b;
	display: flex; align-items: center; gap: 6px;
	opacity: 0;
}
.login-error.is-show { opacity: 1; -webkit-animation: shake .38s ease; animation: shake .38s ease; }
.login-error svg { width: 14px; height: 14px; flex: 0 0 auto; }
@-webkit-keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	50% { transform: translateX(4px); }
	75% { transform: translateX(-2px); }
}
@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	50% { transform: translateX(4px); }
	75% { transform: translateX(-2px); }
}

.btn-login {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 4px;
	color: #fff;
	cursor: pointer;
	background: -webkit-linear-gradient(left, #1677ff, #3b8dff);
	background: linear-gradient(90deg, #1677ff, #3b8dff);
	box-shadow: 0 10px 24px rgba(22, 119, 255, .30);
	-webkit-transition: transform .12s, box-shadow .18s, filter .18s;
	transition: transform .12s, box-shadow .18s, filter .18s;
	outline: none;
}
.btn-login:hover { filter: brightness(1.04); box-shadow: 0 12px 28px rgba(22, 119, 255, .36); }
.btn-login:active { transform: translateY(1px); }
.btn-login:disabled { cursor: not-allowed; filter: saturate(.7); box-shadow: none; }
.btn-login .spinner {
	display: none;
	width: 18px; height: 18px;
	margin-right: 10px;
	vertical-align: -3px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	-webkit-animation: spin .7s linear infinite;
	animation: spin .7s linear infinite;
}
.btn-login.is-loading .spinner { display: inline-block; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.card-foot {
	margin: 26px 0 0;
	padding-top: 16px;
	border-top: 1px solid #f0f3f9;
	text-align: center;
	font-size: 12px;
	color: #a6b2c4;
	line-height: 1.8;
}
.card-foot a { color: #1677ff; text-decoration: none; }
.card-foot a:hover { text-decoration: underline; }

/* 大写锁定提示 */
.caps-hint {
	display: none;
	margin: -8px 0 10px;
	font-size: 12px;
	color: #f79009;
}
.caps-hint.is-show { display: block; }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
	.login-shell { gap: 38px; grid-template-columns: minmax(0, 1fr) 380px; padding: 44px 26px; }
	.hero-title { font-size: 36px; }
	.hero-art { height: 210px; }
}

/* ---------- 手机 / 小尺寸平板 ---------- */
@media (max-width: 900px) {
	body { overflow-y: auto; }
	.login-shell {
		grid-template-columns: 1fr;
		max-width: 460px;
		min-height: 100%;
		padding: 34px 20px 40px;
		gap: 22px;
	}
	.login-hero { text-align: center; }
	.hero-brand { justify-content: center; margin-bottom: 22px; }
	.hero-title { font-size: 26px; margin-bottom: 8px; }
	.hero-sub { font-size: 13px; margin: 0 auto; max-width: 360px; line-height: 1.8; }
	.hero-art, .hero-points { display: none; }
	.login-card { padding: 28px 22px 20px; border-radius: 18px; }
	.card-head h2 { font-size: 22px; }
	.card-head { margin-bottom: 20px; }
}

@media (max-width: 420px) {
	.login-shell { padding: 26px 16px 28px; }
	.hero-brand { margin-bottom: 16px; }
	.hero-title { font-size: 23px; }
	.form-field input { height: 46px; }
	.btn-login { height: 46px; }
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { -webkit-animation: none !important; animation: none !important; transition: none !important; }
}
