/* /login/ 与 /register/ 假表单。
   外观 = 主题 token（配色/字体/圆角）+ 主题级版式配方（每个主题 6 个维度：
   报头 head / 卡片 card / 字段 field / 按钮 btn / 背景 bg / 装饰 orn）。
   77 个主题的配方两两不同；选择器都挂在 .nea-auth-page 下，避免被主题全局表单样式盖掉。 */

.nea-auth-page{
	--na-bg:#f3f4f5;
	--na-panel:#ffffff;
	--na-ink:#17191c;
	--na-muted:#66707a;
	--na-line:#dfe3e8;
	--na-accent:#0f766e;
	--na-accent-ink:#ffffff;
	--na-kicker:#0f766e;
	--na-input-bg:#ffffff;
	--na-radius:14px;
	--na-font-display:inherit;
	--na-shadow:0 18px 44px rgba(0,0,0,.10);
	display:flex;
	justify-content:center;
	align-items:flex-start;
	min-height:50vh;
	padding:48px 16px 72px;
	box-sizing:border-box;
	background:var(--na-bg);
	color:var(--na-ink);
}

.nea-auth-page .nea-auth-card{
	position:relative;
	width:100%;
	max-width:480px;
	background:var(--na-panel);
	color:var(--na-ink);
	border:1px solid var(--na-line);
	border-radius:var(--na-radius);
	padding:30px 28px 26px;
	box-shadow:var(--na-shadow);
	box-sizing:border-box;
	font-family:inherit;
	font-size:15px;
	line-height:1.55;
}

.nea-auth-page .nea-auth-head{margin:0 0 20px}
.nea-auth-page .nea-auth-kicker{
	display:inline-block;
	font-size:11px;
	letter-spacing:.14em;
	text-transform:uppercase;
	color:var(--na-kicker);
	font-weight:700;
	margin-bottom:7px;
}
.nea-auth-page .nea-auth-head h1{
	margin:0 0 6px;
	font-family:var(--na-font-display);
	font-size:25px;
	line-height:1.2;
	font-weight:700;
	color:var(--na-ink);
}
.nea-auth-page .nea-auth-head p{margin:0;color:var(--na-muted);font-size:13.5px}

.nea-auth-page .nea-auth-notice{
	border-radius:calc(var(--na-radius) * .55);
	padding:10px 13px;
	font-size:13px;
	margin:0 0 18px;
	border:1px solid transparent;
}
.nea-auth-page .nea-auth-notice.is-ok{background:var(--na-panel);border-color:var(--na-accent);color:var(--na-ink)}
.nea-auth-page .nea-auth-notice.is-error{background:var(--na-panel);border-color:#b3261e;color:#9b1c15}

.nea-auth-page .nea-auth-form{display:block;margin:0}
.nea-auth-page .nea-auth-hp{
	position:absolute;
	width:1px;
	height:1px;
	margin:-1px;
	padding:0;
	border:0;
	overflow:hidden;
	clip:rect(0,0,0,0);
	clip-path:inset(50%);
	white-space:nowrap;
}

.nea-auth-page .nea-auth-field{display:block;margin:0 0 15px}
.nea-auth-page .nea-auth-field > span,
.nea-auth-page .nea-auth-field > label{
	display:block;
	font-size:12.5px;
	font-weight:600;
	color:var(--na-ink);
	margin-bottom:6px;
}
.nea-auth-page .nea-auth-field input{
	display:block;
	width:100%;
	height:44px;
	padding:0 12px;
	box-sizing:border-box;
	font-family:inherit;
	font-size:14px;
	color:var(--na-ink);
	background:var(--na-input-bg);
	border:1px solid var(--na-line);
	border-radius:calc(var(--na-radius) * .6);
	outline:none;
	transition:border-color .15s, box-shadow .15s;
	-webkit-appearance:none;
}
.nea-auth-page .nea-auth-field input::placeholder{color:var(--na-muted);opacity:.75}
.nea-auth-page .nea-auth-field input:focus{
	border-color:var(--na-accent);
	box-shadow:inset 0 0 0 1px var(--na-accent);
}

.nea-auth-page .nea-auth-terms{
	display:flex;
	align-items:flex-start;
	gap:9px;
	margin:4px 0 18px;
	font-size:12px;
	color:var(--na-muted);
	line-height:1.5;
	cursor:pointer;
}
.nea-auth-page .nea-auth-terms input{
	flex:none;
	width:16px;
	height:16px;
	margin:2px 0 0;
	accent-color:var(--na-accent);
}
.nea-auth-page .nea-auth-terms a{color:var(--na-accent);text-decoration:underline;text-underline-offset:2px}

.nea-auth-page .nea-auth-submit{
	display:block;
	width:100%;
	height:46px;
	border:1px solid var(--na-accent);
	border-radius:calc(var(--na-radius) * .75);
	background:var(--na-accent);
	color:var(--na-accent-ink);
	font-family:inherit;
	font-size:15px;
	font-weight:700;
	letter-spacing:.01em;
	cursor:pointer;
	transition:filter .15s, transform .05s;
}
.nea-auth-page .nea-auth-submit:hover{filter:brightness(1.08)}
.nea-auth-page .nea-auth-submit:active{transform:translateY(1px)}
.nea-auth-page .nea-auth-submit:focus-visible{outline:2px solid var(--na-accent);outline-offset:2px}

.nea-auth-page .nea-auth-switch{
	margin:18px 0 0;
	text-align:center;
	font-size:13px;
	color:var(--na-muted);
}
.nea-auth-page .nea-auth-switch a{color:var(--na-accent);font-weight:700;text-decoration:none;margin-inline-start:4px}
.nea-auth-page .nea-auth-switch a:hover{text-decoration:underline}

/* ---------- head：报头 ---------- */
.nea-auth-page.nea-auth-head-C .nea-auth-head{text-align:center}
.nea-auth-page.nea-auth-head-C .nea-auth-head p{text-align:center}
.nea-auth-page.nea-auth-head-B .nea-auth-head{
	border-bottom:3px solid var(--na-ink);
	padding-bottom:13px;
}
.nea-auth-page.nea-auth-head-B .nea-auth-head h1{
	text-transform:uppercase;
	letter-spacing:.03em;
	font-size:23px;
}
.nea-auth-page.nea-auth-head-B .nea-auth-kicker{letter-spacing:.24em}
.nea-auth-page.nea-auth-head-S .nea-auth-head{
	position:relative;
	border-bottom:2px dashed var(--na-line);
	padding-bottom:16px;
}
.nea-auth-page.nea-auth-head-S .nea-auth-head::before,
.nea-auth-page.nea-auth-head-S .nea-auth-head::after{
	content:"";
	position:absolute;
	bottom:-10px;
	width:14px;
	height:14px;
	border-radius:50%;
	background:var(--na-bg);
	border:2px solid var(--na-line);
}
.nea-auth-page.nea-auth-head-S .nea-auth-head::before{left:-9px}
.nea-auth-page.nea-auth-head-S .nea-auth-head::after{right:-9px}
.nea-auth-page.nea-auth-head-S .nea-auth-head h1{text-transform:uppercase;letter-spacing:.02em}
.nea-auth-page.nea-auth-head-S .nea-auth-kicker{letter-spacing:.24em}

/* ---------- card：卡片形态 ---------- */
.nea-auth-page.nea-auth-card-S .nea-auth-card{
	border-radius:0;
	box-shadow:none;
}
.nea-auth-page.nea-auth-card-F .nea-auth-card::before{
	content:"";
	position:absolute;
	inset:7px;
	border:1px solid color-mix(in srgb, var(--na-line) 60%, transparent);
	pointer-events:none;
}
.nea-auth-page.nea-auth-card-N .nea-auth-card{padding-top:42px}
.nea-auth-page.nea-auth-card-N .nea-auth-card::before{
	content:"";
	position:absolute;
	top:14px;
	left:50%;
	transform:translateX(-50%);
	width:12px;
	height:12px;
	border-radius:50%;
	background:var(--na-bg);
	border:2px solid var(--na-ink);
}
.nea-auth-page.nea-auth-card-T .nea-auth-card::before,
.nea-auth-page.nea-auth-card-T .nea-auth-card::after{
	content:"";
	position:absolute;
	top:-10px;
	width:54px;
	height:20px;
	background:color-mix(in srgb, var(--na-line) 55%, transparent);
	pointer-events:none;
}
.nea-auth-page.nea-auth-card-T .nea-auth-card::before{left:16px;transform:rotate(-4deg)}
.nea-auth-page.nea-auth-card-T .nea-auth-card::after{right:16px;transform:rotate(4deg)}
.nea-auth-page.nea-auth-card-K .nea-auth-card{
	box-shadow:8px 8px 0 var(--na-line);
}
.nea-auth-page.nea-auth-card-G .nea-auth-card{
	border:2px dashed var(--na-line);
	border-radius:0;
	box-shadow:none;
}

/* ---------- field：字段形态 ---------- */
.nea-auth-page.nea-auth-field-L .nea-auth-field input{
	border:0;
	border-bottom:1px solid var(--na-line);
	border-radius:0;
	background:transparent;
	padding-inline:0;
}
.nea-auth-page.nea-auth-field-L .nea-auth-field input:focus{
	border-bottom-color:var(--na-accent);
	box-shadow:none;
}
.nea-auth-page.nea-auth-field-L .nea-auth-field > span,
.nea-auth-page.nea-auth-field-L .nea-auth-field > label{
	font-family:ui-monospace,Consolas,"Courier New",monospace;
	font-size:11px;
	text-transform:uppercase;
	letter-spacing:.08em;
}
.nea-auth-page.nea-auth-field-I .nea-auth-field input{
	box-shadow:inset 0 2px 6px rgba(0,0,0,.12);
}
.nea-auth-page.nea-auth-field-C .nea-auth-field input{
	border-radius:999px;
	padding-inline:16px;
}

/* ---------- btn：按钮形态 ---------- */
.nea-auth-page.nea-auth-btn-P .nea-auth-submit{border-radius:999px}
.nea-auth-page.nea-auth-btn-S .nea-auth-submit{
	border-radius:0;
	border:2px solid var(--na-ink);
	box-shadow:4px 4px 0 var(--na-line);
	text-transform:uppercase;
	letter-spacing:.1em;
	font-size:13.5px;
}
.nea-auth-page.nea-auth-btn-I .nea-auth-form{display:flex;flex-direction:column}
.nea-auth-page.nea-auth-btn-I .nea-auth-submit{
	width:auto;
	align-self:flex-end;
	padding-inline:28px;
	margin-top:4px;
}
.nea-auth-page.nea-auth-btn-G .nea-auth-submit{
	background:transparent;
	color:var(--na-accent);
	border:1px solid var(--na-accent);
}

/* ---------- bg：页面背景 ---------- */
.nea-auth-page.nea-auth-bg-G{
	background-color:var(--na-bg);
	background-image:
		linear-gradient(color-mix(in srgb, var(--na-line) 32%, transparent) 1px, transparent 1px),
		linear-gradient(90deg, color-mix(in srgb, var(--na-line) 32%, transparent) 1px, transparent 1px);
	background-size:26px 26px;
}
.nea-auth-page.nea-auth-bg-D{
	background-color:var(--na-bg);
	background-image:radial-gradient(color-mix(in srgb, var(--na-line) 48%, transparent) 1.2px, transparent 1.5px);
	background-size:16px 16px;
}
.nea-auth-page.nea-auth-bg-L{
	background-color:var(--na-bg);
	background-image:repeating-linear-gradient(
		0deg,
		color-mix(in srgb, var(--na-line) 20%, transparent) 0 1px,
		transparent 1px 7px
	);
}
.nea-auth-page.nea-auth-bg-W{
	background-color:var(--na-bg);
	background-image:radial-gradient(ellipse 75% 55% at 50% 0%, color-mix(in srgb, var(--na-accent) 15%, transparent), transparent 70%);
}
.nea-auth-page.nea-auth-bg-W .nea-auth-card{
	border-color:color-mix(in srgb, var(--na-accent) 55%, var(--na-line));
}
.nea-auth-page.nea-auth-bg-P{
	background-color:var(--na-bg);
	background-image:
		linear-gradient(0deg, color-mix(in srgb, var(--na-line) 10%, transparent), transparent 45%),
		linear-gradient(90deg, color-mix(in srgb, var(--na-line) 7%, transparent), transparent 45%);
}

/* ---------- orn：装饰 ---------- */
.nea-auth-page .nea-auth-orn{display:none;position:absolute;pointer-events:none;z-index:2}
.nea-auth-page.nea-auth-orn-C .nea-auth-orn{display:block;inset:0}
.nea-auth-page.nea-auth-orn-C .nea-auth-orn::before,
.nea-auth-page.nea-auth-orn-C .nea-auth-orn::after{
	content:"";
	position:absolute;
	width:18px;
	height:18px;
}
.nea-auth-page.nea-auth-orn-C .nea-auth-orn::before{
	top:8px;
	left:8px;
	border-top:2px solid var(--na-line);
	border-left:2px solid var(--na-line);
}
.nea-auth-page.nea-auth-orn-C .nea-auth-orn::after{
	bottom:8px;
	right:8px;
	border-bottom:2px solid var(--na-line);
	border-right:2px solid var(--na-line);
}
.nea-auth-page.nea-auth-orn-H .nea-auth-orn{
	display:block;
	top:-7px;
	left:50%;
	transform:translateX(-50%);
	width:14px;
	height:14px;
	border-radius:50%;
	background:var(--na-bg);
	border:2px solid var(--na-ink);
}
.nea-auth-page.nea-auth-orn-P .nea-auth-orn{
	display:block;
	inset:8px;
	border:1px dashed var(--na-line);
}
.nea-auth-page.nea-auth-orn-S .nea-auth-orn{
	display:block;
	inset:10px;
	border:2px dashed var(--na-line);
	opacity:.55;
}
.nea-auth-page.nea-auth-orn-B .nea-auth-orn{
	display:block;
	left:14px;
	right:14px;
	top:9px;
	height:8px;
	background-image:radial-gradient(circle, var(--na-accent) 2px, transparent 2.5px);
	background-size:16px 8px;
	background-repeat:repeat-x;
	background-position:center;
}

/* ---------- 结构变体：每个主题不同的 DOM 构建方式 ---------- */
.nea-auth-page .nea-auth-field--boxed{
	border:1px solid var(--na-line);
	padding:10px 12px;
	border-radius:calc(var(--na-radius) * .5);
}
.nea-auth-page .nea-auth-field--boxed > label{margin-bottom:4px}
.nea-auth-page .nea-auth-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:0 12px;
}
.nea-auth-page .nea-auth-steps{
	list-style:none;
	margin:0;
	padding:0;
}
.nea-auth-page .nea-auth-steps .nea-auth-field{
	display:flex;
	align-items:center;
	gap:9px;
	flex-wrap:wrap;
}
.nea-auth-page .nea-auth-steps .nea-auth-step{
	flex:none;
	width:24px;
	height:24px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border:1px solid var(--na-line);
	border-radius:50%;
	font-size:10px;
	font-weight:700;
	color:var(--na-accent);
}
.nea-auth-page .nea-auth-steps .nea-auth-field > label{margin:0}
.nea-auth-page .nea-auth-steps .nea-auth-field input{flex:1 1 100%}
.nea-auth-page .nea-auth-row{
	display:flex;
	align-items:center;
	gap:12px;
}
.nea-auth-page .nea-auth-row > span{
	flex:0 0 108px;
	font-size:12.5px;
	font-weight:600;
}
.nea-auth-page .nea-auth-row input{
	flex:1;
	width:auto;
}
.nea-auth-page .nea-auth-terms label{display:block}

@media (max-width:520px){
	.nea-auth-page{padding:26px 14px 48px}
	.nea-auth-page .nea-auth-card{padding:24px 18px 20px}
	.nea-auth-page.nea-auth-card-N .nea-auth-card{padding-top:38px}
	.nea-auth-page .nea-auth-head h1{font-size:22px}
	.nea-auth-page .nea-auth-grid{grid-template-columns:1fr;gap:0}
	.nea-auth-page .nea-auth-row{flex-wrap:wrap;gap:4px}
	.nea-auth-page .nea-auth-row > span{flex:1 1 100%}
	.nea-auth-page .nea-auth-row input{flex:1 1 100%;width:100%}
}
