/* Classinar login gateway — choice of area (layout + brand panel: login-brand.css) */

/* ---------- choice ---------- */
.clg-box__mobile-logo { display: none; }

.clg-box h1 {
	margin: 0 0 6px;
	color: var(--clg-text);
	font-size: 26px;
	font-weight: 900;
}
.clg-box__lead { margin: 0 0 26px; color: var(--clg-muted); font-size: 14px; }

.clg-opt {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
	padding: 18px;
	color: inherit !important;
	text-decoration: none !important;
	background: var(--clg-surface);
	border: 1.5px solid var(--clg-border);
	border-radius: 18px;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.clg-opt:hover,
.clg-opt:focus-visible,
.clg-opt--owner.is-last { border-color: var(--clg-blue); box-shadow: 0 10px 30px rgba(23, 105, 224, .12); transform: translateY(-2px); outline: none; }
.clg-opt--learner:hover,
.clg-opt--learner:focus-visible,
.clg-opt--learner.is-last { border-color: var(--clg-rose); box-shadow: 0 10px 30px rgba(214, 60, 85, .12); }

.clg-opt__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	color: var(--clg-blue);
	background: var(--clg-blue-soft);
	border-radius: 16px;
}
.clg-opt--learner .clg-opt__icon { color: var(--clg-rose); background: var(--clg-rose-soft); }
.clg-opt__icon svg,
.clg-opt__chev svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clg-opt__icon svg { width: 27px; height: 27px; }

.clg-opt__text { flex: 1 1 auto; min-width: 0; }
.clg-opt__text b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 16.5px; font-weight: 800; }
.clg-opt__text small { display: block; overflow: hidden; color: var(--clg-muted); font-size: 12.8px; line-height: 1.85; white-space: nowrap; text-overflow: ellipsis; }
.clg-opt__text em {
	padding: 2px 8px;
	color: var(--clg-blue);
	background: var(--clg-blue-soft);
	border-radius: 99px;
	font-size: 10.5px;
	font-style: normal;
	font-weight: 700;
}
.clg-opt--learner .clg-opt__text em { color: var(--clg-rose); background: var(--clg-rose-soft); }

.clg-opt__chev { flex: 0 0 auto; color: #a3b0c6; transition: transform .2s, color .2s; }
.clg-opt__chev svg { display: block; width: 20px; height: 20px; }
.clg-opt:hover .clg-opt__chev { color: var(--clg-blue); transform: translateX(-3px); }
.clg-opt--learner:hover .clg-opt__chev { color: var(--clg-rose); }

.clg-foot { margin: 22px 0 0; color: var(--clg-muted); font-size: 12.8px; text-align: center; }
.clg-foot a { color: var(--clg-blue); font-weight: 700; text-decoration: none; }
.clg-foot span { margin: 0 4px; }
.clg-foot a { white-space: nowrap; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
	.clg-box__mobile-logo { display: block; margin-bottom: 22px; text-align: center; }
	.clg-box__mobile-logo img { height: 40px; width: auto; }
	.clg-box h1 { font-size: 22px; text-align: center; }
	.clg-box__lead { text-align: center; }
	.clg-opt { padding: 15px; gap: 12px; }
	.clg-opt__icon { width: 46px; height: 46px; border-radius: 14px; }
	.clg-opt__text b { font-size: 15px; }
	.clg-opt__text small { white-space: normal; }
	.clg-foot span { display: none; }
	.clg-foot a { display: inline-block; margin: 2px 6px; }
}

/* ---------- dark mode of the site ---------- */



/* ---------- single login page: one pane at a time ---------- */
.clg-u .clg-pane { display: none; width: 100%; }
.clg-u[data-clg-area="gateway"] [data-pane="gateway"],
.clg-u[data-clg-area="owner"] [data-pane="owner"],
.clg-u[data-clg-area="reset"] [data-pane="owner"],
.clg-u[data-clg-area="learner"] [data-pane="learner"] { display: flex; justify-content: center; animation: clgIn .25s ease; }
@keyframes clgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.clg-u .clg-pane > .clg-box { margin: 0 auto; }

/* brand copy follows the area */
.clg-brand .clg-brand__copy[data-for] { display: none; }
.clg-brand--gateway .clg-brand__copy[data-for="gateway"],
.clg-brand--owner .clg-brand__copy[data-for="owner"],
.clg-brand--learner .clg-brand__copy[data-for="learner"] { display: block; }
.clg-brand { transition: background .35s ease; }
@media (prefers-reduced-motion: reduce) { .clg-u .clg-pane { animation: none !important; } }

/* «آخرین ورود» never breaks into two lines; longer descriptions wrap instead of being cut */
.clg-opt__text b { flex-wrap: wrap; row-gap: 4px; }
.clg-opt__text em { flex: none; white-space: nowrap; line-height: 1.6; }
.clg-opt__text small { white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 420px) {
	.clg-opt__text b { font-size: 15px; }
	.clg-opt__text em { font-size: 10px; padding: 1px 7px; }
}
