/* EvoLoop 商家控制台 · 登录页（原子化能力矩阵）——深色工程美学，自包含不依赖 common.css */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('fonts/inter-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
	font-family: 'JetBrains Mono';
	font-style: normal;
	font-weight: 100 800;
	font-display: swap;
	src: url('fonts/jetbrains-mono-var-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

:root {
	--l-bg: #050507;
	--l-bg-soft: #0A0A0D;
	--l-panel: rgba(255, 255, 255, 0.024);
	--l-line: rgba(255, 255, 255, 0.08);
	--l-line-strong: rgba(255, 255, 255, 0.16);
	--l-fg: #EDEDEF;
	--l-fg-2: #A1A1AA;
	--l-fg-3: #6E7076;
	--l-teal: #2DD4BF;
	--l-teal-dim: rgba(45, 212, 191, 0.14);
	--l-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
	--l-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	background: var(--l-bg);
}

body {
	background: var(--l-bg);
	color: var(--l-fg);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
	-webkit-font-smoothing: antialiased;
	letter-spacing: -0.011em;
}

/* ===== 画布：网格底 + teal 辉光 ===== */
.login-page {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
}

.grid-bg {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
	pointer-events: none;
}

.hero-glow {
	position: absolute;
	left: 50%;
	bottom: -30%;
	width: 900px;
	height: 600px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.13), transparent 62%);
	pointer-events: none;
}

/* ===== 双栏 ===== */
.login-split {
	position: relative;
	max-width: 1240px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 40px 48px;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 72px;
	align-items: center;
}

/* ===== 左：品牌叙事 ===== */
.brand-side {
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.brand-top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.brand-logo {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
}

.brand-name {
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--l-fg);
}

.brand-status {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: 8px;
	padding: 4px 10px;
	border: 1px solid var(--l-line);
	border-radius: 999px;
	font-family: var(--l-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	color: var(--l-fg-2);
}

.brand-status .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--l-teal);
	animation: l-breathe 2s var(--l-ease) infinite;
}

.brand-main {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	font-family: var(--l-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--l-teal);
	white-space: nowrap;
}

.eyebrow::before, .eyebrow::after {
	content: '';
	height: 1px;
	width: 22px;
	background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.5));
}

.eyebrow::after {
	background: linear-gradient(90deg, rgba(45, 212, 191, 0.5), transparent);
}

.brand-title {
	font-size: clamp(42px, 4.6vw, 62px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -0.04em;
	background: linear-gradient(180deg, #FFFFFF 20%, rgba(237, 237, 239, 0.62));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.brand-desc {
	font-size: 16px;
	line-height: 1.75;
	color: var(--l-fg-2);
	max-width: 460px;
}

.brand-desc strong {
	color: var(--l-fg);
	font-weight: 500;
}

/* 终端 mockup */
.term {
	max-width: 480px;
	background: var(--l-bg-soft);
	border: 1px solid var(--l-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.term-header {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--l-line);
}

.term-header .td {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.td.red {
	background: #F87171;
}

.td.yellow {
	background: #FBBF24;
}

.td.green {
	background: #4ADE80;
}

.term-title {
	margin-left: 8px;
	font-family: var(--l-mono);
	font-size: 11px;
	color: var(--l-fg-3);
}

.term-body {
	padding: 16px 18px 18px;
	font-family: var(--l-mono);
	font-size: 12.5px;
	line-height: 2;
}

.term-body p {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.prompt {
	color: var(--l-teal);
}

.cmd {
	color: var(--l-fg);
}

.out {
	color: var(--l-fg-3);
}

.ok {
	color: #4ADE80;
}

.caret {
	display: inline-block;
	width: 8px;
	height: 15px;
	margin-bottom: -2px;
	background: var(--l-teal);
	animation: l-caret 1.1s steps(1) infinite;
}

.brand-foot {
	font-family: var(--l-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--l-fg-3);
}

/* ===== 右：登录卡 ===== */
.form-side {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-card {
	background: #0b0c10;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008)), #0b0c10;
	border: 1px solid var(--l-line);
	border-radius: 18px;
	padding: 40px 36px 36px;
	backdrop-filter: blur(6px);
}

.form-card .form-head {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 28px;
}

.form-title {
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--l-fg);
}

.form-sub {
	font-size: 13px;
	line-height: 1.6;
	color: var(--l-fg-2);
}

/* 覆盖 common.css 泄漏进来的 .form-wrap 白底 */
.form-card .form-wrap {
	background: transparent;
	padding: 0;
	border-radius: 0;
}

/* 输入组 */
.input-wrap {
	position: relative;
	margin-bottom: 16px;
}

.input-wrap .icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	color: var(--l-fg-3);
	font-size: 15px;
	line-height: 1;
	transition: color 0.25s var(--l-ease);
}

.input-wrap .layui-input {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 42px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--l-line);
	border-radius: 8px;
	color: var(--l-fg);
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.25s var(--l-ease), background-color 0.25s var(--l-ease), box-shadow 0.25s var(--l-ease);
}

.input-wrap .layui-input::placeholder {
	color: var(--l-fg-3);
}

.input-wrap .layui-input:-webkit-autofill,
.input-wrap .layui-input:-webkit-autofill:hover,
.input-wrap .layui-input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #14151a inset;
	-webkit-text-fill-color: var(--l-fg);
	caret-color: var(--l-fg);
	border-color: rgba(45, 212, 191, 0.35);
	transition: background-color 9999s;
}

.input-wrap .layui-input:focus {
	border-color: rgba(45, 212, 191, 0.55);
	background: rgba(255, 255, 255, 0.055);
	box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
	outline: none;
}

.input-wrap:focus-within .icon {
	color: var(--l-teal);
}

/* 验证码 */
.input-wrap.has-captcha .layui-input {
	padding-right: 118px;
}

.input-wrap .captcha {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	height: 36px;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.9;
}

.input-wrap .captcha:hover {
	opacity: 1;
}

/* 登录按钮（官网签名：白底黑字） */
.login-btn {
	width: 100%;
	height: 46px;
	margin-top: 6px;
	border: 0;
	border-radius: 8px;
	background: var(--l-teal);
	color: #0A0A0D;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.14em;
	cursor: pointer;
	transition: transform 0.25s var(--l-ease), box-shadow 0.25s var(--l-ease), background-color 0.25s var(--l-ease);
}

.login-btn:hover {
	background: #3EE0CB;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(45, 212, 191, 0.3);
}

.login-btn:active {
	transform: translateY(0);
	box-shadow: none;
}

/* 手机管理端（port_data） */
.app-qr {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--l-line);
}

.app-qr .app-qr-label {
	font-family: var(--l-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--l-fg-3);
	margin-bottom: 12px;
}

.app-qr .type-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.app-qr .type-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.app-qr .item-img {
	width: 72px;
	height: 72px;
	padding: 5px;
	background: #fff;
	border-radius: 8px;
}

.app-qr .type-item span {
	font-size: 11px;
	color: var(--l-fg-3);
}

.form-foot {
	text-align: center;
	font-family: var(--l-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	color: var(--l-fg-3);
}

.form-foot a {
	color: var(--l-fg-2);
	text-decoration: none;
}

/* ===== 动效 ===== */
@keyframes l-breathe {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@keyframes l-caret {
	0%, 49% {
		opacity: 1;
	}
	50%, 100% {
		opacity: 0;
	}
}

.brand-side > *, .form-card {
	animation: l-rise 0.6s var(--l-ease) both;
}

.brand-main {
	animation-delay: 0.06s;
}

.term {
	animation-delay: 0.12s;
}

.brand-foot {
	animation-delay: 0.18s;
}

.form-side {
	animation-delay: 0.1s;
}

@keyframes l-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.brand-side > *, .form-card {
		animation: none;
	}

	.brand-status .dot, .caret {
		animation: none;
	}
}

/* ===== 响应式 ===== */
@media (max-width: 1000px) {
	.login-split {
		grid-template-columns: 1fr;
		gap: 40px;
		padding: 32px 24px;
		align-content: center;
	}

	.brand-side {
		gap: 24px;
	}

	.term, .brand-desc {
		display: none;
	}

	.form-card {
		max-width: 420px;
		margin: 0 auto;
		width: 100%;
	}

	.form-foot {
		display: none;
	}
}
