*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
}

body.reg-page {
	min-height: 100vh;
	font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	color: #1f2933;
	background: #1c1917 url("../images/zm.jpg") center / cover no-repeat fixed;
}

.reg-mask {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	background: linear-gradient(180deg, rgba(28, 25, 23, 0.28) 0%, rgba(28, 25, 23, 0.55) 100%);
}

.reg-card {
	width: 100%;
	max-width: 460px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	padding: 36px 36px 28px;
}

.reg-brand {
	display: flex;
	align-items: baseline;
	gap: 8px;
	text-decoration: none;
	color: #111827;
	margin-bottom: 8px;
}

.reg-brand strong {
	font-size: 22px;
	letter-spacing: 0.08em;
}

.reg-brand span {
	font-size: 13px;
	color: #9ca3af;
}

.reg-card h1 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
}

.reg-lead {
	margin: 0 0 20px;
	color: #6b7280;
	font-size: 14px;
}

.reg-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 20px;
}

.reg-tab {
	height: 40px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #f9fafb;
	color: #6b7280;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.reg-tab.is-on {
	border-color: #cc0033;
	background: #fff;
	color: #cc0033;
	box-shadow: 0 0 0 3px rgba(204, 0, 51, 0.12);
}

.reg-code-row {
	display: grid;
	grid-template-columns: 1fr 110px;
	gap: 8px;
	align-items: stretch;
}

.reg-code-row input {
	width: 100%;
}

.reg-send {
	height: 44px;
	border: 0;
	border-radius: 10px;
	background: #14532d;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	padding: 0 8px;
}

.reg-send:hover {
	background: #166534;
}

.reg-send:disabled {
	opacity: 0.7;
	cursor: wait;
}

.reg-alert {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: 13px;
}

.reg-alert.is-ok {
	background: #ecfdf3;
	color: #166534;
}

.reg-field {
	margin-bottom: 16px;
}

.reg-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.reg-field input[type="text"],
.reg-field input[type="password"],
.reg-field input[type="email"],
.reg-field input[type="tel"] {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	background: #fff;
	color: #111827;
	font-size: 15px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reg-optional {
	margin-left: 6px;
	font-weight: 400;
	color: #9ca3af;
	font-size: 12px;
}

.reg-pass {
	position: relative;
}

.reg-pass input[type="text"],
.reg-pass input[type="password"] {
	width: 100%;
}

.reg-pass input {
	padding-right: 58px;
}

.reg-eye {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	height: 28px;
	padding: 0 8px;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 12px;
	cursor: pointer;
}

.reg-eye:hover {
	color: #cc0033;
}

.reg-field input:focus {
	border-color: #cc0033;
	box-shadow: 0 0 0 3px rgba(204, 0, 51, 0.12);
}

.reg-field.is-error input {
	border-color: #ef4444;
}

.reg-msg {
	min-height: 18px;
	margin-top: 4px;
}

.reg-msg label.error {
	display: block;
	color: #dc2626;
	font-size: 12px;
	line-height: 18px;
}

.reg-msg label.valid {
	display: none;
}

.reg-agree {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 8px 0 18px;
	font-size: 13px;
	color: #4b5563;
	line-height: 1.5;
}

.reg-agree input {
	margin-top: 3px;
}

.reg-agree label {
	display: inline;
	font-weight: 400;
	margin: 0;
	cursor: pointer;
}

.reg-agree a {
	color: #cc0033;
	text-decoration: none;
}

.reg-agree a:hover {
	text-decoration: underline;
}

.reg-submit {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 10px;
	background: #cc0033;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.reg-submit:hover {
	background: #b8002e;
}

.reg-submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.reg-extra {
	margin-top: 16px;
	text-align: center;
	font-size: 14px;
	color: #6b7280;
}

.reg-extra a {
	color: #cc0033;
	text-decoration: none;
	font-weight: 600;
}

.reg-dialog {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 50;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(17, 24, 39, 0.55);
}

.reg-dialog.is-open {
	display: flex;
}

.reg-dialog-panel {
	width: 100%;
	max-width: 560px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.reg-dialog-panel h2 {
	margin: 0;
	padding: 16px 20px;
	font-size: 16px;
	border-bottom: 1px solid #eee;
}

.reg-dialog-body {
	padding: 16px 20px;
	overflow: auto;
	font-size: 13px;
	line-height: 1.7;
	color: #4b5563;
}

.reg-dialog-body p {
	margin: 0 0 12px;
}

.reg-dialog-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 20px 16px;
	border-top: 1px solid #eee;
}

.reg-dialog-actions button {
	height: 36px;
	padding: 0 14px;
	border-radius: 8px;
	border: 1px solid #d1d5db;
	background: #fff;
	cursor: pointer;
}

.reg-dialog-actions .ok {
	border: 0;
	background: #cc0033;
	color: #fff;
}

@media (max-width: 520px) {
	.reg-card {
		padding: 28px 20px 22px;
	}
}
