/* 登录模态框样式 - 参照后台设计 */
.login-modal-content {
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	background: #e6e6e6;
}

/* 可移动窗口样式 */
.draggable-header {
	cursor: move;
}

.drag-handle {
	margin-right: 8px;
	color: #6c757d;
}

.close-btn {
	width: 24px;
	height: 24px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	font-size: 10px;
	margin-left: 10px;
}

.close-btn:hover {
	background-color: #dc3545;
	border-color: #dc3545;
	color: #fff;
}

.login-modal-header {
	background: #e6e6e6;
	border-bottom: none;
	padding: 10px 15px 5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.login-modal-header .modal-title {
	font-size: 18px;
	font-weight: 500;
	color: #333;
	margin: 0;
	flex: 1;
}

.login-modal-body {
	background: #e6e6e6;
	padding: 0px 15px 15px;
}

/* 登录表单样式 */
.login-form {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
	margin-bottom: 12px;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 10px;
	color: #999;
	font-size: 13px;
	z-index: 2;
}

.login-input {
	padding: 8px 10px 8px 35px;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
	font-size: 14px;
	height: auto;
	transition: border-color 0.3s;
}

.login-input:focus {
	border-color: #1E9FFF;
	box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
}

.sms-btn {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 4px;
}

/* 登录按钮 */
.login-btn {
	width: 100%;
	padding: 8px;
	font-size: 14px;
	font-weight: 500;
	background: #1E9FFF;
	border: none;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.login-btn:hover {
	background: #0d8aff;
}

/* 切换链接 */
.form-switch, .login-method-switch, .register-link {
	text-align: center;
	margin: 12px 0;
}

.switch-link {
	color: #1E9FFF;
	text-decoration: none;
	font-size: 14px;
	transition: color 0.3s;
}

/* 按钮样式的switch-link使用白色文字 */
.switch-link.btn-success {
	color: #fff !important;
}

.switch-link.btn-success:hover {
	color: #fff !important;
}

.switch-link:hover {
	color: #0d8aff;
	text-decoration: none;
}

.switch-link i {
	margin-right: 5px;
}

/* 统一的切换按钮样式 */
.switch-btn {
	display: block;
	text-align: center;
	background: #f5f5f5;
	padding: 8px 16px;
	border-radius: 4px;
	color: #333 !important;
	text-decoration: none;
	margin: 12px auto;
	min-width: 140px;
	max-width: 200px;
}

.switch-btn:hover {
	background: #e9e9e9;
	color: #333 !important;
	text-decoration: none;
}

.switch-btn i {
	margin-right: 6px;
	font-size: 12px;
}

/* 微信登录区域 */
.wechat-login-section {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qrcode-container {
	max-width: 300px;
	margin: 0 auto;
}

.qrcode-display {
	width: 140px;
	height: 140px;
	margin: 0 auto 10px;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qrcode-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	color: #999;
}

.loading-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.loading-content i {
	font-size: 24px;
	margin-bottom: 10px;
	display: block;
}

.loading-content p {
	margin: 0;
	font-size: 14px;
}

.qrcode-tips p {
	margin: 5px 0;
	color: #666;
	font-size: 14px;
}

.qrcode-tips i {
	margin-right: 5px;
	color: #07c160;
}

.qrcode-status {
	font-weight: 500;
	color: #333;
}

.qrcode-actions {
	margin-top: 10px;
}

.qrcode-actions .btn {
	font-size: 12px;
	padding: 6px 12px;
}

/* 响应式设计 */
@media (max-width: 576px) {
	.login-modal-body {
		padding: 8px 12px 12px;
	}
	
	.login-form {
		padding: 12px;
	}
	
	.wechat-login-section {
		padding: 12px;
	}
	
	.qrcode-display {
		width: 120px;
		height: 120px;
	}
	
	.register-modal-body {
		padding: 8px 12px 12px;
	}
	
	.register-form {
		padding: 12px;
	}
}

/* 注册模态框样式 */
.register-modal-content {
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	background: #e6e6e6;
}

.register-modal-header {
	background: #e6e6e6;
	border-bottom: none;
	padding: 10px 15px 5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.register-modal-header .modal-title {
	font-size: 18px;
	font-weight: 500;
	color: #333;
	margin: 0;
	flex: 1;
}

.register-modal-body {
	background: #e6e6e6;
	padding: 10px 15px 15px;
}

/* 注册表单样式 */
.register-form {
	background: #fff;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.register-form .input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.register-form .input-icon {
	position: absolute;
	left: 10px;
	color: #999;
	font-size: 13px;
	z-index: 2;
}

.register-input {
	padding: 8px 10px 8px 35px;
	border: 1px solid #e6e6e6;
	border-radius: 4px;
	font-size: 14px;
	height: auto;
	transition: border-color 0.3s;
}

.register-input:focus {
	border-color: #1E9FFF;
	box-shadow: 0 0 0 2px rgba(30, 159, 255, 0.2);
	outline: none;
}

.register-btn {
	width: 100%;
	padding: 8px;
	font-size: 14px;
	font-weight: 500;
	background: #28a745;
	border: none;
	border-radius: 4px;
	transition: background-color 0.3s;
}

.register-btn:hover {
	background: #218838;
}

.register-form .sms-btn {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 4px;
}

/* 模态框背景 */
.modal-backdrop {
	background-color: rgba(0, 0, 0, 0.5);
}

/* 关闭按钮 */
.btn-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: none;
	border: none;
	font-size: 20px;
	color: #000;
	cursor: pointer;
}

.btn-close:hover {
	color: #ffffff;
}

.form-switch {
	padding-left: 0 !important;
}
