/*
 * LMSable Academy 1.10.0 - sign in, forgot password and set new password
 * screens of the ms-root auth panel (/login/, /login/lost-password,
 * /login/reset). Loaded only there, through the spoti_auth_login_head hook.
 * Every rule is scoped to html.lmsa-auth (set by LMSA_Auth_Page), so the
 * ms-root look on other screens and on other sites does not change.
 * Shared pattern with the register page (assets/css/register.css): logo in
 * the top-left corner, 48px fields and buttons, placeholders hidden on focus,
 * divider + question + link at the bottom of the card.
 */

/* ---- Logo: centered above the card on every width (moved out of the card by the inline script) ---- */
html.lmsa-auth body.auth-body {
	flex-direction: column;
}
html.lmsa-auth body.auth-body > .auth-logo.lmsa-auth-logo {
	position: relative;
	top: auto;
	left: auto;
	align-self: center;
	min-width: 0;
	margin: 0 0 28px;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	transform: none;
}

/* ---- Brand lockup (1.10.1): mark + LMSable + Academy, light on the dark background ---- */
html.lmsa-auth body.auth-body .lmsa-brand {
	display: inline-flex !important;
	align-items: center;
	gap: 12px;
	text-decoration: none !important;
	color: #fff !important;
	line-height: 1;
	border-radius: 12px;
}
html.lmsa-auth body.auth-body .lmsa-brand:focus-visible {
	outline: 3px solid rgba(247, 148, 29, 0.6);
	outline-offset: 6px;
}
html.lmsa-auth body.auth-body .lmsa-brand__mark {
	display: block;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	filter: drop-shadow(0 4px 12px rgba(247, 148, 29, 0.35));
}
html.lmsa-auth body.auth-body .lmsa-brand__word {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #fff;
}
html.lmsa-auth body.auth-body .lmsa-brand__able {
	color: #f7941d;
}
html.lmsa-auth body.auth-body .lmsa-brand__sub {
	align-self: center;
	margin-left: 2px;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.28);
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

/* ---- Card: no logo tab any more, so less space on top ---- */
html.lmsa-auth body.auth-body .auth-card {
	padding: 36px 40px 28px;
}

/* ---- Fields: 48px, placeholder disappears on focus ---- */
html.lmsa-auth body.auth-body .field__input {
	height: 48px;
}
html.lmsa-auth body.auth-body .field__input:focus::placeholder {
	color: transparent;
}
html.lmsa-auth body.auth-body .field__input:focus::-webkit-input-placeholder {
	color: transparent;
}
html.lmsa-auth body.auth-body .field__input:focus::-moz-placeholder {
	color: transparent;
	opacity: 0;
}

/* ---- Buttons: 48px; primary keeps the ms-root orange glow ---- */
html.lmsa-auth body.auth-body .btn {
	height: 48px;
}

/* ---- "Email me a sign-in link": normal secondary look, also while ms-root marks it .is-disabled ---- */
html.lmsa-auth body.auth-body .btn--magic,
html.lmsa-auth body.auth-body .btn--magic.is-disabled {
	opacity: 1;
	cursor: pointer;
	color: var(--accent-strong);
	background: #fff;
	border: 1px solid var(--accent);
}
html.lmsa-auth body.auth-body .btn--magic .fa-icon {
	color: var(--accent-strong);
}
html.lmsa-auth body.auth-body .btn--magic:hover,
html.lmsa-auth body.auth-body .btn--magic.is-disabled:hover {
	background: color-mix(in srgb, var(--accent) 8%, #fff);
	border-color: var(--accent-strong);
}

/* ---- Bottom row: divider, question + orange link ---- */
html.lmsa-auth body.auth-body #spoti-login-view > .auth-foot--register,
html.lmsa-auth body.auth-body #spoti-lostpass-view > .auth-foot {
	display: block;
	margin: 24px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--border);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	color: var(--text-muted);
}
html.lmsa-auth body.auth-body #spoti-login-view > .auth-foot--register .link,
html.lmsa-auth body.auth-body #spoti-lostpass-view > .auth-foot .link {
	display: inline;
	font-size: 15px;
	font-weight: 600;
}

/* ---- Phone ---- */
@media (max-width: 600px) {
	html.lmsa-auth body.auth-body {
		justify-content: flex-start;
		padding-top: 24px;
		padding-left: 16px;
		padding-right: 16px;
	}
	html.lmsa-auth body.auth-body .auth-card {
		padding: 28px 20px 24px;
		border-radius: 16px;
	}
	/* "Remember me" and "Forgot your password?" each on one line. */
	html.lmsa-auth body.auth-body #spoti-login-form .auth-row {
		flex-wrap: wrap; /* only on very narrow screens: then the link goes below, still on one line */
		gap: 8px;
	}
	html.lmsa-auth body.auth-body #spoti-login-form .auth-row .checkbox,
	html.lmsa-auth body.auth-body #spoti-login-form .auth-row .link {
		font-size: 13.5px;
		white-space: nowrap;
	}
}

/* ---- 1.17.9: "Need an academy like this for your team?" below the card (sign-in screen only) ---- */
html.lmsa-auth--login body.auth-body .lmsa-auth-oa {
	box-sizing: border-box;
	margin: 0 auto 4px; /* 1.17.10: first line inside the fixed .auth-page-foot */
	padding: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.8);
}
html.lmsa-auth--login body.auth-body .lmsa-auth-oa a {
	color: #fff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
html.lmsa-auth--login body.auth-body .lmsa-auth-oa a:hover {
	color: #f7941d;
}
/* Not during the 2FA steps of the same page. */
html.lmsa-auth--login body.auth-body:has(#spoti-login-view[hidden]) > .lmsa-auth-oa {
	display: none;
}
/* 1.17.10: on the sign-in screen the ms-root footer flows below the card instead of being fixed over it. */
html.lmsa-auth--login body.auth-body .auth-page-foot {
	position: static;
	margin-top: auto;
	padding-top: 24px;
}
html.lmsa-auth--login body.auth-body {
	padding-bottom: 0;
}
