/* ==========================================================================
   Madara Neon — Halaman Masuk (standalone, self-contained)
   Tidak memuat neon.css agar cepat & bebas dependensi; token disalin.
   ========================================================================== */

.mn-auth {
	--mn-bg: #0b0910;
	--mn-bg-soft: #100c18;
	--mn-surface: #171220;
	--mn-surface-2: #1f1830;
	--mn-surface-3: #281f3d;
	--mn-text: #f4f1fb;
	--mn-text-strong: #ffffff;
	--mn-muted: #a79fba;
	--mn-faint: #776f8a;
	--mn-border: rgba(255, 255, 255, 0.08);
	--mn-border-strong: rgba(255, 255, 255, 0.16);
	--mn-accent: #a855f7;
	--mn-accent-2: #d946ef;
	--mn-accent-strong: #8b5cf6;
	--mn-accent-soft: rgba(168, 85, 247, 0.16);
	--mn-accent-line: rgba(168, 85, 247, 0.38);
	--mn-green: #4ade80;
	--mn-red: #f87171;
	--mn-radius: 18px;
	--mn-radius-sm: 12px;
	--mn-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color-scheme: dark;
}

html.mn-auth-html {
	margin: 0;
	padding: 0;
}

body.mn-auth {
	box-sizing: border-box;
	margin: 0;
	min-height: 100vh;
	padding: 24px 16px 40px;
	background-color: var(--mn-bg);
	background-image:
		radial-gradient(46% 38% at 12% 4%, rgba(139, 92, 246, 0.24), transparent 68%),
		radial-gradient(40% 34% at 88% 12%, rgba(217, 70, 239, 0.16), transparent 70%),
		radial-gradient(60% 50% at 50% 108%, rgba(168, 85, 247, 0.14), transparent 72%);
	color: var(--mn-text);
	font-family: var(--mn-font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

body.mn-auth *,
body.mn-auth *::before,
body.mn-auth *::after {
	box-sizing: border-box;
}

/* Moving aurora blobs */
body.mn-auth::before,
body.mn-auth::after {
	content: "";
	position: fixed;
	z-index: 0;
	width: 46vmax;
	height: 46vmax;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.34;
	pointer-events: none;
	animation: mn-auth-drift 22s ease-in-out infinite alternate;
}

body.mn-auth::before {
	top: -22vmax;
	left: -14vmax;
	background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.6), transparent 66%);
}

body.mn-auth::after {
	right: -18vmax;
	bottom: -24vmax;
	background: radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.42), transparent 66%);
	animation-duration: 28s;
	animation-delay: -6s;
}

@keyframes mn-auth-drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(5vmax, 4vmax, 0) scale(1.12);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.mn-auth::before,
	body.mn-auth::after {
		animation: none;
	}
}

/* Top bar: logo + back link */
.mn-auth__bar {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	max-width: 1060px;
	margin-bottom: 26px;
}

.mn-auth__logo img {
	display: block;
	height: 34px;
	width: auto;
}

.mn-auth__logo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 800;
	color: var(--mn-text-strong);
	text-decoration: none;
	letter-spacing: -0.4px;
}

.mn-auth__logo .mn-auth__logo-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--mn-accent-2);
	box-shadow: 0 0 12px var(--mn-accent-2);
}

.mn-auth__back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 16px;
	border: 1px solid var(--mn-border-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: var(--mn-muted);
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mn-auth__back:hover {
	border-color: var(--mn-accent-line);
	background: rgba(168, 85, 247, 0.12);
	color: var(--mn-text-strong);
	box-shadow: 0 0 20px -6px rgba(168, 85, 247, 0.6);
}

.mn-auth__back svg {
	width: 15px;
	height: 15px;
}

/* Stage */
.mn-auth__stage {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
	gap: 22px;
	width: 100%;
	max-width: 1060px;
	align-items: stretch;
}

/* Brand panel */
.mn-auth__brand {
	position: relative;
	overflow: hidden;
	padding: 34px 32px;
	border: 1px solid transparent;
	border-radius: calc(var(--mn-radius) + 6px);
	background:
		linear-gradient(160deg, rgba(31, 24, 48, 0.96), rgba(17, 13, 26, 0.96)) padding-box,
		linear-gradient(130deg, rgba(217, 70, 239, 0.6), rgba(139, 92, 246, 0.14) 44%, rgba(168, 85, 247, 0.55)) border-box;
	box-shadow: 0 40px 90px -44px rgba(0, 0, 0, 0.85);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
}

.mn-auth__brand::before {
	content: "";
	position: absolute;
	inset: -40% -20% auto auto;
	width: 340px;
	height: 340px;
	background: radial-gradient(circle at 50% 50%, rgba(217, 70, 239, 0.3), transparent 68%);
	filter: blur(46px);
	pointer-events: none;
}

.mn-auth__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	padding: 6px 14px;
	border: 1px solid var(--mn-accent-line);
	border-radius: 999px;
	background: rgba(168, 85, 247, 0.12);
	color: #e9d5ff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
}

.mn-auth__eyebrow i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--mn-accent-2);
	box-shadow: 0 0 10px var(--mn-accent-2);
}

.mn-auth__headline {
	margin: 0;
	font-size: clamp(26px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -1.1px;
	background: linear-gradient(100deg, #ffffff 30%, #e9d5ff 62%, var(--mn-accent-2) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.mn-auth__lede {
	margin: 0;
	max-width: 42ch;
	color: var(--mn-muted);
	font-size: 14px;
	line-height: 1.75;
}

.mn-auth__perks {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mn-auth__perks li {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--mn-text);
	font-size: 13.5px;
	font-weight: 500;
}

.mn-auth__perks svg {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	color: var(--mn-accent-2);
}

/* Floating cover fan */
.mn-auth__covers {
	position: relative;
	display: flex;
	height: 132px;
	margin-top: 4px;
	perspective: 900px;
}

.mn-auth__covers img {
	position: absolute;
	top: 0;
	width: 92px;
	height: 126px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	object-fit: cover;
	background: var(--mn-surface-2);
	box-shadow: 0 26px 46px -22px rgba(0, 0, 0, 0.8);
	animation: mn-auth-float 7s ease-in-out infinite;
}

.mn-auth__covers img:nth-child(1) {
	left: 0;
	transform: rotate(-9deg) translateY(10px);
}

.mn-auth__covers img:nth-child(2) {
	left: 74px;
	animation-delay: -2.3s;
}

.mn-auth__covers img:nth-child(3) {
	left: 148px;
	transform: rotate(9deg) translateY(10px);
	animation-delay: -4.6s;
}

@keyframes mn-auth-float {
	0%,
	100% {
		margin-top: 0;
	}
	50% {
		margin-top: -9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mn-auth__covers img {
		animation: none;
	}
}

/* Form card */
.mn-auth__card {
	position: relative;
	padding: 30px 28px 26px;
	border: 1px solid var(--mn-border-strong);
	border-radius: calc(var(--mn-radius) + 6px);
	background: rgba(23, 18, 32, 0.78);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mn-auth__card h2 {
	margin: 0;
	color: var(--mn-text-strong);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.6px;
}

.mn-auth__card > p {
	margin: -8px 0 0;
	color: var(--mn-muted);
	font-size: 13px;
}

/* Alert */
.mn-auth__alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid rgba(248, 113, 113, 0.34);
	border-radius: var(--mn-radius-sm);
	background: rgba(248, 113, 113, 0.1);
	color: #fecaca;
	font-size: 13px;
	font-weight: 500;
}

.mn-auth__alert svg {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	color: var(--mn-red);
}

.mn-auth__alert--ok {
	border-color: rgba(74, 222, 128, 0.34);
	background: rgba(74, 222, 128, 0.1);
	color: #bbf7d0;
}

.mn-auth__alert--ok svg {
	color: var(--mn-green);
}

/* Fields */
.mn-auth__field {
	position: relative;
}

.mn-auth__field input {
	width: 100%;
	height: 54px;
	padding: 20px 15px 7px;
	border: 1px solid var(--mn-border-strong);
	border-radius: var(--mn-radius-sm);
	background: rgba(255, 255, 255, 0.04);
	color: var(--mn-text);
	font-family: var(--mn-font);
	font-size: 14.5px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.mn-auth__field input::placeholder {
	color: transparent;
}

.mn-auth__field label {
	position: absolute;
	left: 15px;
	top: 17px;
	color: var(--mn-faint);
	font-size: 14px;
	font-weight: 500;
	pointer-events: none;
	transform-origin: left top;
	transition: transform 0.18s ease, color 0.18s ease;
}

.mn-auth__field input:focus {
	border-color: var(--mn-accent-line);
	background: rgba(168, 85, 247, 0.07);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
	outline: 0;
}

.mn-auth__field input:focus + label,
.mn-auth__field input:not(:placeholder-shown) + label {
	transform: translateY(-9px) scale(0.78);
	color: var(--mn-accent-2);
}

.mn-auth__field--has-btn input {
	padding-right: 52px;
}

.mn-auth__reveal {
	position: absolute;
	top: 11px;
	right: 11px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--mn-faint);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.mn-auth__reveal:hover {
	background: rgba(168, 85, 247, 0.14);
	color: var(--mn-text-strong);
}

.mn-auth__reveal svg {
	width: 18px;
	height: 18px;
}

.mn-auth__reveal .mn-icon-off {
	display: none;
}

.mn-auth__reveal.is-on .mn-icon-on {
	display: none;
}

.mn-auth__reveal.is-on .mn-icon-off {
	display: block;
}

/* Row: switch + forgot */
.mn-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: -2px;
}

.mn-auth__switch {
	display: inline-flex;
	align-items: center;
	gap: 10px
	;
	color: var(--mn-muted);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
}

.mn-auth__switch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mn-auth__switch span {
	position: relative;
	flex: 0 0 auto;
	width: 38px;
	height: 22px;
	border: 1px solid var(--mn-border-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mn-auth__switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--mn-faint);
	transition: transform 0.22s ease, background-color 0.2s ease;
}

.mn-auth__switch input:checked + span {
	border-color: var(--mn-accent-line);
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(217, 70, 239, 0.55));
}

.mn-auth__switch input:checked + span::after {
	transform: translateX(16px);
	background: #ffffff;
	box-shadow: 0 0 10px rgba(217, 70, 239, 0.85);
}

.mn-auth__switch input:focus-visible + span {
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28);
}

.mn-auth__forgot {
	color: var(--mn-accent-2);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.mn-auth__forgot:hover {
	text-decoration: underline;
}

/* Submit */
.mn-auth__submit {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 50px;
	margin-top: 2px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--mn-accent-strong), var(--mn-accent-2));
	color: #ffffff;
	font-family: var(--mn-font);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: -0.2px;
	cursor: pointer;
	box-shadow: 0 18px 38px -16px rgba(168, 85, 247, 0.75);
	transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mn-auth__submit::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -60%;
	width: 45%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
	transform: skewX(-18deg);
	transition: left 0.55s ease;
}

.mn-auth__submit:hover {
	filter: brightness(1.06);
	box-shadow: 0 22px 44px -14px rgba(217, 70, 239, 0.8);
}

.mn-auth__submit:hover::after {
	left: 130%;
}

.mn-auth__submit:active {
	transform: translateY(1px);
}

.mn-auth__submit[disabled] {
	cursor: progress;
	filter: saturate(0.7) brightness(0.9);
}

.mn-auth__spinner {
	display: none;
	width: 17px;
	height: 17px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: mn-auth-spin 0.7s linear infinite;
}

.mn-auth__submit.is-loading .mn-auth__spinner {
	display: block;
}

@keyframes mn-auth-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Alt links */
.mn-auth__alt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 4px;
	border-top: 1px solid var(--mn-border);
	margin-top: 2px;
	padding-top: 14px;
	color: var(--mn-faint);
	font-size: 12.5px;
}

.mn-auth__alt a {
	color: var(--mn-text);
	font-weight: 600;
	text-decoration: none;
}

.mn-auth__alt a:hover {
	color: var(--mn-accent-2);
}

/* Footer note */
.mn-auth__foot {
	position: relative;
	z-index: 2;
	margin-top: 26px;
	color: var(--mn-faint);
	font-size: 11.5px;
	text-align: center;
	max-width: 1060px;
}

.mn-auth__foot a {
	color: var(--mn-muted);
	text-decoration: none;
}

.mn-auth__foot a:hover {
	color: var(--mn-accent-2);
}

/* Already-logged-in card */
.mn-auth__who {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 14px 16px;
	border: 1px solid var(--mn-accent-line);
	border-radius: var(--mn-radius-sm);
	background: rgba(168, 85, 247, 0.1);
}

.mn-auth__who img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--mn-surface-3);
}

.mn-auth__who b {
	display: block;
	color: var(--mn-text-strong);
	font-size: 14.5px;
}

.mn-auth__who small {
	color: var(--mn-muted);
	font-size: 12px;
}

.mn-auth__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.mn-auth__btn-ghost {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--mn-border-strong);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--mn-text);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mn-auth__btn-ghost:hover {
	border-color: var(--mn-accent-line);
	background: rgba(168, 85, 247, 0.12);
	box-shadow: 0 0 22px -8px rgba(168, 85, 247, 0.6);
}

.mn-auth__btn-ghost--danger:hover {
	border-color: rgba(248, 113, 113, 0.5);
	background: rgba(248, 113, 113, 0.12);
	box-shadow: none;
}

/* Mobile */
@media (max-width: 900px) {
	.mn-auth__stage {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.mn-auth__brand {
		padding: 24px 22px;
		gap: 16px;
		order: 2;
	}

	.mn-auth__covers {
		display: none;
	}

	.mn-auth__card {
		order: 1;
		padding: 24px 20px 22px;
	}

	.mn-auth__bar {
		margin-bottom: 18px;
	}

	.mn-auth__logo img {
		height: 30px;
	}
}

@media (max-width: 480px) {
	body.mn-auth {
		padding: 18px 12px 32px;
	}

	.mn-auth__headline {
		letter-spacing: -0.7px;
	}

	.mn-auth__row {
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 10px;
	}

	.mn-auth__actions {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   Halaman WordPress asli yang tersisa (lupa password, reset, daftar,
   cek email) — ikut bernuansa neon tanpa mengambil alih formulirnya.
   ========================================================================== */
body.login {
	min-height: 100vh;
	background-color: #0b0910;
	background-image:
		radial-gradient(46% 38% at 12% 4%, rgba(139, 92, 246, 0.24), transparent 68%),
		radial-gradient(40% 34% at 88% 12%, rgba(217, 70, 239, 0.16), transparent 70%),
		radial-gradient(60% 50% at 50% 108%, rgba(168, 85, 247, 0.14), transparent 72%);
	color: #f4f1fb;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body.login #login {
	width: min(420px, 92vw);
	padding: 0;
	margin: 8vh auto 0;
}

body.login #login h1 a {
	width: auto;
	height: 44px;
	background-size: contain;
	background-position: center bottom;
	margin-bottom: 26px;
}

body.login .login form {
	margin-top: 0;
	padding: 26px 24px 22px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 24px;
	background: rgba(23, 18, 32, 0.78);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.login .login form p.label-description,
body.login .login p.meta,
body.login #nav,
body.login .login form .desc {
	color: #a79fba;
	font-size: 13px;
}

body.login .login form label {
	color: #a79fba;
	font-size: 12.5px;
	font-weight: 600;
}

body.login .login form .input,
body.login .login input[type="text"],
body.login .login input[type="email"],
body.login .login input[type="password"],
body.login .wp-core-ui .login form input[type="text"],
body.login .wp-core-ui .login form input[type="password"] {
	width: 100%;
	height: 48px;
	margin: 0 0 14px;
	padding: 12px 15px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.04);
	color: #f4f1fb;
	font-size: 14.5px;
	box-shadow: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.login .login form .input:focus,
body.login .login input[type="password"]:focus,
body.login .login input[type="text"]:focus,
body.login .login input[type="email"]:focus {
	border-color: rgba(168, 85, 247, 0.38);
	background: rgba(168, 85, 247, 0.07);
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
	outline: 0;
	color: #f4f1fb;
}

body.login .wp-core-ui .button-primary,
body.login .wp-core-ui .button-primary:active,
body.login .wp-core-ui .button-primary:focus {
	height: 46px;
	padding: 0 24px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #8b5cf6, #d946ef);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	text-shadow: none;
	box-shadow: 0 18px 38px -16px rgba(168, 85, 247, 0.75);
	cursor: pointer;
}

body.login .wp-core-ui .button-primary:hover {
	filter: brightness(1.06);
	background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

body.login .login .message,
body.login .login .setting-group,
body.login .login #login_error {
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 1px solid rgba(168, 85, 247, 0.34);
	border-left-width: 3px;
	border-radius: 12px;
	background: rgba(168, 85, 247, 0.1);
	color: #e9d5ff;
	font-size: 13px;
	box-shadow: none;
}

body.login .login #login_error {
	border-color: rgba(248, 113, 113, 0.34);
	border-left-color: #f87171;
	background: rgba(248, 113, 113, 0.1);
	color: #fecaca;
}

body.login #nav a,
body.login #backtoblog a,
body.login .login #backtoblog a {
	color: #a79fba;
	font-size: 12.5px;
	font-weight: 600;
	text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
	color: #d946ef;
	text-shadow: 0 0 16px rgba(217, 70, 239, 0.45);
}

body.login .login #backtoblog {
	margin: 22px 0 0;
}

body.login .language-switcher {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   FIX + SIGNUP — ikon, tata letak form, meteran password, checkbox
   ========================================================================== */

/* Madara's icon helper prints <svg class="mn-icon"> with no width/height,
   so without this rule every icon falls back to 300x150 and blows up buttons. */
.mn-auth .mn-icon {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.mn-auth__back .mn-icon {
	width: 15px;
	height: 15px;
	flex: 0 0 15px;
}

.mn-auth__perks .mn-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.mn-auth__submit-icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
}

/* Form column: fields, switch, button and alerts need real spacing */
.mn-auth__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.mn-auth__form .mn-auth__field {
	margin: 0;
}

/* Honeypot: away from view but still in the DOM for bots */
.mn-auth__hp {
	position: absolute !important;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	margin: 0;
	overflow: hidden;
}

/* Password strength meter */
.mn-auth__meter-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: -6px;
}

.mn-auth__meter {
	display: flex;
	flex: 1 1 auto;
	gap: 4px;
}

.mn-auth__meter i {
	flex: 1 1 0;
	height: 4px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.1);
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.mn-auth__meter[data-score="1"] i:nth-child(1) {
	background: var(--mn-red);
	box-shadow: 0 0 10px rgba(248, 113, 113, 0.45);
}

.mn-auth__meter[data-score="2"] i:nth-child(-n+2) {
	background: #facc15;
	box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.mn-auth__meter[data-score="3"] i:nth-child(-n+3) {
	background: var(--mn-accent-2);
	box-shadow: 0 0 10px rgba(217, 70, 239, 0.55);
}

.mn-auth__meter[data-score="4"] i {
	background: var(--mn-green);
	box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.mn-auth__meter-text {
	color: var(--mn-faint);
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

/* Terms checkbox */
.mn-auth__agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--mn-muted);
	font-size: 12.5px;
	line-height: 1.5;
	cursor: pointer;
	user-select: none;
}

.mn-auth__agree input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.mn-auth__check {
	position: relative;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1px solid var(--mn-border-strong);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.05);
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.mn-auth__check::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 6px;
	width: 5px;
	height: 9px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) scale(0.6);
	opacity: 0;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.mn-auth__agree input:checked + .mn-auth__check {
	border-color: transparent;
	background: linear-gradient(135deg, var(--mn-accent-strong), var(--mn-accent-2));
	box-shadow: 0 0 14px -3px rgba(168, 85, 247, 0.8);
}

.mn-auth__agree input:checked + .mn-auth__check::after {
	opacity: 1;
	transform: rotate(45deg) scale(1);
}

.mn-auth__agree input:focus-visible + .mn-auth__check {
	box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.28);
}

.mn-auth__agree:hover {
	color: var(--mn-text);
}

/* Signup cards hold more fields: keep the stage centred and roomy */
@media (min-width: 901px) {
	.mn-auth__card {
		padding: 32px 30px 28px;
	}

	.mn-auth__card form {
		gap: 13px;
	}
}

@media (max-width: 480px) {
	.mn-auth__meter-wrap {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.mn-auth__meter {
		width: 100%;
	}
}
