/* The portal log-in (2026-09-28), after the WebMO SEO workspace log-in.
   The file to play with: every colour, size and radius is a token here,
   and nothing from the Launchpad theme loads on this page
   (portal/portal.php), so what is written here is what shows. */

:root {
	--pl-bg: #091525; /* the Generate screen's navy (2026-09-28) */
	--pl-card: #ffffff;
	--pl-card-radius: 36px;
	--pl-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 24px 60px rgba(0, 0, 0, 0.35);
	--pl-brand: #3a81c1;
	--pl-brand-hover: #2f6fa9;
	--pl-text: #0f172a;
	--pl-muted: #64748b;
	--pl-label: #8a94a6;
	--pl-field: #f4f6f9;
	--pl-field-focus: #eef3f9;
	--pl-placeholder: #c2c9d4;
	--pl-error: #c2413b;
	--pl-error-bg: #fdf1f0;
	--pl-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

.pl-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--pl-bg);
	color: var(--pl-text);
	font-family: var(--pl-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.pl-login {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 48px 16px 32px;
}

.pl-login__card {
	width: 100%;
	max-width: 448px;
	padding: 36px 36px 28px;
	background: var(--pl-card);
	border-radius: var(--pl-card-radius);
	box-shadow: var(--pl-card-shadow);
	text-align: center;
}

/* The full colour WebMO logo with its tagline, on the white card. */
.pl-login__logo {
	display: block;
	width: 200px;
	max-width: 70%;
	height: auto;
	margin: 0 auto 24px;
}

.pl-login__title {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.pl-login__title span {
	color: var(--pl-brand);
}

.pl-login__sub {
	margin: 10px 0 28px;
	color: var(--pl-muted);
	font-size: 16px;
}

.pl-login__notice,
.pl-login__error {
	margin: -12px 0 20px;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	text-align: left;
}

.pl-login__notice {
	background: var(--pl-field);
	color: var(--pl-muted);
}

.pl-login__notice a {
	color: var(--pl-brand);
	font-weight: 600;
}

.pl-login__error {
	background: var(--pl-error-bg);
	color: var(--pl-error);
	font-weight: 500;
}

.pl-login__form {
	text-align: left;
}

.pl-login__label {
	display: block;
	margin: 0 0 10px 4px;
	color: var(--pl-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.pl-login__field {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 22px;
	padding: 0 18px;
	background: var(--pl-field);
	border: 1px solid transparent;
	border-radius: 14px;
	transition: background 0.15s, border-color 0.15s;
}

.pl-login__field:focus-within {
	background: var(--pl-field-focus);
	border-color: rgba(58, 129, 193, 0.45);
}

.pl-login__field .pl-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--pl-label);
}

.pl-login__field input {
	flex: 1;
	min-width: 0;
	height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--pl-text);
	font: 500 16px/1 var(--pl-font);
	outline: none;
}

.pl-login__field input::placeholder {
	color: var(--pl-placeholder);
	font-weight: 500;
}

/* Remember me: a switch over the checkbox, which stays the real control. */
.pl-login__remember {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 26px 4px;
	cursor: pointer;
}

.pl-login__remember input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.pl-login__switch {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: #e3e8ef;
	transition: background 0.2s;
}

.pl-login__switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
	transition: transform 0.2s;
}

.pl-login__remember input:checked + .pl-login__switch {
	background: var(--pl-brand);
}

.pl-login__remember input:checked + .pl-login__switch::after {
	transform: translateX(18px);
}

.pl-login__remember input:focus-visible + .pl-login__switch {
	outline: 2px solid var(--pl-brand);
	outline-offset: 2px;
}

.pl-login__remember-text {
	color: var(--pl-label);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.pl-login__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	border: 0;
	border-radius: 20px;
	background: var(--pl-brand);
	color: #ffffff;
	font: 800 14px/1 var(--pl-font);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(58, 129, 193, 0.28);
	transition: background 0.15s, transform 0.15s;
}

.pl-login__button:hover {
	background: var(--pl-brand-hover);
}

.pl-login__button:active {
	transform: translateY(1px);
}

.pl-login__button:focus-visible {
	outline: 3px solid rgba(58, 129, 193, 0.4);
	outline-offset: 3px;
}

.pl-login__button .pl-icon {
	width: 20px;
	height: 20px;
}

.pl-login__lost {
	margin: 18px 0 0;
	font-size: 14px;
}

.pl-login__lost a {
	color: var(--pl-muted);
	text-decoration: none;
}

.pl-login__lost a:hover {
	color: var(--pl-brand);
}

.pl-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px 28px;
	color: var(--pl-label);
	font-size: 14px;
}

.pl-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
}

.pl-footer a {
	color: var(--pl-label);
	text-decoration: none;
}

.pl-footer a:hover {
	color: var(--pl-brand);
}

/* The local dev tool's button, when it shows (child dev/demo-login.php). */
.webmo-demo-login {
	width: 100%;
	max-width: 448px;
	margin: 20px auto 0;
	padding: 12px 16px 16px;
	border: 1px dashed #dba617;
	border-radius: 16px;
	background: #fcf9e8;
	text-align: left;
}

.webmo-demo-login form {
	margin: 0;
}

.webmo-demo-login__label {
	margin: 0 0 8px;
	color: #6b4e00;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.webmo-demo-login .button {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--pl-brand);
	border-radius: 12px;
	background: #ffffff;
	color: var(--pl-brand);
	font: 600 14px/1.2 var(--pl-font);
	cursor: pointer;
}

@media (max-width: 480px) {
	.pl-login__card {
		padding: 28px 22px 22px;
		border-radius: 28px;
	}

	.pl-footer {
		justify-content: center;
		text-align: center;
	}
}
