/* ورود شرکت کنندگان — هم ساختار با صفحه ورود مدرسان، با رنگ قرمز ملایم */

.cll {
	--cll-rose: #d64b63;
	--cll-rose-dark: #b83a51;
	--cll-rose-soft: #fdf1f3;
	--cll-rose-line: #f8dbe1;
	--cll-blue: #1769e0;
	--cll-blue-dark: #0f4fb5;
	--cll-blue-soft: #edf4ff;
	--cll-blue-line: #d9e7ff;
	--cll-text: #0f2457;
	--cll-muted: #6b7890;
	--cll-border: #e3e9f2;

	/* اجزای مشترک پنل (دکمه، ورودی، تب) در این صفحه رنگ قرمز می گیرند */
	--cui-blue-600: #d64b63;
	--cui-blue-700: #b83a51;
	--cui-blue-soft: #fdf1f3;

	/* layout and brand panel: login-gateway/assets/login-brand.css (same as /login/) */
	--clg-blue: #d64b63;
	color: var(--cll-text);
	direction: rtl;
	font-family: inherit;
}
.cll.clg { min-height: 100vh; min-height: 100dvh; }
.cll .clg-help a { color: #1769e0; font-weight: 700; text-decoration: none; }

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

.cll svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* پس زمینه متحرک با حباب های قرمز */
.cll__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.cll-blob {
	--c: 214, 75, 99;
	position: absolute;
	width: var(--s, 46vmax);
	height: var(--s, 46vmax);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(var(--c), .42) 0%, rgba(var(--c), .2) 35%, rgba(var(--c), 0) 68%);
	will-change: transform;
	animation: cllFloat var(--d, 22s) ease-in-out var(--delay, 0s) infinite alternate;
}

.cll-blob--1 { --s: 50vmax; top: -16vmax; right: -10vmax; --d: 20s; }
.cll-blob--2 { --s: 42vmax; bottom: -16vmax; left: -10vmax; --c: 23, 105, 224; --d: 25s; --delay: -7s; animation-name: cllFloat2; opacity: .75; }
.cll-blob--3 { --s: 26vmax; top: 10%; left: 12%; --c: 236, 120, 140; --d: 28s; --delay: -12s; animation-name: cllFloat2; opacity: .6; }
.cll-blob--4 { --s: 24vmax; bottom: 4%; right: 22%; --c: 64, 72, 170; --d: 24s; --delay: -4s; opacity: .4; }

.cll__grain {
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(87, 15, 36, .07) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

@keyframes cllFloat {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(-20vw, 14vh, 0) scale(1.12); }
	100% { transform: translate3d(-6vw, 30vh, 0) scale(.92); }
}

@keyframes cllFloat2 {
	0% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(20vw, -16vh, 0) scale(.9); }
	100% { transform: translate3d(8vw, -30vh, 0) scale(1.1); }
}

/* کارت */
.cll__wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
}

.cll-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	overflow: hidden;
	background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 24px;
	box-shadow: 0 1px 2px rgba(87, 15, 36, .04), 0 22px 54px rgba(87, 15, 36, .1);
}

.cll-card::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 0;
	z-index: 2;
	height: 4px;
	background: var(--cll-rose);
}

.cll-card__form {
	padding: 30px 40px 32px;
}

.cll-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.cll-top__logo {
	display: block;
	width: auto;
	height: 40px;
}

.cll-top__back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	color: var(--cll-muted);
	background: rgba(255, 255, 255, .7);
	border: 1px solid var(--cll-border);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: color .2s ease, border-color .2s ease;
}

.cll-top__back svg {
	width: 15px;
	height: 15px;
}

.cll-top__back:hover {
	color: var(--cll-rose);
	border-color: var(--cll-rose-line);
}

.cll-head {
	margin-bottom: 20px;
}

.cll-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	padding: 5px 12px 5px 13px;
	color: var(--cll-rose-dark);
	background: var(--cll-rose-soft);
	border: 1px solid var(--cll-rose-line);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.6;
}

.cll-pill svg {
	width: 16px;
	height: 16px;
}

.cll-head h1 {
	margin: 0 0 4px;
	color: var(--cll-text);
	font-size: 23px;
	font-weight: 900;
	line-height: 1.6;
}

.cll-head p {
	margin: 0;
	color: var(--cll-muted);
	font-size: 13px;
	line-height: 1.9;
}

/* تب ها */
.classinar-auth-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 18px;
	padding: 5px;
	background: rgba(248, 250, 253, .9);
	border: 1px solid var(--cll-border);
	border-radius: 14px;
}

.classinar-auth-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 42px;
	padding: 8px 12px;
	color: var(--cll-muted);
	background: transparent;
	border: 0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 900;
	cursor: pointer;
	transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.classinar-auth-tab:hover {
	color: var(--cll-rose-dark);
}

.classinar-auth-tab.is-active {
	color: var(--cll-rose-dark);
	background: #fff;
	box-shadow: 0 4px 14px rgba(87, 15, 36, .08);
}

.classinar-auth-panel {
	animation: classinarAuthIn .16s ease both;
}

/* پیام ها */
.classinar-auth-alert {
	margin-bottom: 16px;
	border-radius: 14px;
}

.classinar-auth-alert[hidden] {
	display: none !important;
}

.classinar-auth-switch {
	display: inline-block;
	margin-top: 6px;
	color: var(--cll-blue);
	font-weight: 900;
}

.classinar-auth-note {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-bottom: 16px;
	padding: 12px 14px;
	color: var(--cll-muted);
	background: rgba(248, 250, 253, .9);
	border: 1px solid var(--cll-border);
	border-radius: 14px;
	font-size: 12px;
	line-height: 1.9;
}

.classinar-auth-note > i {
	margin-top: 5px;
	color: var(--cll-rose);
}

.classinar-auth-note p,
.classinar-auth-note strong {
	margin: 0;
}

.classinar-auth-note--success > i {
	color: var(--cui-green-600, #0b9b6f);
}

/* فیلدها */
.cll .cui-field {
	margin-bottom: 16px;
}

.cll .cui-field label {
	display: block;
	margin-bottom: 7px;
	color: var(--cll-text);
	font-size: 12.5px;
	font-weight: 700;
}

.cll .cui-input {
	height: 50px;
	padding-inline: 48px;
	background: rgba(248, 250, 253, .9);
	border-color: #d8e1ed;
	border-radius: 14px;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
}

.cll .cui-input::placeholder {
	font-size: 13px;
	font-weight: 400;
}

.cll .cui-input:focus {
	background: #fff;
	border-color: rgba(214, 75, 99, .5);
	box-shadow: 0 0 0 4px rgba(214, 75, 99, .1);
}

.cll .cui-control__icon {
	color: var(--cll-rose);
}

.cll .cui-field__help {
	display: block;
	margin-top: 6px;
	color: var(--cll-muted);
	font-size: 11.5px;
	line-height: 1.9;
}

.classinar-auth-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 7px;
}

.classinar-auth-label-row label {
	margin-bottom: 0 !important;
}

.classinar-auth-link-button {
	padding: 0;
	color: var(--cll-rose);
	background: transparent;
	border: 0;
	font-family: inherit;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.classinar-auth-link-button:hover {
	text-decoration: underline;
}

.classinar-auth-password-control {
	position: relative;
}

.classinar-auth-password-toggle {
	position: absolute;
	left: 8px;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: #8a96aa;
	background: transparent;
	border: 0;
	border-radius: 10px;
	transform: translateY(-50%);
	cursor: pointer;
}

.classinar-auth-password-toggle:hover {
	color: var(--cll-rose);
	background: var(--cll-rose-soft);
}

.classinar-auth-remember {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 8px;
	row-gap: 1px;
	align-items: center;
	margin: 2px 0 20px;
	color: var(--cll-text);
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}

.classinar-auth-remember input {
	grid-row: 1 / span 2;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--cll-rose);
}

.classinar-auth-remember small {
	color: var(--cll-muted);
	font-size: 11px;
	font-weight: 400;
}

.classinar-learner-login__code {
	padding-inline: 14px !important;
	font-size: 20px !important;
	letter-spacing: .28em;
	text-align: center;
	direction: ltr;
}

.classinar-learner-login__actions {
	flex-wrap: wrap;
}

/* دکمه ها */
.cll .cui-btn--primary {
	min-height: 50px;
	color: #fff;
	background: linear-gradient(135deg, #d64b63, #c03f57);
	border-radius: 14px;
	box-shadow: 0 8px 18px rgba(214, 75, 99, .22);
	font-size: 14px;
}

.cll .cui-btn--primary:hover {
	color: #fff;
	box-shadow: 0 12px 26px rgba(214, 75, 99, .3);
	transform: translateY(-1px);
}

.cll-divider {
	position: relative;
	margin: 20px 0;
	text-align: center;
}

.cll-divider::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: 50%;
	height: 1px;
	background: var(--cll-border);
}

.cll-divider span {
	position: relative;
	padding: 0 12px;
	color: var(--cll-muted);
	background: #fdfbfc;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.cll-switch {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	color: var(--cll-blue-dark);
	background: var(--cll-blue-soft);
	border: 1px solid var(--cll-blue-line);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color .2s ease, background-color .2s ease;
}

.cll-switch:hover {
	color: var(--cll-blue-dark);
	background: #e2edff;
	border-color: #c4d9fb;
}

.cll-switch__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px;
	height: 36px;
	color: var(--cll-blue);
	background: #fff;
	border-radius: 10px;
}

.cll-switch__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	line-height: 1.6;
}

.cll-switch__text strong {
	color: var(--cll-text);
	font-size: 12.5px;
	font-weight: 700;
}

.cll-switch__text span {
	color: var(--cll-blue-dark);
	font-size: 12px;
	font-weight: 700;
}

/* ستون تصویر */
.cll-card__visual {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin: 10px 0 10px 10px;
	padding: 26px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle at 12% 92%, rgba(214, 75, 99, .55) 0%, rgba(214, 75, 99, 0) 55%),
		radial-gradient(circle at 92% 8%, rgba(23, 105, 224, .45) 0%, rgba(23, 105, 224, 0) 50%),
		linear-gradient(160deg, #0f2457 0%, #183a85 48%, #3b2a6d 78%, #7a2f55 100%);
	border-radius: 18px;
}

.cll .cll-art {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	max-width: 330px;
	height: auto;
	margin: 30px auto 0;
	stroke: none;
}

.cll-art__glow { display: none; }
.cll-art__panel { fill: rgba(255, 255, 255, .96); }
.cll-art__screen { fill: #e9effc; }
.cll-art__play { fill: #d64b63; }
.cll-art__dot { fill: #1769e0; opacity: .75; }
.cll-art__line { fill: #f2b7c2; }
.cll-art__line--soft { fill: #d9e4f7; }
.cll-art__base { fill: rgba(255, 255, 255, .4); }
.cll-art__cap { fill: #d64b63; }
.cll-art__cap-line { fill: none; stroke: #d64b63; stroke-width: 3.5; stroke-linecap: round; }

.cll-visual h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 900;
}

.cll-visual ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cll-visual li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: rgba(238, 243, 255, .9);
	font-size: 12.5px;
	line-height: 1.8;
}

.cll-visual li svg {
	width: 16px;
	height: 16px;
	margin-top: 4px;
	color: #f7a3b3;
	stroke-width: 2.6;
}

.cll__home {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: max-content;
	margin: 18px auto 0;
	color: var(--cll-muted);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
}

.cll__home svg {
	width: 15px;
	height: 15px;
}

.cll__home:hover {
	color: var(--cll-rose);
}

@keyframes classinarAuthIn {
	from {
		opacity: 0;
		transform: translateY(3px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* موبایل */
@media (max-width: 860px) {
	.cll {
		align-items: flex-start;
		padding: 18px 12px 28px;
	}
	.cll-card {
		grid-template-columns: minmax(0, 1fr);
		border-radius: 20px;
	}
	.cll-card__visual {
		display: none;
	}
	.cll-card__form {
		padding: 22px 18px;
	}
	.cll-head h1 {
		font-size: 20px;
	}
	.cll-top__logo {
		height: 34px;
	}
	.classinar-auth-label-row {
		align-items: flex-start;
		flex-direction: column;
		gap: 3px;
	}
}

@media (max-width: 420px) {
	.classinar-auth-tab {
		padding: 8px 6px;
		font-size: 11.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cll-blob {
		animation: none;
	}
}

/* حالت تیره پنل */
html[data-cui-theme="dark"] .cll {
	--cll-text: #e7ecf6;
	--cll-muted: #9aa7bd;
	--cll-border: #2a2f45;
	background: #0b1220;
}

html[data-cui-theme="dark"] .cll-card {
	background: rgba(17, 26, 46, .78);
	border-color: rgba(255, 255, 255, .08);
}

html[data-cui-theme="dark"] .cll-blob {
	opacity: .5;
}

html[data-cui-theme="dark"] .classinar-auth-tabs,
html[data-cui-theme="dark"] .classinar-auth-note,
html[data-cui-theme="dark"] .cll .cui-input {
	background: rgba(255, 255, 255, .04);
	border-color: #2a3550;
}

html[data-cui-theme="dark"] .classinar-auth-tab.is-active {
	background: #1b2440;
	color: #f3a9b6;
}

html[data-cui-theme="dark"] .cll-pill {
	color: #f3a9b6;
	background: #321a26;
	border-color: #4a2434;
}

html[data-cui-theme="dark"] .cll-divider span {
	background: #121b30;
}

html[data-cui-theme="dark"] .cll-switch {
	color: #9cc0ff;
	background: #13284a;
	border-color: #1d3a68;
}

html[data-cui-theme="dark"] .cll-top__back {
	background: rgba(255, 255, 255, .04);
}
