/* ==========================================================================
   Nova Market — two-tone sign-in surface
   Applies to the admin sign-in page (/login/) and to the remaining
   wp-login.php screens (password reset, logged out).
   Ink #2B1B3D, paper #FFFFFF. Nothing else.
   ========================================================================== */

/* --------------------------------------------------------------------------
   /login/ — the branded admin entry
   -------------------------------------------------------------------------- */

.nv-ax-body {
	background: #c2188a;
}

.nv-ax-brand {
	background:
		radial-gradient(circle at 18% 16%, rgba(129, 57, 148, .55) 0%, rgba(129, 57, 148, 0) 52%),
		linear-gradient(145deg, #3d0b55 0%, #651064 42%, #a3167f 72%, #c2188a 100%) !important;
}

.nv-ax-brand::after { opacity: .06; }

.nv-ax-logo,
.nv-ax-logo span { color: #ffffff; }
.nv-ax-logo--image img { display: block; width: auto; height: auto; max-height: 44px; }

.nv-ax-eyebrow {
	border-color: rgba(255, 255, 255, .26);
	color: rgba(255, 255, 255, .8);
}

.nv-ax-headline,
.nv-ax-perks strong { color: #ffffff; }

.nv-ax-lede,
.nv-ax-perks small,
.nv-ax-stats span { color: rgba(255, 255, 255, .68); }

.nv-ax-perk-icon {
	background: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .16);
	color: #ffffff;
}

.nv-ax-stats { border-top-color: rgba(255, 255, 255, .16); }
.nv-ax-stats strong { color: #ffffff; }

.nv-ax-main {
	background: linear-gradient(180deg, #ffffff 0%, #fff9fc 48%, #fdebf4 100%) !important;
}

.nv-ax-back,
.nv-ax-help,
.nv-ax-link { color: rgba(43, 27, 61, .62); text-decoration: none; }
.nv-ax-back:hover,
.nv-ax-help:hover,
.nv-ax-link:hover { color: #2b1b3d; text-decoration: underline; }

.nv-ax-tabs {
	background: rgba(43, 27, 61, .04);
	border-color: rgba(43, 27, 61, .12);
}
.nv-ax-tab { color: rgba(43, 27, 61, .6); }
.nv-ax-tab.is-active {
	background: #c2188a;
	color: #ffffff;
	box-shadow: none;
}

.nv-ax-kicker { color: #c2188a; letter-spacing: .12em; }
.nv-ax-title { color: #2b1b3d; }
.nv-ax-sub,
.nv-ax-field label,
.nv-ax-check { color: rgba(43, 27, 61, .66); }

.nv-ax-notice {
	background: #ffffff;
	border: 1px solid rgba(43, 27, 61, .12);
	border-left: 4px solid #2b1b3d;
	color: #2b1b3d;
}

.nv-ax-input {
	border-color: rgba(43, 27, 61, .18);
	background: #ffffff;
}
.nv-ax-input:focus-within {
	border-color: #c2188a;
	box-shadow: 0 0 0 3px rgba(194, 24, 138, .14);
}
.nv-ax-input > svg,
.nv-ax-eye { color: rgba(43, 27, 61, .45); }
.nv-ax-input input { color: #2b1b3d; }
.nv-ax-input input::placeholder { color: rgba(43, 27, 61, .38); }
.nv-ax-eye:hover { background: rgba(43, 27, 61, .06); color: #2b1b3d; }

.nv-ax-check input,
.nv-ax-check--terms input { accent-color: #2b1b3d; }
.nv-ax-check a { color: #2b1b3d; }

.nv-ax-btn {
	background: #c2188a !important;
	color: #ffffff;
	box-shadow: none;
}
.nv-ax-btn:hover,
.nv-ax-btn:focus {
	background: #a81275 !important;
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(194, 24, 138, .30);
	transform: none;
	filter: none;
}

.nv-ax-divider span { color: rgba(43, 27, 61, .45); }
.nv-ax-divider::before { background: rgba(43, 27, 61, .12); }
.nv-ax-guest { border-color: rgba(43, 27, 61, .18); color: #2b1b3d; }
.nv-ax-guest:hover { border-color: #2b1b3d; color: #2b1b3d; background: rgba(43, 27, 61, .04); }
.nv-ax-switch { color: rgba(43, 27, 61, .6); }
.nv-ax-switch a { color: #2b1b3d; }
.nv-ax-legal { color: rgba(43, 27, 61, .45); }
.nv-ax-legal svg { color: rgba(43, 27, 61, .45); }

.nv-ax-pay { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .18); }

/* --------------------------------------------------------------------------
   wp-login.php — password reset / logged out
   -------------------------------------------------------------------------- */

body.login {
	background: #c2188a !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.login::before { opacity: .06 !important; }

#login h1 a::before { color: #ffffff !important; }

.login form {
	border: 1px solid rgba(43, 27, 61, .12) !important;
	border-radius: 16px !important;
	background: #ffffff !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .28) !important;
}

.login form .input,
.login input[type="text"],
.login input[type="password"] {
	border: 1px solid rgba(43, 27, 61, .18) !important;
	border-radius: 10px !important;
	color: #2b1b3d !important;
	box-shadow: none !important;
}
.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: #2b1b3d !important;
	box-shadow: 0 0 0 3px rgba(43, 27, 61, .12) !important;
}

.login label { color: #2b1b3d !important; }

.wp-core-ui .button-primary,
.login .button-primary {
	background: #c2188a !important;
	border: 1px solid #c2188a !important;
	border-radius: 10px !important;
	color: #ffffff !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-weight: 700 !important;
}
.wp-core-ui .button-primary:hover,
.login .button-primary:hover,
.login .button-primary:focus {
	background: #c2188a !important;
	border-color: #c2188a !important;
	color: #ffffff !important;
	box-shadow: 0 6px 18px rgba(43, 27, 61, .22) !important;
}

.login #nav a,
.login #backtoblog a,
.login .privacy-policy-page-link a {
	color: rgba(255, 255, 255, .78) !important;
}
.login #nav a:hover,
.login #backtoblog a:hover,
.login .privacy-policy-page-link a:hover { color: #ffffff !important; }

.login .message,
.login .notice,
.login .success {
	background: #ffffff !important;
	border: 1px solid rgba(43, 27, 61, .12) !important;
	border-left: 4px solid #2b1b3d !important;
	border-radius: 10px !important;
	color: #2b1b3d !important;
	box-shadow: none !important;
}
.login .notice-error { border-left-width: 7px !important; }

.login .language-switcher .button,
.login .language-switcher select {
	border-color: rgba(255, 255, 255, .3) !important;
	background: transparent !important;
	color: #ffffff !important;
	border-radius: 8px !important;
}

/* Match the supplied sign-in reference: no floating support bubble on the
   branded login page; keep only the four payment badges in the corner. */
body.nv-ax-body .ofosao-help,
body.nv-ax-body .ofosao-help__bubble {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Icon-only brand mark (no wordmark) — desktop
   -------------------------------------------------------------------------- */
.nv-ax-logo--image img {
	max-height: 52px;
	width: auto;
	height: auto;
}

/* Mobile icon sits at the top of the clean sign-in screen. */
.nv-ax-mobile-brand {
	display: none;
	width: 56px;
	height: 56px;
	line-height: 0;
	text-decoration: none;
}

.nv-ax-mobile-brand img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
}

/* --------------------------------------------------------------------------
   Mobile sign-in — follow the clean, single-column account style used by
   topglim.com on phones: light neutral canvas, no split brand panel, large
   title, one clear column, quiet links. Brand magenta stays on the button.
   -------------------------------------------------------------------------- */
@media (max-width: 782px) {
	body.nv-ax-body {
		background: #f5f5f5 !important;
	}

	.nv-ax {
		display: block;
		min-height: 100vh;
		background: #f5f5f5;
	}

	.nv-ax-brand {
		display: none !important;
	}

	.nv-ax-main {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		min-height: 100vh;
		padding: 88px 22px 30px;
		background: #f5f5f5 !important;
	}

	.nv-ax-mobile-brand {
		display: block;
		position: absolute;
		top: 26px;
		left: 22px;
		z-index: 2;
	}

	.nv-ax-topbar {
		display: none;
	}

	.nv-ax-card {
		width: 100%;
		max-width: 100%;
		margin: 0 auto;
	}

	.nv-ax-head {
		margin-top: 6vh;
	}

	.nv-ax-kicker {
		display: none;
	}

	.nv-ax-title {
		margin: 0 0 10px;
		font-size: 31px;
		line-height: 1.15;
		font-weight: 800;
		letter-spacing: -.025em;
	}

	.nv-ax-sub {
		margin: 0 0 42px;
		max-width: 360px;
		font-size: 15px;
		line-height: 1.6;
	}

	.nv-ax-field {
		margin-bottom: 16px;
	}

	.nv-ax-field label {
		margin-bottom: 7px;
		font-size: 14px;
	}

	.nv-ax-input {
		min-height: 56px;
		border: 1px solid #d6d6d6;
		border-radius: 10px;
		background: #ffffff;
		box-shadow: none;
	}

	.nv-ax-input:focus-within {
		border-color: #c2188a;
		box-shadow: 0 0 0 3px rgba(194, 24, 138, .12);
	}

	.nv-ax-input input {
		height: 54px;
		font-size: 16px;
	}

	.nv-ax-input > svg {
		width: 20px;
		height: 20px;
	}

	.nv-ax-row {
		margin: 2px 0 18px;
	}

	.nv-ax-check {
		font-size: 15px;
	}

	.nv-ax-link {
		font-size: 14px;
	}

	.nv-ax-btn {
		min-height: 54px;
		border-radius: 10px;
		font-size: 16px;
		letter-spacing: 0;
	}

	.nv-ax-legal {
		justify-content: center;
		margin-top: 46px;
		font-size: 13px;
		text-align: center;
	}
}

@media (max-width: 390px) {
	.nv-ax-main {
		padding-left: 20px;
		padding-right: 20px;
	}
	.nv-ax-mobile-brand {
		left: 20px;
	}
	.nv-ax-title {
		font-size: 28px;
	}
	.nv-ax-sub {
		font-size: 14.5px;
		margin-bottom: 34px;
	}
}

/* Restore the previous OFOSAO wordmark on the sign-in screens.
   Desktop uses the white wordmark on the magenta panel; mobile uses the
   black wordmark on the light single-column canvas. */
.nv-ax-logo--image img {
	max-height: 44px;
}

.nv-ax-mobile-brand {
	width: auto;
	height: auto;
}

.nv-ax-mobile-brand img {
	display: block;
	width: auto;
	height: auto;
	max-height: 40px;
	border-radius: 0;
}

@media (max-width: 390px) {
	.nv-ax-mobile-brand img {
		max-height: 36px;
	}
}
