:root {
	--auth-bg: #11151d;
	--auth-bg-soft: #191f28;
	--auth-header: #050608;
	--auth-input: #505661;
	--auth-input-border: rgba(255, 255, 255, 0.08);
	--auth-text: #ffffff;
	--auth-muted: #c5c9d3;
	--auth-accent: #2ef06f;
	--auth-accent-text: #05070a;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background: var(--auth-bg);
	color: var(--auth-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
	letter-spacing: 0;
}

body {
	-webkit-font-smoothing: antialiased;
}

.auth-page {
	min-height: 100svh;
	background:
		linear-gradient(180deg, #11151d 0%, #181d25 100%);
}

.auth-shell {
	max-width: 430px;
	min-height: 100svh;
	margin: 0 auto;
	background: transparent;
}

.auth-header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	height: 60px;
	padding: 0 10px;
	background: var(--auth-header);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #ffffff;
	text-decoration: none;
}

.auth-back svg {
	width: 24px;
	height: 24px;
}

.auth-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 0;
	text-align: center;
	font-size: 20px;
	line-height: 24px;
	font-weight: 850;
	color: var(--auth-accent);
	white-space: nowrap;
}

.auth-title-logo {
	display: block;
	width: auto;
	height: 18px;
	flex: 0 0 auto;
}

.auth-main {
	padding: 18px 14px 30px;
}

.auth-brand {
	display: grid;
	gap: 0;
	padding: 10px 6px 28px;
	text-align: center;
}

.auth-brand-kicker {
	margin: 0;
	color: var(--auth-accent);
	font-size: 16px;
	line-height: 20px;
	font-weight: 800;
}

.auth-brand-wordmark {
	color: var(--auth-accent);
	font-size: clamp(34px, 9vw, 54px);
	line-height: 1;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.auth-brand-wordmark.is-logo-mark {
	font-size: clamp(52px, 14vw, 78px);
	line-height: .9;
	letter-spacing: 0;
	text-transform: none;
}

.auth-brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 54px;
}

.auth-brand-logo img {
	display: block;
	max-width: min(50vw, 170px);
	max-height: 54px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.auth-brand-logo-text {
	display: block;
	width: 170px;
	height: 54px;
	color: var(--auth-accent);
	text-shadow: 0 0 8px rgba(46, 240, 111, .32);
	font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", sans-serif;
	font-size: 28px;
	font-weight: 900;
	letter-spacing: 1px;
	line-height: 54px;
	text-align: center;
	white-space: nowrap;
}

.auth-brand-logo.is-app-icon {
	min-height: 82px;
}

.auth-brand-logo.is-app-icon img {
	width: 78px;
	height: 78px;
	max-width: none;
	max-height: none;
	object-fit: cover;
}

.auth-brand-register {
	padding-bottom: 14px;
}

.auth-brand-register .auth-brand-logo {
	min-height: 78px;
}

.auth-brand-register .auth-brand-logo img {
	max-width: min(64vw, 200px);
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.auth-brand-register .auth-brand-logo-text {
	width: 200px;
	height: 60px;
	font-size: 32px;
	line-height: 60px;
}

.auth-form {
	display: grid;
	gap: 12px;
}

.auth-field {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0 16px 0 52px;
	border-radius: 12px;
	background: var(--auth-input);
	box-shadow: inset 0 0 0 1px var(--auth-input-border);
}

.auth-field.is-code {
	padding-right: 126px;
}

.auth-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: var(--auth-accent);
}

.auth-icon svg {
	width: 22px;
	height: 22px;
}

.auth-input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: #ffffff;
	font-size: 16px;
	line-height: 22px;
	font-weight: 700;
}

.auth-input::placeholder {
	color: rgba(255, 255, 255, 0.74);
}

.auth-code {
	position: absolute;
	right: 7px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 114px;
	height: 40px;
	border-radius: 4px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: inset 0 0 0 1px rgba(17, 21, 29, 0.08);
}

.auth-code img,
.auth-code span,
.auth-code canvas {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.auth-label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 4px;
	color: #ffffff;
	font-size: 15px;
	line-height: 20px;
	font-weight: 800;
}

.auth-label-required {
	color: #ff4d4f;
	font-size: 16px;
	line-height: 1;
}

.auth-show {
	flex: 0 0 auto;
	margin-left: 12px;
	border: 0;
	background: transparent;
	color: var(--auth-accent);
	font-size: 15px;
	line-height: 20px;
	font-weight: 800;
	cursor: pointer;
}

.auth-submit,
.auth-submit-link {
	width: 100%;
	min-height: 54px;
	border: 0;
	border-radius: 12px;
	background: var(--auth-accent);
	color: #ffffff;
	font-size: 22px;
	line-height: 28px;
	font-weight: 850;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(46, 240, 111, 0.2);
}

.auth-submit-link {
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.auth-link-row {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 12px;
	margin-top: 2px;
}

.auth-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.88);
	font-size: 15px;
	line-height: 22px;
}

.auth-checkbox input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--auth-accent);
}

.auth-actions {
	display: grid;
	gap: 12px;
	margin-top: 4px;
}

body .layui-layer-msg,
body .layui-layer-dialog,
body .layui-layer-msg .layui-layer-content,
body .layui-layer-dialog .layui-layer-content,
body .layui-layer-msg .layui-layer-padding,
body .layui-layer-dialog .layui-layer-padding {
	color: #333333 !important;
}

body .layui-layer-hui,
body .layui-layer-hui .layui-layer-content,
body .layui-layer-hui .layui-layer-padding {
	color: #ffffff !important;
}

@media (max-width: 390px) {
	.auth-code {
		width: 108px;
		height: 38px;
	}

	.auth-field.is-code {
		padding-right: 120px;
	}

	.auth-submit,
	.auth-submit-link {
		font-size: 20px;
	}
}
