:root {
	--bg: #f6f7fb;
	--card: #fff;
	--primary: #ff6a3d;
	--primary-soft: #fff1ec;
	--text: #1f2937;
	--sub: #6b7280;
	--line: #eceff5;
	--shadow: 0 12px 30px rgba(31, 41, 55, .08);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
	background: linear-gradient(180deg, #fff8f5 0%, var(--bg) 220px);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 18px;
}

.panel {
	width: min(520px, 100%);
	background: #fff;
	border-radius: 24px;
	box-shadow: var(--shadow);
	border: 1px solid #f1f3f8;
	padding: 30px;
}

.title {
	font-size: 30px;
	font-weight: 700;
	margin-bottom: 10px;
}

.desc {
	color: var(--sub);
	font-size: 14px;
	line-height: 1.8;
	margin-bottom: 20px;
}

.register-tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 18px;
	padding: 4px;
	border-radius: 14px;
	background: #f8fafc;
	border: 1px solid var(--line);
}

.register-tab {
	height: 42px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--sub);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all .2s ease;
}

.register-tab.active {
	background: #fff;
	color: var(--primary);
	box-shadow: 0 4px 12px rgba(255, 106, 61, .12);
}

.register-form-wrap {
	min-height: 320px;
}

.register-panel {
	display: block;
}

.register-panel.is-hidden,
.register-panel[hidden] {
	display: none !important;
}

.field {
	margin-bottom: 14px;
}

.field:last-child {
	margin-bottom: 0;
}

.field label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
}

.field input {
	width: 100%;
	height: 46px;
	border-radius: 12px;
	border: 1px solid var(--line);
	padding: 0 14px;
	font-size: 14px;
}

.input-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
}

.input-row input {
	min-width: 0;
}

.send-code-btn {
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--primary);
	border-radius: 12px;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.send-code-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.btn {
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 14px;
	background: var(--primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 18px;
}

.links {
	display: flex;
	justify-content: space-between;
	margin-top: 16px;
	font-size: 13px;
	color: var(--sub);
}

a {
	text-decoration: none;
	color: inherit;
}

.note {
	margin-top: 16px;
	text-align: center;
	font-size: 13px;
	color: var(--sub);
}

@media (max-width: 720px) {
	.input-row {
		grid-template-columns: 1fr;
	}

	.send-code-btn {
		width: 100%;
	}
}
