/*!
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author ThinkGem
 * @version 2019-2-16
 */

/* ========== 紫色主题 - 分屏布局 ========== */
.login-page {
	background: #fff;
	min-height: 100vh;
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

/* 容器布局 */
.login-container {
	display: flex;
	width: 100%;
	min-height: 100vh;
}

/* ========== 左侧登录面板 ========== */
.login-left-panel {
	flex: 0 0 50%;
	max-width: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 60px;
	position: relative;
	overflow-y: auto;
}

.login-left-inner {
	width: 100%;
	max-width: 420px;
}

/* 品牌标识 */
.login-brand {
	display: flex;
	align-items: center;
	margin-bottom: 50px;
}

.login-brand .brand-icon {
	width: 42px;
	height: 42px;
	background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin-right: 14px;
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.login-brand .brand-icon svg {
	width: 24px;
	height: 24px;
}

.login-brand .brand-name {
	font-size: 18px;
	font-weight: 700;
	color: #1F2937;
	letter-spacing: 0.5px;
}

/* 表单区域 */
.login-form-wrapper {
	width: 100%;
}

.login-title {
	font-size: 36px;
	font-weight: 700;
	color: #1F2937;
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.login-subtitle {
	font-size: 15px;
	color: #6B7280;
	margin: 0 0 36px 0;
	line-height: 1.6;
}

.login-box-msg {
	text-align: center;
	padding: 0 0 10px 0;
	margin: 0 0 22px 0;
	font-size: 15px;
	color: #8B5CF6;
	font-weight: 500;
	border-bottom: 1px dashed #E9D5FF;
	padding-bottom: 18px;
}

/* 表单字段 */
.login-page .form-group {
	margin-top: 0;
	margin-bottom: 20px;
	position: relative;
}

.field-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #374151;
	margin-bottom: 8px;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	color: #9CA3AF;
	pointer-events: none;
	z-index: 2;
}

.input-icon-right {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	color: #9CA3AF;
	cursor: pointer;
	z-index: 2;
	transition: color 0.2s ease;
}

.input-icon-right:hover {
	color: #8B5CF6;
}

.login-page .has-feedback .form-control {
	height: 48px;
	padding: 10px 16px 10px 46px;
	border: 1.5px solid #E5E7EB;
	border-radius: 12px;
	font-size: 14px;
	transition: all 0.25s ease;
	background: #F9FAFB;
	box-sizing: border-box;
	width: 100%;
}

.login-page .has-feedback .form-control:hover {
	border-color: #C4B5FD;
	background: #fff;
}

.login-page .has-feedback .form-control:focus {
	border-color: #8B5CF6;
	box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
	background: #fff;
	outline: none;
}

.login-page .has-feedback .form-control:focus ~ .input-icon,
.login-page .has-feedback:focus-within .input-icon {
	color: #8B5CF6;
}

/* 输入框右侧图标时调整padding */
.input-wrapper .form-control.has-right-icon {
	padding-right: 46px;
}

/* 表单选项 */
.form-options {
	margin-top: 8px;
	margin-bottom: 24px;
}

.login-page .icheck {
	min-height: 22px;
	display: flex;
	gap: 20px;
}

.login-page .icheck label {
	color: #6B7280;
	font-size: 13px;
	cursor: pointer;
	padding-left: 4px;
	user-select: none;
	transition: color 0.2s ease;
}

.login-page .icheck label:hover {
	color: #8B5CF6;
}

.login-page .icheck input[type="checkbox"] {
	accent-color: #8B5CF6;
	cursor: pointer;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 6px;
}

/* 登录按钮 */
.login-page .btn {
	padding: 12px 16px;
	font-size: 16px;
	letter-spacing: 2px;
	border-radius: 12px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.login-page .btn-primary.login-btn {
	background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
	border: none !important;
	color: #fff;
	box-shadow:
		0 4px 16px rgba(139, 92, 246, 0.35),
		0 2px 4px rgba(139, 92, 246, 0.2);
	position: relative;
	overflow: hidden;
	height: 50px;
	line-height: 1.4;
}

.login-page .btn-primary.login-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.login-page .btn-primary.login-btn:hover {
	background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%) !important;
	box-shadow:
		0 6px 24px rgba(139, 92, 246, 0.45),
		0 3px 8px rgba(139, 92, 246, 0.25);
	transform: translateY(-2px);
}

.login-page .btn-primary.login-btn:hover::before {
	left: 100%;
}

.login-page .btn-primary.login-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 12px rgba(139, 92, 246, 0.35);
}

/* 验证码输入 */
.login-page .input-group .form-control {
	height: 48px;
	padding: 10px 16px;
	border: 1.5px solid #E5E7EB;
	border-radius: 12px 0 0 12px;
	font-size: 14px;
	background: #F9FAFB;
	transition: all 0.25s ease;
}

.login-page .input-group .form-control:focus {
	border-color: #8B5CF6;
	box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
	background: #fff;
	z-index: 2;
	outline: none;
}

.login-page .input-group-btn .btn {
	height: 48px;
	background: #F3E8FF;
	border: 1.5px solid #C4B5FD;
	border-left: none;
	color: #7C3AED;
	font-weight: 500;
	border-radius: 0 12px 12px 0;
	transition: all 0.25s ease;
	padding: 0 16px;
}

.login-page .input-group-btn .btn:hover {
	background: #8B5CF6;
	color: #fff;
	border-color: #8B5CF6;
}

/* Select2 租户选择 */
.login-page .select2-container .select2-selection--single {
	padding: 10px 16px;
	height: 48px;
	border: 1.5px solid #E5E7EB;
	border-radius: 12px;
	background: #F9FAFB;
	transition: all 0.25s ease;
}

.login-page .select2-container .select2-selection--single:hover {
	border-color: #C4B5FD;
	background: #fff;
}

.login-page .select2-container--default.select2-container--focus .select2-selection--single {
	border-color: #8B5CF6;
	box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
	background: #fff;
}

.login-page .select2-container .select2-selection--single .select2-selection__rendered {
	margin-top: 4px;
	line-height: 34px;
	color: #374151;
}

.login-page .select2-container .select2-selection--single .select2-selection__arrow {
	top: 12px;
	right: 12px;
}

.login-page .select2-container .select2-selection--single .select2-selection__arrow b {
	border-color: #9CA3AF transparent transparent transparent;
}

.login-page .select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-color: transparent transparent #8B5CF6 transparent;
}

.login-page .select2-search--dropdown .select2-search__field {
	padding: 8px;
	border-radius: 8px;
	border: 1px solid #E5E7EB;
}

.login-page .select2-search--dropdown .select2-search__field:focus {
	border-color: #8B5CF6;
	outline: none;
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.login-page .select2-results__option {
	padding: 8px 12px;
	transition: background 0.15s ease;
}

.login-page .select2-results__option--highlighted[aria-selected] {
	background: #F3E8FF;
	color: #5B21B6;
}

.login-page .select2-results__option[aria-selected=true] {
	background: #8B5CF6;
	color: #fff;
}

/* ========== 右侧装饰面板 ========== */
.login-right-panel {
	flex: 0 0 50%;
	max-width: 50%;
	position: relative;
	background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 25%, #D8B4FE 55%, #C084FC 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.right-gradient-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background:
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
		radial-gradient(circle at 50% 50%, rgba(196, 181, 253, 0.3) 0%, transparent 60%);
	pointer-events: none;
}

.decoration-content {
	position: relative;
	z-index: 5;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 浮动卡片 */
.floating-card {
	position: absolute;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 16px;
	padding: 16px 18px;
	box-shadow:
		0 8px 32px rgba(139, 92, 246, 0.15),
		0 4px 8px rgba(139, 92, 246, 0.08);
	backdrop-filter: blur(10px);
}

.floating-card .card-header {
	margin-bottom: 10px;
}

.floating-card .card-title {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.floating-card .card-body {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 卡片1 - 折线图 */
.card-1 {
	top: 15%;
	right: 15%;
	width: 180px;
	animation: floatCard1 6s ease-in-out infinite;
}

.card-1 .chart-placeholder svg {
	width: 100%;
	height: 50px;
}

@keyframes floatCard1 {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

/* 卡片2 - 环形图 */
.card-2 {
	top: 35%;
	right: 35%;
	width: 140px;
	animation: floatCard2 7s ease-in-out infinite;
	animation-delay: 1s;
}

.card-2 .donut-chart svg {
	width: 80px;
	height: 80px;
}

@keyframes floatCard2 {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* 卡片3 - 收入 */
.card-3 {
	bottom: 25%;
	right: 20%;
	width: 200px;
	animation: floatCard3 5s ease-in-out infinite;
	animation-delay: 2s;
}

.card-3 .revenue-label {
	font-size: 12px;
	color: #6B7280;
	margin-bottom: 4px;
}

.card-3 .revenue-value {
	font-size: 24px;
	font-weight: 700;
	color: #1F2937;
	margin-bottom: 8px;
}

.card-3 .revenue-badge .badge-up {
	display: inline-block;
	padding: 4px 10px;
	background: linear-gradient(135deg, #86EFAC 0%, #4ADE80 100%);
	color: #065F46;
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
}

@keyframes floatCard3 {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

/* 装饰性光晕 */
.login-right-panel::before {
	content: '';
	position: absolute;
	top: 10%;
	left: 10%;
	width: 200px;
	height: 200px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.login-right-panel::after {
	content: '';
	position: absolute;
	bottom: 15%;
	left: 20%;
	width: 150px;
	height: 150px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

/* 右侧标语 */
.right-slogan {
	position: absolute;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
	text-align: center;
	color: #fff;
	z-index: 6;
	width: 80%;
}

.right-slogan h2 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 12px 0;
	text-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.right-slogan p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0;
	text-shadow: 0 1px 4px rgba(139, 92, 246, 0.2);
}

/* 版权信息 */
.login-copyright {
	text-align: center;
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.login-copyright,
.login-copyright a {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
}

.login-copyright a:hover {
	color: #fff;
	text-decoration: underline;
}

/* ========== Tab 切换 ========== */
.login-page .nav-tabs {
	margin-bottom: 24px;
	border-bottom: 1px solid #E9D5FF;
}

.login-page .nav-tabs > li > a {
	color: #9CA3AF;
	font-weight: 500;
	border: none !important;
	padding: 10px 16px;
	margin-right: 4px;
	border-radius: 8px 8px 0 0;
	transition: all 0.25s ease;
}

.login-page .nav-tabs > li > a:hover {
	background: #F3E8FF;
	color: #7C3AED;
}

.login-page .nav-tabs > li.active > a,
.login-page .nav-tabs > li.active > a:focus,
.login-page .nav-tabs > li.active > a:hover {
	color: #7C3AED;
	background: transparent;
	border: none !important;
	border-bottom: 2px solid #8B5CF6 !important;
}

.login-page .tab-pane {
	display: none;
}

.login-page .tab-pane.active {
	display: block;
}

/* ========== 响应式设计 ========== */
@media (max-width: 992px) {
	.login-left-panel {
		flex: 0 0 55%;
		max-width: 55%;
		padding: 40px;
	}

	.login-right-panel {
		flex: 0 0 45%;
		max-width: 45%;
	}

	.right-slogan h2 {
		font-size: 26px;
	}

	.right-slogan p {
		font-size: 14px;
	}
}

@media (max-width: 768px) {
	.login-container {
		flex-direction: column;
	}

	.login-left-panel {
		flex: 0 0 100%;
		max-width: 100%;
		order: 2;
		padding: 40px 24px;
	}

	.login-right-panel {
		flex: 0 0 100%;
		max-width: 100%;
		min-height: 300px;
		order: 1;
		padding: 40px 24px;
	}

	.floating-card {
		display: none;
	}

	.right-slogan {
		bottom: auto;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.login-title {
		font-size: 28px;
	}
}

@media (max-width: 480px) {
	.login-left-inner {
		max-width: 100%;
	}

	.login-brand {
		margin-bottom: 30px;
	}

	.login-title {
		font-size: 24px;
	}

	.login-subtitle {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.login-page .btn {
		font-size: 15px;
		letter-spacing: 1px;
	}
}

/* ========== 深色模式适配 ========== */
.skin-dark .login-page {
	background: #1a1a2e;
}

.skin-dark .login-left-panel {
	background: #1a1a2e;
}

.skin-dark .login-brand .brand-name {
	color: #E9D5FF;
}

.skin-dark .login-title {
	color: #F3E8FF;
}

.skin-dark .login-subtitle {
	color: #9CA3AF;
}

.skin-dark .field-label {
	color: #D1D5DB;
}

.skin-dark .login-page .has-feedback .form-control {
	background: #2d2d44;
	border-color: #3d3d5c;
	color: #E9D5FF;
}

.skin-dark .login-page .has-feedback .form-control:hover {
	border-color: #6D28D9;
	background: #333355;
}

.skin-dark .login-page .has-feedback .form-control:focus {
	border-color: #8B5CF6;
	background: #333355;
	box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

.skin-dark .login-page .icheck label {
	color: #9CA3AF;
}

.skin-dark .login-page .icheck label:hover {
	color: #C4B5FD;
}

.skin-dark .login-right-panel {
	background: linear-gradient(135deg, #3b0764 0%, #581C87 25%, #6B21A8 55%, #7C3AED 100%);
}

.skin-dark .floating-card {
	background: rgba(30, 30, 50, 0.95);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skin-dark .floating-card .card-title {
	color: #E9D5FF;
}

.skin-dark .card-3 .revenue-label {
	color: #9CA3AF;
}

.skin-dark .card-3 .revenue-value {
	color: #F3E8FF;
}

.skin-dark .login-page .btn-primary.login-btn {
	background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
}

.skin-dark a,
.skin-dark a:hover,
.skin-dark a:active,
.skin-dark a:focus,
.skin-dark .form-unit {
	color: #C4B5FD;
}

.skin-dark .login-page .nav-tabs {
	border-color: #3d3d5c;
}

.skin-dark .login-page .nav-tabs > li > a {
	color: #9CA3AF;
}

.skin-dark .login-page .nav-tabs > li.active > a,
.skin-dark .login-page .nav-tabs > li.active > a:focus,
.skin-dark .login-page .nav-tabs > li.active > a:hover {
	color: #C4B5FD;
	border-bottom-color: #8B5CF6 !important;
}

.skin-dark .login-box-msg {
	color: #C4B5FD;
	border-bottom-color: #3d3d5c;
}

.skin-dark .login-page .input-group .form-control {
	background: #2d2d44;
	border-color: #3d3d5c;
	color: #E9D5FF;
}

.skin-dark .login-page .input-group-btn .btn {
	background: #4C1D95;
	border-color: #6D28D9;
	color: #C4B5FD;
}

.skin-dark .login-page .input-group-btn .btn:hover {
	background: #8B5CF6;
	color: #fff;
}

.skin-dark .select2-container .select2-selection--single {
	background: #2d2d44;
	border-color: #3d3d5c;
	color: #E9D5FF;
}

.skin-dark .select2-container--default.select2-container--focus .select2-selection--single {
	background: #333355;
	border-color: #8B5CF6;
}

.skin-dark .select2-container .select2-selection--single .select2-selection__rendered {
	color: #E9D5FF;
}

.skin-dark .select2-results__option {
	color: #E9D5FF;
}

.skin-dark .select2-results__option--highlighted[aria-selected] {
	background: #4C1D95;
	color: #C4B5FD;
}

.skin-dark .select2-results__option[aria-selected=true] {
	background: #8B5CF6;
	color: #fff;
}

/* 皮肤切换按钮 */
.switchSkin,
.switchSkin:hover {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 26px;
	opacity: 0.8;
	color: #8B5CF6;
	z-index: 20;
	transition: all 0.3s ease;
}

.switchSkin:hover {
	opacity: 1;
	color: #7C3AED;
	transform: rotate(15deg);
}

/* ========== 验证错误样式 ========== */
.login-page .has-error .form-control {
	border-color: #EF4444 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1) !important;
}

.login-page .has-error .input-icon {
	color: #EF4444;
}