/* Shared layout of the Classinar login pages: brand panel (right) + content (left).
   Used by the gateway (/login/), the teachers' mobile login and the participants' login. */

.clg {
	--clg-text: #0f2457;
	--clg-muted: #6b7890;
	--clg-border: #e2e8f2;
	--clg-surface: #fff;
	--clg-page: #f4f7fb;
	--clg-blue: #1769e0;
	--clg-blue-soft: #edf4ff;
	--clg-rose: #d63c55;
	--clg-rose-soft: #fdeef1;

	display: grid;
	grid-template-columns: minmax(340px, 42%) 1fr;
	width: 100%;
	min-height: calc(100vh - 140px);
	font-family: inherit;
	color: var(--clg-text);
	background: var(--clg-page);
	box-sizing: border-box;
}

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

body.clg-standalone { margin: 0; padding: 0; background: #f4f7fb; }
.clg-standalone .clg { min-height: 100vh; min-height: 100dvh; }

/* ---------- brand panel ---------- */
.clg-brand {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: 48px 52px;
	color: #fff;
	background: radial-gradient(120% 80% at 100% 0%, #2a5bd7 0%, #0f2457 55%, #0a1838 100%);
}

.clg-brand__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	pointer-events: none;
}
.clg-brand__glow--1 { width: 420px; height: 420px; left: -140px; bottom: -150px; background: rgba(224, 74, 95, .35); }
.clg-brand__glow--2 { width: 300px; height: 300px; right: -80px; top: 30%; background: rgba(80, 140, 255, .25); }

.clg-brand__logo {
	position: relative;
	z-index: 1;
	align-self: flex-start;
	display: inline-flex;
	padding: 10px 16px;
	background: rgba(255, 255, 255, .96);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.clg-brand__logo img { display: block; height: 38px; width: auto; }

.clg-brand__copy { position: relative; z-index: 1; }
.clg-brand__copy h2 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 34px;
	font-weight: 900;
	line-height: 1.6;
}
.clg-brand__copy p {
	margin: 0;
	max-width: 380px;
	color: #c9d6f5;
	font-size: 14.5px;
	line-height: 2;
}

.clg-brand__stats {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, max-content));
	gap: 18px 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.clg-brand__stats b { display: block; font-size: 23px; font-weight: 900; line-height: 1.4; }
.clg-brand__stats span { color: #9fb3e6; font-size: 12px; white-space: nowrap; }

.clg-brand--learner { background: radial-gradient(120% 80% at 100% 0%, #c8405a 0%, #4a1630 52%, #1d0d1f 100%); }
.clg-brand--learner .clg-brand__glow--1 { background: rgba(80, 140, 255, .28); }
.clg-brand--learner .clg-brand__glow--2 { background: rgba(255, 140, 160, .25); }
.clg-brand--learner .clg-brand__copy p, .clg-brand--learner .clg-brand__stats span { color: #f1cdd5; }

.clg-main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 32px;
	min-width: 0;
}
.clg-box { width: 100%; max-width: 470px; }

/* logo inside the content: only on mobile (the brand panel has it on desktop) */
.clg-only-mobile { display: none !important; }

/* ---------- mobile: brand hero card + form card, centered ---------- */
.clg-l-short { display: none; }
@media (max-width: 860px) {
	.clg {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 18px 14px 26px;
		background:
			radial-gradient(90% 55% at 100% 0%, rgba(42, 91, 215, .20) 0%, transparent 70%),
			radial-gradient(80% 50% at 0% 100%, rgba(224, 74, 95, .14) 0%, transparent 70%),
			#eef2f9;
	}
	.clg--learner, .clg-u[data-clg-area="learner"] {
		background:
			radial-gradient(90% 55% at 100% 0%, rgba(200, 64, 90, .20) 0%, transparent 70%),
			radial-gradient(80% 50% at 0% 100%, rgba(42, 91, 215, .12) 0%, transparent 70%),
			#f5eff3;
	}
	.clg-brand {
		display: flex;
		gap: 14px;
		padding: 20px 20px 50px;
		border-radius: 24px 24px 0 0;
		box-shadow: 0 18px 40px rgba(15, 36, 87, .18);
	}
	.clg-brand__glow--1 { width: 240px; height: 240px; left: -90px; bottom: -110px; }
	.clg-brand__glow--2 { width: 180px; height: 180px; }
	.clg-brand__logo { padding: 7px 12px; border-radius: 12px; }
	.clg-brand__logo img { height: 28px; }
	.clg-brand__copy h2 { margin: 0; font-size: 18px; line-height: 1.7; }
	.clg-brand__copy h2 br { display: none; }
	.clg-brand__copy p { display: none; }
	.clg-brand__stats { display: none; }
	.clg-brand__stats li { padding: 8px 6px; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .10); border-radius: 12px; }
	.clg-brand__stats b { font-size: 16px; }
	.clg-brand__stats span { font-size: 10.5px; white-space: normal; }
	.clg-l-long { display: none; }
	.clg-l-short { display: block; }

	.clg-main { position: relative; z-index: 2; margin-top: -34px; padding: 0; align-items: flex-start; }
	.clg-box,
	.clg-u .clg-pane > .clg-box {
		max-width: none;
		padding: 22px 18px 20px;
		background: var(--clg-surface, #fff);
		border-radius: 24px;
		box-shadow: 0 14px 36px rgba(15, 36, 87, .10);
	}
	.clg-only-mobile,
	.clg-box__mobile-logo { display: none !important; }
}
@media (max-width: 860px) and (min-width: 520px) {
	.clg-brand, .clg-main { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
	.clg-main { margin-top: -34px; }
}
}

html[data-cui-theme="dark"] body.clg-standalone { background: #0b1220; }
html[data-cui-theme="dark"] .clg {
	--clg-text: #e7edf8;
	--clg-muted: #9aa8c2;
	--clg-border: #26324a;
	--clg-surface: #121b2e;
	--clg-page: #0b1220;
	--clg-blue-soft: rgba(23, 105, 224, .16);
	--clg-rose-soft: rgba(214, 60, 85, .16);
}

/* shared small parts */
.clg-help {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 18px;
	padding: 12px 14px;
	color: #5b4b9a;
	background: #f6f3ff;
	border-radius: 12px;
	font-size: 12.5px;
	line-height: 1.9;
}
.clg-help svg { width: 17px; height: 17px; margin-top: 3px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clg-help p { margin: 0; }

.clg-back { margin: 14px 0 0; font-size: 12.5px; text-align: center; }
.clg-back a { color: var(--clg-muted); font-weight: 500; text-decoration: none; }
.clg-back a:hover { color: var(--clg-blue); }
html[data-cui-theme="dark"] .clg-help { color: #c7bdf2; background: rgba(124, 99, 214, .14); }
