/* Newsora — branded sign-in page (wp-login.php) */

body.nw-login {
	--nw-ink: #0e1116;
	--nw-ink-2: #454c5a;
	--nw-muted: #7f8696;
	--nw-line: #e3e6ec;
	--nw-surface: #f4f5f7;
	--nw-dark: #0c0e13;
	--nw-r: max(var(--nw-radius, 12px), 10px);
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	grid-auto-rows: min-content;
	align-content: center;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	background: #fff;
	color: var(--nw-ink);
	font-family: var(--nw-font-body, system-ui, sans-serif);
	-webkit-font-smoothing: antialiased;
}
body.nw-login.interim-login { display: block; }
body.nw-login #login,
body.nw-login .language-switcher,
body.nw-login .privacy-policy-page-link { grid-column: 2; }

/* ---------- Left brand panel ---------- */
.nw-login-aside {
	grid-column: 1;
	grid-row: 1 / span 20;
	position: sticky;
	top: 0;
	height: 100vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: 44px 56px;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	background: var(--nw-dark);
}
.nw-login-aside::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--nw-login-bg, none) center / cover no-repeat;
	transform: scale(1.04);
}
.nw-login-aside::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--nw-accent) 45%, transparent), transparent 60%),
		linear-gradient(180deg, rgba(8, 10, 14, .55) 0%, rgba(8, 10, 14, .78) 55%, rgba(8, 10, 14, .95) 100%);
}
.nw-login-brand {
	align-self: flex-start;
	font-family: var(--nw-font-heading);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #fff;
	text-decoration: none;
}
.nw-login-brand span { color: var(--nw-accent); }
.nw-login-brand img { display: block; max-height: 48px; width: auto; }
.nw-login-brand:focus { box-shadow: none; outline: 2px solid #fff; outline-offset: 4px; }

.nw-login-pitch { max-width: 520px; }
.nw-login-kicker {
	display: inline-block;
	margin-bottom: 18px;
	padding: 6px 12px 5px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	backdrop-filter: blur(6px);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.nw-login-pitch h2 {
	margin: 0 0 16px;
	font-family: var(--nw-font-heading);
	font-size: clamp(32px, 3.4vw, 50px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.04em;
	color: #fff;
	text-wrap: balance;
}
.nw-login-pitch p { margin: 0 0 28px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

.nw-login-plans { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.nw-login-plan {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--nw-r);
	background: rgba(255, 255, 255, .07);
	backdrop-filter: blur(8px);
	font-size: 14px;
}
.nw-login-plan svg { flex: none; }
.nw-login-plan.is-silver svg { color: #cbd5e1; }
.nw-login-plan.is-gold svg { color: #f5b301; }
.nw-login-plan.is-platinum svg { color: #b79cff; }
.nw-login-plan strong { font-weight: 700; }
.nw-login-plan span { margin-left: auto; color: rgba(255, 255, 255, .7); }
.nw-login-plans-link { font-size: 14px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.nw-login-plans-link:hover, .nw-login-plans-link:focus { color: #fff; box-shadow: none; }
.nw-login-aside-foot { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ---------- Form side ---------- */
body.nw-login #login {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 56px 24px 24px;
}

/* Small logo above the form (WordPress's h1) */
body.nw-login #login > h1 { margin: 0 0 30px; text-align: left; }
body.nw-login #login > h1 a {
	display: inline-block;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	background: none;
	text-indent: 0;
	overflow: visible;
	font-family: var(--nw-font-heading);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.04em;
	color: var(--nw-ink);
}
body.nw-login #login > h1 a::after { content: "."; color: var(--nw-accent); }
body.nw-login #login > h1 a:focus { box-shadow: none; outline: 2px solid var(--nw-accent); outline-offset: 4px; border-radius: 4px; }
/* Logo is already in the left panel on desktop */
@media (min-width: 961px) { body.nw-login:not(.interim-login) #login > h1 { display: none; } }

.nw-login-head { margin-bottom: 26px; }
body.nw-login .nw-login-title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--nw-font-heading);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.035em;
	color: var(--nw-ink);
}
.nw-login-sub { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--nw-ink-2); }

/* The form itself: no box, clean fields */
body.nw-login form {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}
body.nw-login form p,
body.nw-login .user-pass-wrap { margin-bottom: 18px; }
body.nw-login label {
	display: block;
	margin-bottom: 7px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--nw-ink);
}
body.nw-login form .input,
body.nw-login input[type="text"],
body.nw-login input[type="email"],
body.nw-login input[type="password"] {
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 12px 16px;
	box-sizing: border-box;
	border: 1px solid var(--nw-line);
	border-radius: var(--nw-r);
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	color: var(--nw-ink);
	transition: border-color .15s, box-shadow .15s;
}
body.nw-login input::placeholder { color: #a6acb8; }
body.nw-login form .input:focus,
body.nw-login input[type="text"]:focus,
body.nw-login input[type="email"]:focus,
body.nw-login input[type="password"]:focus {
	border-color: var(--nw-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--nw-accent) 16%, transparent);
	outline: none;
}
body.nw-login .wp-pwd { position: relative; }
body.nw-login .wp-pwd input { padding-right: 52px; }
body.nw-login .button.wp-hide-pw {
	top: 50%;
	right: 6px;
	width: 40px;
	height: 40px;
	min-height: 0;
	transform: translateY(-50%);
	border-radius: calc(var(--nw-r) - 4px);
	color: var(--nw-muted);
}
body.nw-login .button.wp-hide-pw:hover, body.nw-login .button.wp-hide-pw:focus { color: var(--nw-ink); background: var(--nw-surface); box-shadow: none; border-color: transparent; }
body.nw-login .button.wp-hide-pw .dashicons { top: 0; width: 20px; height: 20px; font-size: 20px; }

/* Remember me + submit */
body.nw-login .forgetmenot { float: none; display: flex; align-items: center; margin: 4px 0 20px; }
body.nw-login .forgetmenot label { display: inline; margin: 0; font-weight: 500; color: var(--nw-ink-2); }
body.nw-login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	border: 1.5px solid #c3c8d2;
	border-radius: 5px;
	box-shadow: none;
}
body.nw-login input[type="checkbox"]:checked { background: var(--nw-accent); border-color: var(--nw-accent); }
body.nw-login input[type="checkbox"]:checked::before { filter: brightness(0) invert(1); margin: -2px 0 0 -2px; }
body.nw-login input[type="checkbox"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--nw-accent) 20%, transparent); outline: none; }

body.nw-login .submit { margin: 0; padding: 0; clear: both; }
body.nw-login .button-primary,
body.nw-login .submit .button,
body.nw-login #wp-submit {
	float: none;
	width: 100%;
	min-height: 52px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--nw-accent);
	box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--nw-accent) 80%, transparent);
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .01em;
	color: #fff;
	text-shadow: none;
	transition: filter .2s, transform .2s;
}
body.nw-login .button-primary:hover,
body.nw-login .button-primary:focus { background: var(--nw-accent); color: #fff; filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--nw-accent) 80%, transparent); }
body.nw-login .button-primary:focus { outline: 2px solid var(--nw-ink); outline-offset: 2px; }
body.nw-login .reset-pass-submit { display: flex; flex-direction: column-reverse; gap: 10px; }
body.nw-login .reset-pass-submit .button { width: 100%; min-height: 48px; border-radius: 999px; }
body.nw-login .reset-pass-submit .wp-generate-pw { background: var(--nw-surface); color: var(--nw-ink); border: 0; box-shadow: none; }
body.nw-login #pass-strength-result { margin: 10px 0 0; border-radius: 8px; width: 100%; box-sizing: border-box; }
body.nw-login .description.indicator-hint { font-size: 13px; color: var(--nw-muted); }

/* Sign up line, nav links */
.nw-login-signup { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--nw-line); text-align: center; font-size: 15px; color: var(--nw-ink-2); }
.nw-login-signup a { font-weight: 800; color: var(--nw-accent); text-decoration: none; }
.nw-login-signup a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.nw-login #nav,
body.nw-login #backtoblog { margin: 18px 0 0; padding: 0; text-align: center; font-size: 14px; color: var(--nw-muted); }
body.nw-login #backtoblog { margin-top: 10px; }
body.nw-login #nav a,
body.nw-login #backtoblog a { color: var(--nw-ink-2); font-weight: 600; text-decoration: none; }
body.nw-login #nav a:hover,
body.nw-login #backtoblog a:hover { color: var(--nw-accent); }
body.nw-login a:focus { box-shadow: none; outline: 2px solid var(--nw-accent); outline-offset: 2px; border-radius: 3px; }

/* Notices */
body.nw-login .message,
body.nw-login .notice,
body.nw-login #login_error,
body.nw-login .success {
	margin: 0 0 20px;
	padding: 13px 16px;
	border: 0;
	border-left: 4px solid var(--nw-accent);
	border-radius: 10px;
	background: var(--nw-surface);
	box-shadow: none;
	font-size: 14px;
	line-height: 1.5;
	color: var(--nw-ink);
}
body.nw-login #login_error, body.nw-login .notice-error { border-left-color: #d63638; background: #fdf1f1; }
body.nw-login .message, body.nw-login .success, body.nw-login .notice-success, body.nw-login .notice-info { border-left-color: #12a150; background: #effaf3; }

/* Footer bits */
body.nw-login .language-switcher { margin: 6px auto 0; padding: 0 24px 16px; }
body.nw-login .privacy-policy-page-link { margin: 6px 0 28px; text-align: center; }
body.nw-login .privacy-policy-page-link a { font-size: 13px; color: var(--nw-muted); }

/* ---------- Tablet & phone: panel becomes a header band ---------- */
@media (max-width: 960px) {
	body.nw-login { display: block; align-content: start; background: #fff; }
	.nw-login-aside {
		position: relative;
		height: auto;
		min-height: 0;
		padding: 26px 24px 30px;
		gap: 18px;
	}
	.nw-login-pitch h2 { font-size: 28px; margin-bottom: 10px; }
	.nw-login-pitch p { font-size: 15px; margin-bottom: 0; }
	.nw-login-plans, .nw-login-plans-link, .nw-login-aside-foot { display: none; }
	.nw-login-kicker { margin-bottom: 12px; }
	body.nw-login #login { padding-top: 34px; }
	body.nw-login #login > h1 { display: none; }
	.nw-login-brand { font-size: 24px; }
}
@media (max-width: 480px) {
	body.nw-login .nw-login-title { font-size: 28px; }
	.nw-login-pitch p { display: none; }
}

/* Layout + spacing refinements (higher specificity than WordPress core) */
@media (min-width: 961px) {
	body.nw-login:not(.interim-login) { grid-template-rows: 1fr auto auto; align-content: stretch; }
	body.nw-login:not(.interim-login) #login { grid-row: 1; align-self: center; padding: 48px 24px; }
	body.nw-login .language-switcher { grid-row: 2; }
	body.nw-login .privacy-policy-page-link { grid-row: 3; }
	.nw-login-aside { grid-row: 1 / -1; }
}
body.nw-login #login form > p,
body.nw-login #login form .user-pass-wrap { margin: 0 0 20px; }
body.nw-login #login form .forgetmenot { margin: 0 0 24px; }
body.nw-login #login form p.submit { margin: 0; }
body.nw-login #login form p.reset-pass-submit { margin-top: 8px; }

/* Brand icon */
.nw-login-brand .nw-brand-icon { width: 0.95em; height: 0.95em; margin-right: 0.28em; vertical-align: -0.12em; color: #fff; --nw-brand-glyph: #0f172a; }
