/*!
 * Modern Login Pages - login screen styles.
 * Layout is mobile first; the decorative branding panel is fixed on large screens.
 */

body.login {
	--mlp-surface: #ffffff;
	--mlp-border: #d8dee9;
	--mlp-muted: #5b6672;
	background-attachment: fixed;
	color: var(--mlp-text, #1f2933);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", sans-serif;
	margin: 0;
	min-height: 100vh;
	overflow-x: hidden;
	padding: 24px 16px 40px;
}

body.login,
body.login * {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- Branding */

.mlp-brand {
	border-radius: var(--mlp-radius, 18px);
	color: #fff;
	margin: 0 auto 20px;
	max-width: 480px;
	padding: 24px;
	text-align: center;
}

.mlp-brand__inner {
	margin: 0 auto;
	max-width: 420px;
}

.mlp-brand__logo {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	display: block;
	height: 96px;
	margin: 0 auto 18px;
	max-width: 100%;
	width: 220px;
}

.mlp-brand__title {
	color: #fff;
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 8px;
}

.mlp-brand__text,
.mlp-brand__support {
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	line-height: 1.55;
	margin: 0 0 6px;
}

/* ------------------------------------------------------------------- Card */

#login {
	background: var(--mlp-surface);
	border-radius: var(--mlp-radius, 18px);
	box-shadow: var(--mlp-shadow, 0 24px 60px rgba(15, 23, 42, 0.16));
	margin: 0 auto;
	max-width: 460px;
	padding: 28px 22px 24px;
	width: 100%;
}

.login h1 {
	margin: 0;
}

.login h1 a {
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	height: 56px;
	margin: 0 auto 18px;
	width: 180px;
	max-width: 100%;
	text-indent: -9999em;
	overflow: hidden;
}

.login form {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.login form .forgetmenot,
.login form .submit {
	float: none;
}

.mlp-form-heading {
	margin: 0 0 18px;
	order: -3;
	text-align: center;
}

.mlp-form-heading h2 {
	font-size: 22px;
	font-weight: 650;
	line-height: 1.25;
	margin: 0 0 6px;
}

.mlp-form-heading p {
	color: var(--mlp-muted);
	font-size: 14px;
	margin: 0;
}

.login label {
	color: var(--mlp-text, #1f2933);
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

.login input[type="text"],
.login input[type="email"],
.login input[type="password"],
.login .input,
.login input[type="text"].input {
	background: #f8fafc;
	border: 1px solid var(--mlp-border);
	border-radius: 10px;
	box-shadow: none;
	color: var(--mlp-text, #1f2933);
	font-size: 16px;
	margin: 0 0 16px;
	min-height: 46px;
	padding: 10px 14px;
	width: 100%;
}

.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus,
.login .input:focus {
	background: #fff;
	border-color: var(--mlp-accent, #667eea);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
	outline: 2px solid transparent;
	outline-offset: 2px;
}

.login .user-pass-wrap {
	position: relative;
}

.login .wp-pwd {
	position: relative;
}

.login .button.wp-hide-pw,
.mlp-toggle-pw {
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--mlp-muted);
	cursor: pointer;
	height: 40px;
	line-height: 1;
	position: absolute;
	right: 4px;
	top: 3px;
	width: 42px;
}

.login .button.wp-hide-pw:focus-visible,
.mlp-toggle-pw:focus-visible,
.login a:focus-visible,
.login input:focus-visible,
.mlp-ms-button:focus-visible {
	outline: 3px solid var(--mlp-accent, #667eea);
	outline-offset: 2px;
}

.login .forgetmenot {
	margin: 0 0 14px;
}

.login .forgetmenot label {
	align-items: center;
	display: flex;
	font-weight: 400;
	gap: 8px;
	margin: 0;
}

.login input[type="checkbox"] {
	height: 20px;
	min-width: 20px;
	width: 20px;
}

.login .submit {
	margin: 0;
}

.login input[type="submit"],
.login .button-primary {
	background: var(--mlp-button, #667eea);
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	float: none;
	font-size: 16px;
	font-weight: 600;
	min-height: 48px;
	text-shadow: none;
	width: 100%;
}

.login input[type="submit"]:hover,
.login .button-primary:hover {
	background: var(--mlp-button-hover, #5a67d8);
}

.login input[type="submit"]:disabled,
.login .button-primary:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

/* -------------------------------------------------------- Microsoft button */

.mlp-sso {
	margin: 18px 0 0;
	order: 3;
}

.mlp-sso--above {
	margin: 0 0 18px;
	order: -2;
}

.mlp-divider {
	color: var(--mlp-muted);
	display: flex;
	align-items: center;
	font-size: 13px;
	gap: 12px;
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mlp-divider::before,
.mlp-divider::after {
	background: var(--mlp-border);
	content: "";
	flex: 1 1 auto;
	height: 1px;
}

.mlp-ms-button {
	align-items: center;
	background: #fff;
	border: 1px solid #8c8c8c;
	border-radius: 10px;
	color: #1b1b1b;
	display: flex;
	font-size: 15px;
	font-weight: 600;
	gap: 10px;
	justify-content: center;
	min-height: 48px;
	padding: 10px 14px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
	width: 100%;
}

.mlp-ms-button:hover {
	background: #f3f3f3;
	border-color: #5b5b5b;
	color: #1b1b1b;
}

.mlp-ms-button.is-loading,
.mlp-ms-button[aria-disabled="true"] {
	cursor: progress;
	opacity: 0.75;
	pointer-events: none;
}

.mlp-ms-button__icon {
	display: block;
	flex: 0 0 auto;
	height: 20px;
	width: 20px;
}

/* ------------------------------------------------------------- Notices/nav */

.mlp-notice,
.login .message,
.login .notice,
.login #login_error,
.login .success {
	border: 0;
	border-left: 4px solid var(--mlp-accent, #667eea);
	border-radius: 10px;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.55;
	margin: 0 0 18px;
	padding: 14px 16px;
	word-wrap: break-word;
}

.mlp-notice--info,
.login .message {
	background: #eef2ff;
	color: #33409e;
}

.mlp-notice--error,
.login #login_error {
	background: #fef2f2;
	border-left-color: #dc2626;
	color: #b91c1c;
}

.login #nav,
.login #backtoblog {
	margin: 14px 0 0;
	padding: 0;
	text-align: center;
}

.login #nav a,
.login #backtoblog a,
.mlp-footer a {
	color: var(--mlp-muted);
	font-size: 14px;
	text-decoration: none;
}

.login #nav a:hover,
.login #backtoblog a:hover,
.mlp-footer a:hover {
	color: var(--mlp-accent, #667eea);
	text-decoration: underline;
}

.mlp-ms-reset {
	margin: 14px 0 0;
	order: 4;
	text-align: center;
}

.mlp-ms-reset .mlp-hint {
	color: var(--mlp-muted);
	display: block;
	font-size: 12px;
	margin-top: 4px;
}

.mlp-footer {
	color: rgba(255, 255, 255, 0.92);
	margin: 20px auto 0;
	max-width: 460px;
	text-align: center;
}

.mlp-footer a {
	color: inherit;
}

.mlp-footer__text,
.mlp-footer__links {
	font-size: 13px;
	margin: 4px 0;
}

.login .privacy-policy-page-link,
.login .language-switcher {
	margin: 16px auto 0;
	max-width: 460px;
	text-align: center;
}

.login .language-switcher select {
	max-width: 100%;
}

body.login .clear {
	clear: both;
}

/* --------------------------------------------------------------- Responsive */

@media screen and (min-width: 782px) {
	#login {
		padding: 34px 32px 28px;
	}
}

@media screen and (min-width: 1024px) {
	body.login.mlp-has-brand {
		padding-left: calc(46vw + 24px);
	}

	body.login.mlp-has-brand .mlp-brand {
		align-items: center;
		background: linear-gradient(160deg, var(--mlp-gradient-start, #667eea), var(--mlp-gradient-end, #764ba2));
		border-radius: 0;
		bottom: 0;
		display: flex;
		left: 0;
		margin: 0;
		max-width: none;
		padding: 48px;
		position: fixed;
		text-align: left;
		top: 0;
		width: 46vw;
	}

	body.login.mlp-has-brand .mlp-brand__logo {
		height: 84px;
		margin-left: 0;
		width: 240px;
	}

	body.login.mlp-has-brand .mlp-brand__title {
		font-size: 34px;
	}

	body.login {
		align-items: center;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

@media screen and (max-width: 400px) {
	body.login {
		padding: 16px 12px 28px;
	}

	#login {
		padding: 22px 16px 20px;
	}

	.mlp-brand__logo {
		height: 54px;
		width: 150px;
	}

	.mlp-form-heading h2 {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.login *,
	body.login *::before,
	body.login *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}

@media (prefers-contrast: more) {
	.login input[type="text"],
	.login input[type="email"],
	.login input[type="password"] {
		border-color: #333;
	}
}

/* ------------------------------------------------------- Premium refinement */

body.login {
	-webkit-font-smoothing: antialiased;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	padding: max(20px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

.mlp-brand {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
	border: 1px solid rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	overflow: hidden;
	position: relative;
}

.mlp-brand::before,
.mlp-brand::after {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	content: "";
	pointer-events: none;
	position: absolute;
}

.mlp-brand::before {
	height: 280px;
	right: -90px;
	top: -110px;
	width: 280px;
}

.mlp-brand::after {
	bottom: -120px;
	height: 320px;
	left: -100px;
	width: 320px;
	background: rgba(255, 255, 255, 0.08);
}

.mlp-brand__inner {
	position: relative;
	z-index: 1;
}

.mlp-brand__title {
	font-weight: 700;
	letter-spacing: -0.02em;
}

.mlp-brand__support {
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	margin-top: 18px;
	padding-top: 14px;
}

#login {
	animation: mlp-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: var(--mlp-shadow, 0 24px 60px rgba(15, 23, 42, 0.16)), 0 2px 6px rgba(15, 23, 42, 0.05);
}

@keyframes mlp-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.mlp-form-heading h2 {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.login label {
	color: #334155;
	font-size: 13px;
	letter-spacing: 0.01em;
}

.login input[type="text"],
.login input[type="email"],
.login input[type="password"],
.login .input {
	border-radius: 12px;
	min-height: 50px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login input[type="submit"],
.login .button-primary {
	background: linear-gradient(135deg, var(--mlp-button, #667eea), var(--mlp-button-hover, #5a67d8));
	border-radius: 12px;
	box-shadow: 0 8px 18px -6px rgba(15, 23, 42, 0.35);
	min-height: 52px;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login input[type="submit"]:hover,
.login .button-primary:hover {
	background: linear-gradient(135deg, var(--mlp-button-hover, #5a67d8), var(--mlp-button, #667eea));
	box-shadow: 0 12px 22px -8px rgba(15, 23, 42, 0.45);
	transform: translateY(-1px);
}

.login input[type="submit"]:active,
.login .button-primary:active {
	transform: none;
}

.mlp-ms-button {
	border: 1px solid var(--mlp-border);
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
	min-height: 52px;
}

.mlp-ms-button:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.mlp-notice,
.login .message,
.login .notice,
.login #login_error,
.login .success {
	border-radius: 12px;
}

.mlp-footer {
	text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

@media screen and (min-width: 1024px) {
	body.login.mlp-has-brand {
		background: #f6f7fb !important;
	}

	body.login.mlp-has-brand .mlp-brand {
		background: linear-gradient(160deg, var(--mlp-gradient-start, #667eea), var(--mlp-gradient-end, #764ba2));
		border: 0;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		padding: 64px;
	}

	body.login.mlp-has-brand .mlp-brand__title {
		font-size: 40px;
		line-height: 1.15;
	}

	body.login.mlp-has-brand .mlp-brand__text {
		font-size: 17px;
	}

	body.login.mlp-has-brand #login {
		max-width: 440px;
		padding: 44px 40px 34px;
	}

	body.login.mlp-has-brand .mlp-footer,
	body.login.mlp-has-brand .mlp-footer a {
		color: var(--mlp-muted);
		text-shadow: none;
	}
}

@media screen and (max-width: 480px) {
	body.login {
		padding-left: 12px;
		padding-right: 12px;
	}

	.mlp-brand {
		margin-bottom: 14px;
		padding: 18px 16px;
	}

	.mlp-brand__text,
	.mlp-brand__support {
		font-size: 14px;
	}

	.mlp-form-heading h2 {
		font-size: 21px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#login {
		animation: none;
	}
}
