/* ===================================================================
   آنی ادز — صفحات احراز هویت (هماهنگ با تم روشن سایت)
=================================================================== */

body.ani-ads-canvas .ani-auth {
	width: 100%;
	min-height: 100vh;
}

.ani-auth {
	--auth-blue: #2563eb;
	--auth-purple: #7c3aed;
	--auth-grad: linear-gradient(120deg, #2563eb 0%, #7c3aed 55%, #14d9b0 100%);
	--auth-ink: #0f172a;
	--auth-ink-2: #334155;
	--auth-muted: #64748b;
	--auth-line: #e7ebf2;
	--auth-bg: #f6f8fc;
	--auth-ok: #2f9e7a;
	--auth-bad: #c4584f;

	font-family: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, sans-serif;
	background:
		radial-gradient(700px 400px at 90% 0%, rgba(20, 217, 176, 0.1), transparent 55%),
		radial-gradient(600px 400px at 0% 100%, rgba(124, 58, 237, 0.1), transparent 50%),
		var(--auth-bg);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	color: var(--auth-ink);
	direction: rtl;
}

.ani-auth * {
	box-sizing: border-box;
}

.ani-auth-wrap {
	width: 100%;
	max-width: 440px;
}

.ani-auth-logo {
	display: block;
	text-align: center;
	margin-bottom: 28px;
}

.ani-auth-logo img {
	height: 58px;
	width: auto;
	margin-inline: auto;
}

.ani-auth-card {
	background: #fff;
	border: 1px solid var(--auth-line);
	border-radius: 20px;
	padding: 36px 32px 32px;
	box-shadow: 0 18px 50px rgba(37, 99, 235, 0.1);
}

.ani-auth-head {
	text-align: center;
	margin-bottom: 24px;
}

.ani-auth-head h1 {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 800;
}

.ani-auth-head p {
	margin: 0;
	color: var(--auth-muted);
	font-size: 14px;
	line-height: 1.8;
}

/* اعلان */
.ani-auth-notice {
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.8;
}

.ani-auth-notice.is-ok {
	background: rgba(47, 158, 122, 0.1);
	color: var(--auth-ok);
	border: 1px solid rgba(47, 158, 122, 0.25);
}

.ani-auth-notice.is-error {
	background: rgba(196, 88, 79, 0.1);
	color: var(--auth-bad);
	border: 1px solid rgba(196, 88, 79, 0.25);
}

.ani-auth-notice.is-info {
	background: rgba(37, 99, 235, 0.08);
	color: var(--auth-blue);
	border: 1px solid rgba(37, 99, 235, 0.2);
}

/* فرم */
.ani-auth-form {
	display: grid;
	gap: 16px;
}

.ani-auth-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--auth-ink-2);
	margin-bottom: 7px;
}

.ani-auth-field input[type="text"],
.ani-auth-field input[type="email"],
.ani-auth-field input[type="password"] {
	width: 100%;
	font-family: inherit;
	font-size: 15px;
	padding: 13px 16px;
	border: 1px solid var(--auth-line);
	border-radius: 12px;
	background: #fff;
	color: var(--auth-ink);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ani-auth-field input:focus {
	outline: 0;
	border-color: var(--auth-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ani-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.ani-auth-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--auth-ink-2);
	cursor: pointer;
}

.ani-auth-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--auth-blue);
}

.ani-auth-link {
	color: var(--auth-blue);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.ani-auth-link:hover {
	color: var(--auth-purple);
}

.ani-auth-hint {
	margin: -4px 0 0;
	font-size: 13px;
	color: var(--auth-muted);
	line-height: 1.8;
}

.ani-auth-submit {
	width: 100%;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	padding: 14px 20px;
	border-radius: 999px;
	background: var(--auth-grad);
	color: #fff;
	box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	margin-top: 4px;
}

.ani-auth-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(124, 58, 237, 0.32);
}

.ani-auth-switch {
	text-align: center;
	margin: 22px 0 0;
	font-size: 14px;
	color: var(--auth-muted);
}

.ani-auth-switch a {
	color: var(--auth-blue);
	font-weight: 700;
	text-decoration: none;
}

.ani-auth-switch a:hover {
	color: var(--auth-purple);
}

.ani-auth-foot {
	text-align: center;
	margin-top: 24px;
}

.ani-auth-foot a {
	color: var(--auth-muted);
	font-size: 13px;
	text-decoration: none;
}

.ani-auth-foot a:hover {
	color: var(--auth-blue);
}

@media (max-width: 480px) {
	.ani-auth-card {
		padding: 28px 20px 24px;
	}
}
