/**
 * Massing SSO — full rebrand of the wp-login.php screen.
 * Loads only on the login page (after sso.css). Replaces the WordPress logo
 * with the Massing mark + wordmark and applies the dark Massing identity.
 * Palette: cyan #2DE2E6 · blue #5B8CFF · violet #B14CFF · ink #0B1126 · void #070A18.
 */

body.login {
	background-color: #070A18;
	background-image:
		radial-gradient(1200px 620px at 50% -12%, rgba(91, 140, 255, 0.20), transparent 60%),
		radial-gradient(900px 520px at 100% 108%, rgba(177, 76, 255, 0.14), transparent 60%),
		linear-gradient(180deg, #070A18 0%, #0B1126 100%);
	background-repeat: no-repeat;
	background-attachment: fixed;
	color: #EAF2FF;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── Logo + wordmark ──────────────────────────────────────────────────── */

#login {
	width: 340px;
	padding-top: 5%;
}

#login h1 {
	position: relative;
}

#login h1 a {
	background-image: url(../images/massing-mark.svg);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	width: 92px;
	height: 92px;
	border-radius: 22px;
	box-shadow: 0 14px 40px rgba(91, 140, 255, 0.28);
}

#login h1::after {
	content: "MASSING";
	display: block;
	text-align: center;
	margin-top: 10px;
	font-family: 'Space Grotesk', 'Inter', -apple-system, "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 0.20em;
	text-indent: 0.20em;
	color: #5B8CFF; /* fallback where background-clip:text is unsupported */
	background: linear-gradient(100deg, #2DE2E6, #5B8CFF, #B14CFF);
	-webkit-background-clip: text;
	background-clip: text;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	#login h1::after {
		color: transparent;
		-webkit-text-fill-color: transparent;
	}
}

/* ── Card + form ──────────────────────────────────────────────────────── */

.login form {
	background: rgba(11, 17, 38, 0.72);
	border: 1px solid rgba(91, 140, 255, 0.22);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(3, 6, 18, 0.55);
	color: #EAF2FF;
	backdrop-filter: blur(6px);
}

.login label {
	color: #AEB9D6;
	font-size: 14px;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"],
.login input[type="number"],
.login input[type="tel"] {
	background: #0E1430;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 10px;
	color: #EAF2FF;
	box-shadow: none;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus,
.login input[type="number"]:focus,
.login input[type="tel"]:focus {
	border-color: #2DE2E6;
	box-shadow: 0 0 0 2px rgba(45, 226, 230, 0.28);
	outline: none;
}

.login .password-input-wrapper .button.wp-hide-pw {
	color: #AEB9D6;
}

.login .password-input-wrapper .button.wp-hide-pw:hover {
	color: #2DE2E6;
}

.login .forgetmenot label {
	color: #AEB9D6;
}

/* ── Primary button (brand gradient) ──────────────────────────────────── */

.wp-core-ui .button-primary,
.login .button-primary {
	background: linear-gradient(100deg, #2DE2E6, #5B8CFF, #B14CFF);
	border: 0;
	border-radius: 10px;
	color: #041027;
	font-weight: 700;
	text-shadow: none;
	box-shadow: 0 8px 20px rgba(91, 140, 255, 0.35);
	transition: filter .15s ease, transform .06s ease;
}

.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus,
.login .button-primary:hover {
	filter: brightness(1.06);
	color: #041027;
	box-shadow: 0 10px 24px rgba(91, 140, 255, 0.45);
}

.wp-core-ui .button-primary:active {
	transform: translateY(1px);
}

/* ── Links + notices ──────────────────────────────────────────────────── */

.login #nav a,
.login #backtoblog a {
	color: #AEB9D6;
}

.login #nav a:hover,
.login #backtoblog a:hover {
	color: #2DE2E6;
}

.login .message,
.login .success {
	background: #0E1430;
	border-left-color: #2DE2E6;
	color: #EAF2FF;
	box-shadow: 0 2px 10px rgba(3, 6, 18, 0.4);
}

.login #login_error {
	background: #0E1430;
	border-left-color: #B14CFF;
	color: #EAF2FF;
	box-shadow: 0 2px 10px rgba(3, 6, 18, 0.4);
}

.login .privacy-policy-page-link a,
.login .language-switcher label {
	color: #8a93a6;
}

/* ── Keep SSO buttons dark on the branded page regardless of OS scheme ── */

body.login .massing-sso__btn {
	background: #0E1430;
	color: #EAF2FF;
	border-color: rgba(255, 255, 255, 0.14);
	box-shadow: none;
}

body.login .massing-sso__btn:hover,
body.login .massing-sso__btn:focus {
	background: #141B3A;
	color: #fff;
	border-color: rgba(45, 226, 230, 0.5);
}

body.login .massing-sso__ico {
	background: #fff;
}

body.login .massing-sso__btn--procore .massing-sso__ico,
body.login .massing-sso__btn--autodesk .massing-sso__ico {
	background: transparent;
}

body.login .massing-sso__or span {
	background: transparent;
	color: #8a93a6;
}

/* ── Small screens ────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	#login {
		width: auto;
		max-width: 340px;
		padding: 24px 16px 0;
	}
	#login h1 a {
		width: 76px;
		height: 76px;
	}
	#login h1::after {
		font-size: 19px;
	}
	.login form {
		border-radius: 14px;
	}
}
