* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	background: #f4f4f4;
	font-family: '寰蒋闆呴粦', 'PingFang SC', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.top-bar {
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, #e77070 0%, #e53333 100%);
	position: fixed;
	top: 0;
	left: 0;
}

.card {
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 32px rgba(229, 51, 51, 0.08), 0 2px 8px
		rgba(0, 0, 0, 0.06);
	padding: 40px 36px 36px;
	position: relative;
}

.logo-area {
	text-align: center;
	margin-bottom: 32px;
}

.logo-icon {
	width: 56px;
	height: 56px;
	background: linear-gradient(135deg, #e77070 0%, #e53333 100%);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.logo-icon svg {
	width: 28px;
	height: 28px;
	fill: #fff;
}

.card-title {
	font-size: 22px;
	font-weight: 600;
	color: #1a1818;
	letter-spacing: 2px;
}

.card-subtitle {
	font-size: 13px;
	color: #999;
	margin-top: 4px;
}

.form-group {
	margin-bottom: 20px;
}

.form-label {
	display: block;
	font-size: 13px;
	color: #555;
	margin-bottom: 8px;
	font-weight: 500;
}

.input-wrap {
	position: relative;
}

.input-wrap .icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #ccc;
	pointer-events: none;
	display: flex;
	align-items: center;
}

.form-input {
	width: 100%;
	height: 48px;
	border: 1.5px solid #e8e8e8;
	border-radius: 10px;
	padding: 0 14px 0 42px;
	font-size: 14px;
	color: #1a1818;
	background: #fafafa;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

.form-input::placeholder {
	color: #bbb;
}

.form-input:focus {
	border-color: #e53333;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(229, 51, 51, 0.08);
}

.eye-btn {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #bbb;
	padding: 0;
	display: flex;
	align-items: center;
	transition: color 0.2s;
}

.eye-btn:hover {
	color: #e53333;
}

.tip-msg {
	font-size: 12px;
	color: #e53333;
	min-height: 18px;
	margin-bottom: 8px;
	padding-left: 2px;
}

.remember-me {
	margin-bottom: 16px;
}

.checkbox-label {
	display: flex;
	align-items: center;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	user-select: none;
}

.checkbox-label input[type="checkbox"] {
	display: none;
}

.checkmark {
	width: 18px;
	height: 18px;
	border: 2px solid #ddd;
	border-radius: 4px;
	margin-right: 8px;
	position: relative;
	background: #fafafa;
	transition: all 0.2s;
}

.checkbox-label:hover .checkmark {
	border-color: #e53333;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
	background: linear-gradient(135deg, #e77070 0%, #e53333 100%);
	border-color: #e53333;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.forgot-link {
	text-align: right;
	margin-top: -12px;
	margin-bottom: 24px;
}

.forgot-link a {
	font-size: 13px;
	color: #e53333;
	text-decoration: none;
	transition: opacity 0.2s;
}

.forgot-link a:hover {
	opacity: 0.75;
}

.btn-login {
	display: block;
	width: 100%;
	height: 50px;
	background: linear-gradient(90deg, #e77070 0%, #e53333 100%);
	color: #fff;
	border: none;
	border-radius: 25px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 3px;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
	box-shadow: 0 4px 16px rgba(229, 51, 51, 0.3);
}

.btn-login:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.btn-login:active {
	transform: translateY(0);
	opacity: 1;
}

.btn-register {
	display: block;
	width: 100%;
	height: 50px;
	background: linear-gradient(90deg, #d2c6c6 0%, #f7f5f5 100%);
	color: #1a1818;
	border: none;
	border-radius: 25px;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 3px;
	cursor: pointer;
	margin-top: 14px;
	transition: opacity 0.2s, transform 0.15s;
	text-decoration: none;
	line-height: 50px;
	text-align: center;
}

.btn-register:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

.spare-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	justify-content: center;
	font-size: 13px;
	color: #aaa;
}

.switch {
	position: relative;
	width: 36px;
	height: 20px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	inset: 0;
	background: #ddd;
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.2s;
}

.slider::before {
	content: '';
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	top: 3px;
	left: 3px;
	transition: transform 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.switch input:checked+.slider {
	background: linear-gradient(90deg, #e77070, #e53333);
}

.switch input:checked+.slider::before {
	transform: translateX(16px);
}

.back-btn {
	position: absolute;
	top: 20px;
	left: 20px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: #aaa;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.back-btn:hover {
	background: #f4f4f4;
	color: #e53333;
}

.btn-submit {
	display: block;
	width: 100%;
	height: 50px;
	background: linear-gradient(90deg, #e77070 0%, #e53333 100%);
	color: #fff;
	border: none;
	border-radius: 25px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 4px;
	cursor: pointer;
	margin-top: 8px;
	transition: opacity 0.2s, transform 0.15s;
	box-shadow: 0 4px 16px rgba(229, 51, 51, 0.3);
}

.btn-submit:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.btn-submit:active {
	transform: translateY(0);
}

.login-link {
	text-align: center;
	margin-top: 20px;
	font-size: 13px;
	color: #999;
}

.login-link a {
	color: #e53333;
	text-decoration: none;
	font-weight: 500;
}

.login-link a:hover {
	text-decoration: underline;
}

.toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	background: rgba(229, 51, 51, 0.92);
	color: #fff;
	padding: 10px 22px;
	border-radius: 24px;
	font-size: 14px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s, transform 0.3s;
	z-index: 999;
	white-space: nowrap;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media ( max-width : 480px) {
	.card {
		margin: 20px 16px;
		padding: 32px 24px 28px;
	}
}

/* 客服悬浮按钮容器 */
.customer-service {
	position: fixed; /* 固定定位，随滚动不移动 */
	right: 10px; /* 距离右侧20px */
	bottom: 70%; /* 距离底部20px */
	z-index: 9999; /* 置顶显示，避免被其他元素遮挡 */
}

/* 客服按钮样式 */
.service-btn {
	display: block; width : 50px;
	height: 50px;
	border-radius: 50%; /* 圆形按钮 */
	background-color: #0088ff; /* 主色调（蓝色） */
	color: #fff;
	text-align: center;
	line-height: 50px;
	font-size: 12px;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 136, 255, 0.3); /* 阴影提升质感 */
	transition: all 0.3s ease; /* 过渡动效 */
	border: none;
	outline: none;
	width: 50px;
}

/* hover动效（放大+加深颜色） */
.service-btn:hover {
	background-color: #0066cc;
	transform: scale(1.1); /* 放大10% */
	box-shadow: 0 4px 15px rgba(0, 136, 255, 0.5);
}