.mf-auth-wrap {
	max-width: 440px;
	margin: 28px auto 72px;
	padding: 0 12px;
}
.mf-auth-card {
	position: relative;
	background: #fff;
	border: 1px solid #e6e8ee;
	border-radius: 18px;
	padding: 28px 26px 26px;
	box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
	overflow: hidden;
}
.mf-auth-card:before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
	background: linear-gradient(90deg, #00dade, #fb00ff);
}
.mf-auth-badge {
	width: 56px;
	height: 56px;
	margin: 8px auto 16px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(0, 218, 222, 0.16), rgba(251, 0, 255, 0.16));
	color: #c026d3;
	font-size: 26px;
}
.mf-auth-badge-avatar {
	width: 72px;
	height: 72px;
	padding: 0;
	background: none;
	border-radius: 50%;
	color: inherit;
}
.mf-auth-badge-avatar .mf-avatar {
	width: 72px;
	height: 72px;
	display: block;
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}
.mf-auth-title {
	margin: 0 0 6px;
	text-align: center;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #111827;
}
.mf-auth-sub {
	margin: 0 0 22px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.45;
}
.mf-auth-preview {
	background: #fff4e5;
	color: #92400e;
	text-align: center;
	padding: 8px 12px;
	font-size: 12px;
	border-radius: 10px;
	margin: 0 0 16px;
	border: 1px solid #fde68a;
}
.mf-auth-alert {
	text-align: center;
	font-size: 14px;
	line-height: 1.4;
	padding: 10px 12px;
	border-radius: 10px;
	margin: 0 0 16px;
}
.mf-auth-alert-ok {
	background: #ecfdf3;
	color: #067647;
	border: 1px solid #aaefc6;
}
.mf-auth-alert-err {
	background: #fef3f2;
	color: #b42318;
	border: 1px solid #fecdca;
}
.mf-auth-form .mf-field {
	display: block;
	margin: 0 0 14px;
}
.mf-auth-form .mf-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin: 0 0 6px;
}
.mf-field-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.mf-field-wrap > .bi:first-child {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 17px;
	color: #9ca3af;
	pointer-events: none;
	z-index: 1;
}
.mf-auth-form input[type=text],
.mf-auth-form input[type=email],
.mf-auth-form input[type=password] {
	width: 100%;
	height: 48px;
	padding: 0 44px 0 42px;
	border: 1px solid #d5d9e2;
	border-radius: 12px;
	background: #f8fafc;
	color: #111827;
	font-size: 15px;
	outline: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.mf-auth-form input[type=text]:focus,
.mf-auth-form input[type=email]:focus,
.mf-auth-form input[type=password]:focus {
	background: #fff;
	border-color: #00dade;
	box-shadow: 0 0 0 3px rgba(0, 218, 222, 0.18);
}
.mf-auth-form input::placeholder {
	color: #9ca3af;
}
.mf-auth-form input:-webkit-autofill,
.mf-auth-form input:-webkit-autofill:focus {
	-webkit-text-fill-color: #111827;
	caret-color: #111827;
	transition: background-color 9999s ease-out;
}
.mf-pass-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	font-size: 16px;
}
.mf-pass-toggle:hover {
	color: #111827;
	background: rgba(17, 24, 39, 0.06);
}
.mf-auth-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	width: 0;
	opacity: 0;
}
.mf-auth-captcha {
	display: flex;
	justify-content: center;
	margin: 4px 0 16px;
	overflow: auto;
}
.mf-auth-btn {
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 12px;
	background-image: linear-gradient(90deg, #00dade, #fb00ff);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(251, 0, 255, 0.18);
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.mf-auth-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(251, 0, 255, 0.24);
	filter: brightness(1.04);
	color: #fff;
}
.mf-auth-btn:active {
	transform: translateY(1px);
}
.mf-auth-btn-ghost {
	background: transparent;
	background-image: none;
	color: #6b7280;
	box-shadow: none;
	border: 1px solid #d5d9e2;
}
.mf-auth-btn-ghost:hover {
	background: #f3f4f6;
	color: #111827;
	box-shadow: none;
	filter: none;
}
.mf-auth-foot,
.mf-auth-hint {
	text-align: center;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.45;
	margin: 16px 0 0;
}
.mf-auth-foot a,
.mf-auth-hint a,
.mf-auth-out {
	color: #a21caf;
	font-weight: 600;
	text-decoration: none;
}
.mf-auth-foot a:hover,
.mf-auth-hint a:hover,
.mf-auth-out:hover {
	text-decoration: underline;
}
.mf-auth-out {
	display: inline-block;
	margin-top: 18px;
}
.mf-auth-panel {
	margin-top: 8px;
	padding-top: 18px;
	border-top: 1px solid #eceff3;
}
.mf-auth-panel:first-of-type {
	border-top: 0;
	padding-top: 0;
}
.mf-auth-panel h2 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}
.mf-auth-user {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f3f4f6;
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	margin: 0 auto 8px;
}
.mf-auth-user i {
	color: #22c55e;
}
.mf-auth-center {
	text-align: center;
}

.dark .mf-auth-card {
	background: #151c2b;
	border-color: #273044;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}
.dark .mf-auth-title,
.dark .mf-auth-panel h2,
.dark .mf-auth-user {
	color: #f3f4f6;
}
.dark .mf-auth-sub,
.dark .mf-auth-foot,
.dark .mf-auth-hint,
.dark .mf-auth-form .mf-label {
	color: #9ca3af;
}
.dark .mf-auth-user {
	background: #1f2937;
}
.dark .mf-auth-form input[type=text],
.dark .mf-auth-form input[type=email],
.dark .mf-auth-form input[type=password] {
	background: #0f1623;
	border-color: #334155;
	color: #f3f4f6;
}
.dark .mf-auth-form input[type=text]:focus,
.dark .mf-auth-form input[type=email]:focus,
.dark .mf-auth-form input[type=password]:focus {
	background: #111827;
	border-color: #00dade;
}
.dark .mf-auth-form input::placeholder {
	color: #6b7280;
}
.dark .mf-auth-form input:-webkit-autofill,
.dark .mf-auth-form input:-webkit-autofill:focus {
	-webkit-text-fill-color: #f3f4f6;
	caret-color: #f3f4f6;
}
.dark .mf-pass-toggle {
	color: #9ca3af;
}
.dark .mf-pass-toggle:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}
.dark .mf-auth-panel {
	border-top-color: #273044;
}
.dark .mf-auth-btn-ghost {
	border-color: #334155;
	color: #d1d5db;
}
.dark .mf-auth-btn-ghost:hover {
	background: #1f2937;
	color: #fff;
}
.dark .mf-auth-preview {
	background: #3b2a12;
	color: #fde68a;
	border-color: #854d0e;
}
.dark .mf-auth-alert-ok {
	background: #052e16;
	color: #86efac;
	border-color: #166534;
}
.dark .mf-auth-alert-err {
	background: #3f1210;
	color: #fecaca;
	border-color: #7f1d1d;
}
.dark .mf-auth-foot a,
.dark .mf-auth-hint a,
.dark .mf-auth-out {
	color: #e879f9;
}
