/* ورود پیامکی — استایل مینیمال */

.faya-wrap {
	display: flex;
	justify-content: center;
	padding: 24px 12px;
	direction: rtl;
}

.faya-card {
	width: 100%;
	max-width: 380px;
	background: #ffffff;
	border: 1px solid #eceef1;
	border-radius: 18px;
	padding: 36px 28px 30px;
	box-shadow: 0 10px 40px rgba(17, 24, 39, 0.07);
	text-align: center;
	font-family: inherit;
}

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

.faya-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 14px;
	border-radius: 14px;
	background: #f3f4f6;
	color: #111827;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faya-icon svg {
	width: 26px;
	height: 26px;
}

.faya-title {
	margin: 0 !important;
	font-size: 19px;
	font-weight: 700;
	color: #111827;
}

.faya-hint {
	font-size: 13.5px;
	color: #6b7280;
	line-height: 1.9;
	margin: 0 0 18px;
}

.faya-input {
	width: 100%;
	padding: 13px 16px;
	font-size: 17px;
	letter-spacing: 1px;
	text-align: center;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	background: #fafafa;
	color: #111827;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	margin-bottom: 14px;
}

.faya-input:focus {
	border-color: #111827;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.faya-input::placeholder {
	color: #c3c8d0;
	letter-spacing: 2px;
}

/* honeypot — از دید کاربر مخفی است */
.faya-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.faya-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
	box-sizing: border-box;
	text-decoration: none !important;
}

.faya-btn:active {
	transform: scale(0.985);
}

.faya-btn-primary {
	background: #111827;
	color: #ffffff !important;
}

.faya-btn-primary:hover {
	opacity: 0.9;
	color: #ffffff;
}

.faya-btn-outline {
	background: transparent;
	border: 1.5px solid #e5e7eb;
	color: #111827 !important;
}

.faya-btn[disabled] {
	opacity: 0.55;
	cursor: default;
}

/* اسپینر داخل دکمه */
.faya-spinner {
	display: none;
	width: 17px;
	height: 17px;
	margin-inline-start: 8px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: faya-spin 0.7s linear infinite;
}

.faya-btn.faya-loading .faya-spinner {
	display: inline-block;
}

@keyframes faya-spin {
	to { transform: rotate(360deg); }
}

/* پیام‌ها */
.faya-msg {
	font-size: 13px;
	line-height: 1.8;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 16px;
}

.faya-msg.faya-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.faya-msg.faya-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

/* خانه‌های کد تایید */
.faya-otp {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.faya-otp input {
	width: 46px;
	height: 54px;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	background: #fafafa;
	color: #111827;
	outline: none;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	padding: 0;
	box-sizing: border-box;
}

.faya-otp input:focus {
	border-color: #111827;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.faya-phone-display {
	color: #111827;
	font-weight: 700;
	unicode-bidi: embed;
}

/* ارسال مجدد و تایمر */
.faya-resend-row {
	margin-top: 16px;
	font-size: 13px;
	color: #6b7280;
}

.faya-timer-count {
	color: #111827;
	font-variant-numeric: tabular-nums;
}

.faya-link {
	background: none;
	border: none;
	padding: 0;
	font-size: inherit;
	color: #2563eb;
	cursor: pointer;
	text-decoration: none;
	font-family: inherit;
}

.faya-link:hover {
	text-decoration: underline;
}

/* حالت لاگین‌شده */
.faya-logged-in p {
	font-size: 14.5px;
	color: #374151;
	margin: 14px 0 20px;
}

.faya-avatar img {
	border-radius: 50%;
}

/* جداکننده در صفحه ووکامرس */
.faya-wc-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 380px;
	margin: 22px auto;
	color: #9ca3af;
	font-size: 13px;
}

.faya-wc-divider::before,
.faya-wc-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e5e7eb;
}

/* موبایل */
@media (max-width: 420px) {
	.faya-card {
		padding: 28px 18px 24px;
		border-radius: 16px;
	}

	.faya-otp input {
		width: 42px;
		height: 50px;
		font-size: 20px;
	}
}
