/**
 * Dedicated auth pages — no site chrome; distinct from public marketing pages.
 */
.ayandeh-auth-body {
	margin: 0;
	min-height: 100vh;
	background: #0b1f33;
	color: #0f172a;
	font-family: var(--ayandeh-font-family, "Vazirmatn", "Tahoma", sans-serif);
}

.ayandeh-auth-body .page-shell,
.ayandeh-auth-body .site-header,
.ayandeh-auth-body .site-footer {
	display: none !important;
}

.ayandeh-auth {
	--auth-ink: #0f172a;
	--auth-muted: #64748b;
	--auth-line: #dbe4ee;
	--auth-card: #ffffff;
	--auth-accent: #0f766e;
	--auth-accent-hover: #0d9488;
	--auth-accent-soft: #ccfbf1;
	--auth-brand-deep: #082032;
	--auth-brand-mid: #0e3a4f;
	--auth-glow: rgba(45, 212, 191, 0.18);
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
}

.ayandeh-auth__brand {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 20% 20%, var(--auth-glow), transparent 55%),
		radial-gradient(ellipse 70% 50% at 90% 80%, rgba(37, 99, 235, 0.22), transparent 50%),
		linear-gradient(165deg, var(--auth-brand-deep) 0%, var(--auth-brand-mid) 48%, #134e4a 100%);
	color: #ecfeff;
	padding: clamp(32px, 6vw, 72px);
	display: flex;
	align-items: center;
}

.ayandeh-auth__brand::after {
	content: "";
	position: absolute;
	inset: auto -20% -30% 30%;
	height: 70%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1' d='M0 60h120M60 0v120M20 20l80 80M100 20L20 100'/%3E%3C/svg%3E");
	opacity: 0.9;
	pointer-events: none;
}

.ayandeh-auth__brand-inner {
	position: relative;
	z-index: 1;
	max-width: 420px;
}

.ayandeh-auth__home {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: inherit;
	text-decoration: none;
	margin-bottom: 20px;
}

.ayandeh-auth__mark {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 22px;
	animation: ayandeh-auth-spin 18s linear infinite;
}

@keyframes ayandeh-auth-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

.ayandeh-auth__school {
	font-size: clamp(1.6rem, 2.4vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.ayandeh-auth__tagline {
	margin: 0 0 28px;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(236, 254, 255, 0.82);
	max-width: 28ch;
	animation: ayandeh-auth-fade 0.7s ease both;
}

.ayandeh-auth__points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.ayandeh-auth__points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.95rem;
	color: rgba(236, 254, 255, 0.9);
	animation: ayandeh-auth-fade 0.7s ease both;
}

.ayandeh-auth__points li:nth-child(2) { animation-delay: 0.08s; }
.ayandeh-auth__points li:nth-child(3) { animation-delay: 0.16s; }

.ayandeh-auth__points li::before {
	content: "";
	width: 8px;
	height: 8px;
	margin-top: 8px;
	border-radius: 50%;
	background: #5eead4;
	flex-shrink: 0;
	box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

.ayandeh-auth__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 4vw, 48px);
	background:
		linear-gradient(180deg, #f0f7f7 0%, #e8eef3 100%);
}

.ayandeh-auth__card {
	width: min(100%, 460px);
	background: var(--auth-card);
	border: 1px solid var(--auth-line);
	border-radius: 18px;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 18px 40px rgba(8, 32, 50, 0.1);
	padding: 28px 28px 22px;
	animation: ayandeh-auth-rise 0.55s ease both;
}

.ayandeh-auth-mode-register .ayandeh-auth__card {
	width: min(100%, 560px);
}

.ayandeh-auth__card-head {
	margin-bottom: 18px;
}

.ayandeh-auth__eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--auth-accent);
	text-transform: none;
}

.ayandeh-auth__title {
	margin: 0;
	font-size: clamp(1.35rem, 2vw, 1.65rem);
	font-weight: 800;
	color: var(--auth-ink);
	line-height: 1.35;
}

.ayandeh-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px;
	background: #f1f5f9;
	border-radius: 12px;
}

.ayandeh-auth__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 9px;
	text-decoration: none;
	color: var(--auth-muted);
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ayandeh-auth__tab:hover {
	color: var(--auth-ink);
}

.ayandeh-auth__tab.is-active {
	background: #fff;
	color: var(--auth-accent);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.ayandeh-auth__body .asc-admission,
.ayandeh-auth__body .asc-phone-login,
.ayandeh-auth__body .asc-auth-form {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	border-radius: 0;
}

.ayandeh-auth__body .asc-admission__submit,
.ayandeh-auth__body .asc-auth-form__submit {
	width: 100%;
	background: var(--auth-accent);
	border-radius: 10px;
	padding: 13px 18px;
}

.ayandeh-auth__body .asc-admission__submit:hover,
.ayandeh-auth__body .asc-auth-form__submit:hover {
	background: var(--auth-accent-hover);
}

.ayandeh-auth__body .asc-admission__row input:focus,
.ayandeh-auth__body .asc-admission__row textarea:focus,
.ayandeh-auth__body .asc-admission__row select:focus,
.ayandeh-auth__body .asc-auth-form input:focus {
	border-color: var(--auth-accent);
	outline: 2px solid var(--auth-accent-soft);
}

.ayandeh-auth__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	justify-content: space-between;
	margin-top: 14px;
	font-size: 13px;
}

.ayandeh-auth__links a {
	color: var(--auth-accent);
	text-decoration: none;
	font-weight: 600;
}

.ayandeh-auth__links a:hover {
	text-decoration: underline;
}

.ayandeh-auth__foot {
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid var(--auth-line);
	text-align: center;
}

.ayandeh-auth__foot a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--auth-muted);
	text-decoration: none;
	font-size: 13px;
}

.ayandeh-auth__foot a:hover {
	color: var(--auth-ink);
}

@keyframes ayandeh-auth-fade {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@keyframes ayandeh-auth-rise {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
	.ayandeh-auth-body {
		min-height: 100dvh;
		background: var(--auth-brand-deep, #082032);
		overscroll-behavior-y: contain;
		-webkit-tap-highlight-color: transparent;
	}

	.ayandeh-auth {
		grid-template-columns: 1fr;
		min-height: 100dvh;
		min-height: 100svh;
	}

	.ayandeh-auth__brand {
		padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 16px;
		min-height: auto;
	}

	.ayandeh-auth__points {
		display: none;
	}

	.ayandeh-auth__tagline {
		margin-bottom: 0;
		max-width: none;
		font-size: 0.95rem;
	}

	.ayandeh-auth__school {
		font-size: 1.35rem;
	}

	.ayandeh-auth__mark {
		width: 44px;
		height: 44px;
		border-radius: 12px;
		font-size: 18px;
	}

	.ayandeh-auth__panel {
		padding: 12px 16px calc(28px + env(safe-area-inset-bottom, 0px));
		align-items: stretch;
		flex: 1;
		background: linear-gradient(180deg, #f4f7f8 0%, #eef2f6 100%);
	}

	.ayandeh-auth__card {
		width: 100%;
		max-width: none;
		border-radius: 20px 20px 16px 16px;
		padding: 22px 18px 18px;
		box-shadow:
			0 1px 2px rgba(15, 23, 42, 0.04),
			0 12px 28px rgba(8, 32, 50, 0.12);
		margin-block-start: -8px;
	}

	.ayandeh-auth-mode-register .ayandeh-auth__card {
		width: 100%;
	}

	.ayandeh-auth__title {
		font-size: 1.35rem;
	}

	.ayandeh-auth__tabs {
		position: sticky;
		top: 0;
		z-index: 2;
		margin-inline: -4px;
		margin-bottom: 18px;
	}

	.ayandeh-auth__tab {
		min-height: 44px;
		font-size: 15px;
		border-radius: 10px;
	}

	.ayandeh-auth__body .asc-admission__row input,
	.ayandeh-auth__body .asc-admission__row textarea,
	.ayandeh-auth__body .asc-admission__row select,
	.ayandeh-auth__body .asc-auth-form input,
	.ayandeh-auth__body .asc-phone-login input,
	.ayandeh-auth__body .asc-phone-login select {
		min-height: 48px;
		font-size: 16px;
		border-radius: 12px;
	}

	.ayandeh-auth__body .asc-admission__submit,
	.ayandeh-auth__body .asc-auth-form__submit,
	.ayandeh-auth__body .asc-phone-login button[type="submit"] {
		min-height: 52px;
		font-size: 16px;
		border-radius: 14px;
		font-weight: 700;
	}

	.ayandeh-auth__links {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		text-align: center;
	}

	.ayandeh-auth__foot {
		margin-top: 18px;
		padding-top: 14px;
	}

	.ayandeh-auth__foot a {
		min-height: 44px;
		justify-content: center;
	}
}

@media (max-width: 575.98px) {
	.ayandeh-auth__brand-inner {
		max-width: none;
	}

	.ayandeh-auth__home {
		gap: 12px;
		margin-bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ayandeh-auth__mark,
	.ayandeh-auth__tagline,
	.ayandeh-auth__points li,
	.ayandeh-auth__card {
		animation: none;
	}
}
