/* =========================================
   Login Modal Styles (No layui Dependency)
   ========================================= */

/* Overlay */
.login-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 19999;
}

/* Modal Container with Gradient Border */
.login-modal {
	position: relative;
	width: 558px;
	height: 744px;
	padding: 1px;
	background: linear-gradient(106.54deg, #f3b17d 38.55%, #fef0e7 83.83%);
	border-radius: 21px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
	box-sizing: border-box;
	/* Ensure padding doesn't affect dimensions if set explicitly */
}

/* Inner Container */
.login-modal-inner {
	position: relative;
	background: #1b140e;
	border-radius: 20px;
	padding: 40px;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	overflow: hidden;
	/* Clip light source to border radius */
}


/* Light Source Effect (Top Left) */
.login-modal-inner::after {
	content: '';
	position: absolute;
	width: 431.14px;
	height: 463.48px;
	top: -143.23px;
	left: -200px;
	/* Mirrored position for Top-Left */
	background: #f3b17d;
	opacity: 0.6;
	filter: blur(152.4px);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

/* Ensure content is above light source */
.login-header{
	margin-top:150px;
}
.login-header,
.login-body,
.login-modal-close {
	position: relative;
	z-index: 1;
}

/* Close Button */
.login-modal-close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 36px;
	height: 36px;
	background: #6A78BC;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	z-index: 10;
	transition: background 0.2s;
}

.login-modal-close:hover {
	background: #7a88cc;
}

/* Header */
.login-header h2 {
	text-align: center;
	font-size: 24px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 30px 0;
}

/* Body Layout */
.login-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

/* QR Code Section */
.login-qr {
	text-align: center;
}

.login-qr img {
	width: 180px;
	height: 180px;
	border-radius: 10px;
	margin-bottom: 10px;
	background-color: #0d264a;
	/* Fallback light background */
}

.login-qr p {
	color: #cbd5e1;
	font-size: 14px;
	margin: 0;
}

/* Form Wrapper */
.login-form-wrapper {
	width: 390px;
	/* Fixed width as requested */
	margin: 0 auto;
	/* Center alignment */
}

/* Login Label */
.login-label {
	display: block;
	font-size: 14px;
	color: #fff;
	margin-bottom: 10px;
	text-align: left;
}

/* Override layui input styles within login modal */
.login-modal-inner .layui-input {
	background: #1c253b !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
	height: 50px;
	line-height: 50px;
	padding: 0 15px;
	border-radius: 8px;
}

.login-modal-inner .layui-input::placeholder {
	color: #666;
}

.login-modal-inner .layui-input:focus {
	border-color: #007aff !important;
	background: #1f2937 !important;
}

/* Override layui button styles within login modal */
.login-modal-inner .layui-btn {
	background: #2F3759 !important;
	background-image: none !important;
	border: none !important;
	height: 50px;
	line-height: 50px;
	font-size: 16px;
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	color: #fff !important;
}

.login-modal-inner .layui-btn:hover {
	opacity: 0.9;
	background: #3d466b !important;
	/* Slightly lighter for hover effect */
	background-image: none !important;
}

/* Form item spacing */
.login-modal-inner .layui-form-item {
	margin-bottom: 20px;
}

.login-modal-inner .layui-input-inline {
	width: 100%;
}

/* Form extras (register link, remember checkbox) */
.login-modal-inner .user-form-etc {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	width: 390px;
	/* Ensure footer aligns with inputs */
	margin-left: auto;
	margin-right: auto;
}

.login-modal-inner .user-form-etc .txt {
	color: #cbd5e1;
	font-size: 14px;
}

.login-modal-inner .user-form-etc a {
	color: #0077ff;
	text-decoration: none;
}

.login-modal-inner .user-form-etc a:hover {
	text-decoration: underline;
}

/* Layui checkbox override within login modal */
.login-modal-inner .layui-form-checkbox[lay-skin="primary"] {
	color: #cbd5e1;
}

.login-modal-inner .layui-form-checkbox[lay-skin="primary"] i {
	border-color: rgba(255, 255, 255, 0.2);
}

.login-modal-inner .layui-form-checked[lay-skin="primary"] i {
	background-color: #0077ff;
	border-color: #0077ff;
}