/**
 * Massing SSO — branded sign-in buttons + connected-accounts panel.
 * Works on wp-login, the WooCommerce account form, and via shortcode.
 */

.massing-sso {
	max-width: 360px;
	margin: 0 auto 18px;
}

.massing-sso__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.massing-sso__btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 16px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: #1c1f26;
	color: #f4f6fb;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: transform .06s ease, border-color .15s ease, background .15s ease;
}

.massing-sso__btn:hover,
.massing-sso__btn:focus {
	background: #232733;
	border-color: rgba(255, 255, 255, 0.28);
	color: #fff;
	transform: translateY(-1px);
}

.massing-sso__btn:active {
	transform: translateY(0);
}

.massing-sso__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	background: #fff;
	border-radius: 5px;
}

/* Providers with their own colored chip don't need the white tile. */
.massing-sso__btn--procore .massing-sso__ico,
.massing-sso__btn--autodesk .massing-sso__ico {
	background: transparent;
}

.massing-sso__label {
	flex: 1 1 auto;
}

.massing-sso__or {
	position: relative;
	text-align: center;
	margin: 16px 0 4px;
}

.massing-sso__or::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(128, 128, 128, 0.35);
}

.massing-sso__or span {
	position: relative;
	padding: 0 12px;
	background: inherit;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #8a93a6;
}

/* Light surfaces (default wp-login is light) — soften the dark buttons. */
@media (prefers-color-scheme: light) {
	body.login .massing-sso__btn {
		background: #fff;
		color: #1c1f26;
		border-color: rgba(0, 0, 0, 0.16);
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	}
	body.login .massing-sso__btn:hover {
		background: #f6f8fc;
		border-color: rgba(0, 0, 0, 0.28);
		color: #000;
	}
	body.login .massing-sso__ico {
		background: transparent;
	}
}

/* The WooCommerce My Account page is a light (white) surface in this theme —
   render the SSO buttons as clean outlined/white buttons there (login.css, which
   restyles the dark wp-login page, does not load on the front end). */
.woocommerce-account .massing-sso__btn {
	background: #fff;
	color: #1c1f26;
	border-color: rgba(0, 0, 0, 0.16);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.woocommerce-account .massing-sso__btn:hover,
.woocommerce-account .massing-sso__btn:focus {
	background: #f6f8fc;
	border-color: rgba(0, 0, 0, 0.28);
	color: #000;
}

.woocommerce-account .massing-sso__ico {
	background: transparent;
}

/* ── Connected-accounts panel ─────────────────────────────────────────── */

.massing-sso-identity {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.massing-sso-identity img {
	border-radius: 50%;
}

.massing-sso-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(128, 128, 128, 0.25);
	border-radius: 10px;
	overflow: hidden;
}

.massing-sso-list__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-top: 1px solid rgba(128, 128, 128, 0.18);
}

.massing-sso-list__row:first-child {
	border-top: 0;
}

.massing-sso-list__ico {
	display: inline-flex;
	width: 22px;
	height: 22px;
}

.massing-sso-list__name {
	font-weight: 600;
}

.massing-sso-list__email {
	color: #8a93a6;
	font-size: 13px;
	margin-left: auto;
}

.massing-sso-list__action {
	margin-left: 12px;
}

.massing-sso-list__email + .massing-sso-list__action {
	margin-left: 12px;
}
