/* Punica Skills Center on the website pages frappe serves outside the portal:
   /login above all, also /update-password and the other www pages.
   Included through web_include_css in hooks.py.

   These pages use the same espresso tokens as the portal (the solid button is
   --surface-gray-10, text is --ink-gray-*), so this is the portal's design
   system cut down to what they render: the brand primitives, the strong
   surfaces re-pointed to the plum, the focus ring, and a branded login card.
   The full system lives in the lms fork, frontend/src/styles/punica/; keep the
   values here in step with its tokens.css. */

:root {
	--pom-50: #fdf2f6;
	--pom-100: #f7e6ec;
	--pom-600: #c70035;
	--pom-700: #a4002f;
	--pom-800: #7c0b34;
	--pom-900: #620b3e;
	--pom-950: #3d0725;
	--punica-pink: #f5339b;
	--punica-ink: #241019;
	--punica-paper: #f4f3f4;
	--brand-ring: #f5339b6b;
}

:root:not([data-theme='dark']) {
	--surface-gray-10: var(--pom-900);
	--surface-gray-9: var(--pom-800);
	--surface-gray-8: #8a1e5b;
	--ink-gray-9: var(--punica-ink);
	--ink-blue-link: var(--pom-700);
	--primary-color: var(--pom-900);
	--focus-default: 0px 0px 0px 2px var(--brand-ring);
	--focus-outline-default: 2px solid var(--brand-ring);
}

::selection {
	background: color-mix(in srgb, var(--punica-pink) 24%, transparent);
}

/* The login and password pages: the card on the website's paper, under the
   plum hero band, with the brand stripe along its top edge. */
body[data-path='login'],
body[data-path='update-password'] {
	background:
		radial-gradient(60rem 22rem at 70% -4rem, rgba(245, 51, 155, 0.22), transparent 70%),
		linear-gradient(160deg, #2c051b 0%, var(--pom-950) 30%, #55093a 70%, var(--pom-900) 100%)
			top / 100% 15rem no-repeat,
		var(--punica-paper);
	min-height: 100vh;
}

body[data-path='login'] .page-card,
body[data-path='update-password'] .page-card {
	position: relative;
	margin-top: 4.5rem;
	padding: 2rem 2rem 1.75rem;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 30px 70px -30px rgba(36, 16, 25, 0.45);
	overflow: hidden;
}

body[data-path='login'] .page-card::before,
body[data-path='update-password'] .page-card::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--punica-pink), var(--pom-600) 35%, var(--pom-900));
}

body[data-path='login'] .app-logo,
body[data-path='update-password'] .app-logo {
	width: 3.25rem;
	height: 3.25rem;
	object-fit: contain;
}

body[data-path='login'] .es-button[data-variant='solid'] {
	box-shadow: 0 10px 24px -12px rgba(98, 11, 62, 0.8);
}

body[data-path='login'] a:not(.es-button) {
	color: var(--pom-700);
}
