/* 登录页冷峻工业风 - 背景贯穿整个页面 */

/* 登录页面时，body 使用工业风背景（深灰到黑） */
body.login-page-body {
	background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 30%, #0f0f0f 70%, #050505 100%);
	position: relative;
}

/* 工业风背景网格 - 极淡的白色网格，更细腻 */
body.login-page-body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 40px 40px;
	animation: gridMove 30s linear infinite;
	pointer-events: none;
	z-index: 0;
}

/* 细腻的彩色光晕点缀（极淡，几乎察觉不到） */
body.login-page-body::after {
	content: '';
	position: fixed;
	top: 20%;
	right: 10%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(184, 115, 51, 0.03) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
	animation: colorShift 15s ease-in-out infinite alternate;
}

@keyframes colorShift {
	0% {
		background: radial-gradient(circle, rgba(184, 115, 51, 0.03) 0%, transparent 70%);
		transform: translate(0, 0);
	}
	33% {
		background: radial-gradient(circle, rgba(192, 192, 192, 0.025) 0%, transparent 70%);
		transform: translate(-20px, 20px);
	}
	66% {
		background: radial-gradient(circle, rgba(74, 144, 226, 0.02) 0%, transparent 70%);
		transform: translate(20px, -20px);
	}
	100% {
		background: radial-gradient(circle, rgba(255, 140, 66, 0.025) 0%, transparent 70%);
		transform: translate(0, 0);
	}
}

.login-page {
	position: relative;
	overflow: visible; /* 允许背景透出 */
	min-height: auto !important; /* 覆盖 h100p 的 min-height */
	padding-top: 20px;
	padding-bottom: 20px;
	z-index: 1; /* 内容在背景之上 */
	background: transparent; /* 不遮挡 body 背景 */
}

@keyframes gridMove {
	0% { transform: translate(0, 0); }
	100% { transform: translate(50px, 50px); }
}

/* WELCOME ASCII 命令行风格 - 打字机效果（由 JS 控制） */
.welcome-title {
	font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace;
	font-size: 3.5rem;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	position: relative;
	margin-top: 20px;
	margin-bottom: 2rem;
	color: #ffffff;
	text-shadow: none;
	overflow: visible;
	white-space: nowrap;
	border-right: 2px solid #ffffff;
	/* 光标由 JavaScript 控制，不使用 CSS 动画 */
}

@keyframes hideCursor {
	to {
		border-right-color: transparent;
	}
}

@keyframes blinkCursorSmall {
	from, to { border-right-color: rgba(255, 255, 255, 0.3); }
	50% { border-right-color: transparent; }
}

/* Header 下方欢迎信息条 - 命令行风格（仅在登录页） */
body.login-page-body .welcome-bar {
	text-align: center !important;
	position: relative;
}

body.login-page-body .welcome-bar .welcome-text {
	font-family: 'JetBrains Mono', 'Menlo', 'Consolas', monospace !important;
	font-size: 0.9rem !important;
	color: rgba(255, 255, 255, 0.7) !important;
	letter-spacing: 0.05em;
	display: inline-block;
	position: relative;
	overflow: hidden;
	white-space: nowrap;
	border-right: 1px solid rgba(255, 255, 255, 0.3);
}

body.login-page-body .welcome-bar .welcome-text::before {
	content: '$ ';
	color: rgba(255, 255, 255, 0.5);
	margin-right: 0.5em;
}

/* 打字机效果由 JS 控制，不需要 CSS 动画 */

@keyframes typingWelcome {
	from { width: 0; }
	to { width: 100%; }
}

@keyframes typing {
	from { 
		width: 0;
		border-right-color: #ffffff;
	}
	to { 
		width: 100%;
		border-right-color: #ffffff;
	}
}

@keyframes blinkCursor {
	from, to { border-right-color: transparent; }
	50% { border-right-color: #ffffff; }
}


/* 工业风输入框 - 深灰背景，白色边框，聚焦时极淡金属色光晕 */
.login-form .form-control,
.login-page .form-control {
	background: rgba(30, 30, 30, 0.8) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	padding: 12px 15px !important;
	transition: all 0.3s ease;
	border-radius: 2px;
	width: 100%;
}

.login-form .form-control:focus,
.login-page .form-control:focus {
	background: rgba(40, 40, 40, 0.9) !important;
	border-color: rgba(255, 255, 255, 0.5) !important;
	box-shadow: 
		0 0 8px rgba(184, 115, 51, 0.15), /* 极淡铜色光晕 */
		0 0 4px rgba(255, 255, 255, 0.1),
		inset 0 0 8px rgba(255, 255, 255, 0.05) !important;
	outline: none;
	color: #fff !important;
}

.login-form .form-control::placeholder,
.login-page .form-control::placeholder {
	color: rgba(255, 255, 255, 0.4) !important;
}

/* 工业风按钮 - 深灰到黑渐变，白色边框，悬停时极淡金属色光效 */
.login-form .btn-primary,
.login-page .btn-primary {
	background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.95)) !important;
	border: 1px solid rgba(255, 255, 255, 0.3) !important;
	color: #ffffff !important;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 12px 30px !important;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	width: 100%;
}

.login-form .btn-primary::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(184, 115, 51, 0.1), transparent);
	transition: left 0.5s;
}

.login-form .btn-primary:hover,
.login-page .btn-primary:hover {
	background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(30, 30, 30, 1)) !important;
	border-color: rgba(255, 255, 255, 0.5) !important;
	box-shadow: 
		0 0 12px rgba(184, 115, 51, 0.2), /* 极淡铜色光效 */
		0 0 6px rgba(255, 255, 255, 0.15),
		inset 0 0 12px rgba(255, 255, 255, 0.05) !important;
	transform: translateY(-1px);
	color: #ffffff !important;
}

.login-form .btn-primary:hover::before {
	left: 100%;
}

/* 链接样式 - 白色，悬停时极淡彩色光晕 */
.login-form a,
.login-page a {
	color: rgba(255, 255, 255, 0.7) !important;
	transition: all 0.3s ease;
	text-decoration: none;
}

.login-form a:hover,
.login-page a:hover {
	color: #ffffff !important;
	text-shadow: 
		0 0 8px rgba(74, 144, 226, 0.3), /* 极淡蓝色光晕 */
		0 0 4px rgba(255, 255, 255, 0.2);
}

/* 记住我 - 移动端友好的复选框 */
.remember-me-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 8px 0;
	margin: 0;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
}

.remember-me-checkbox {
	/* 隐藏原生复选框 */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 18px;
	height: 18px;
	min-width: 18px;
	min-height: 18px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 2px;
	background: rgba(30, 30, 30, 0.8);
	cursor: pointer;
	position: relative;
	margin: 0;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.remember-me-checkbox:checked {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.7);
}

.remember-me-checkbox:checked::after {
	content: '✓';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	line-height: 1;
}

.remember-me-text {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	margin-left: 8px;
	transition: color 0.3s ease;
}

.remember-me-label:hover .remember-me-text {
	color: rgba(255, 255, 255, 1);
}

.remember-me-label:hover .remember-me-checkbox {
	border-color: rgba(255, 255, 255, 0.6);
}

.login-form label,
.login-page label {
	transition: color 0.3s ease;
	color: rgba(255, 255, 255, 0.8) !important;
}

.login-form label:hover,
.login-page label:hover {
	color: rgba(255, 255, 255, 1) !important;
}

/* 确保表单容器可见 - 工业风半透明深灰 */
.login-form,
.login-page .w300 {
	position: relative;
	z-index: 10;
	background: rgba(20, 20, 20, 0.6);
	padding: 20px;
	border-radius: 2px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 登录页内容区域 - 覆盖 .center 的绝对定位 */
.login-page .center {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	z-index: 10;
	margin-top: 0;
	padding-top: 0;
	padding-bottom: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: auto !important;
}

/* 响应式 */
@media (max-width: 768px) {
	.welcome-title {
		font-size: 3rem;
		letter-spacing: 0.1em;
	}
}
