/**
 * iDigital SMS — Standalone OTP Login Page Styles
 * Blank page (no theme) — modern RTL card with IranSans (IRANSansX) font
 *
 * @package IDigitalSMS
 */

/* ═══════════════════════════ Font (از داخل پلاگین) ═══════════════════════════ */

@font-face {
	font-family: 'IRANSansX';
	src: url('../fonts/iransansx/IRANSansXV.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Vazirmatn';
	src: url('../fonts/Vazirmatn-Variable.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ═══════════════════════════ Standalone Body Reset ═══════════════════════════ */

body.ids-otp-standalone {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: var(--ids-bg-color, #f0f0f5);
	font-family: 'IRANSansX', 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ids-title, #1e293b);
	direction: rtl;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: relative;
}

body.ids-otp-standalone *,
body.ids-otp-standalone *::before,
body.ids-otp-standalone *::after {
	box-sizing: border-box;
}

/* ═══════════════════════════ Fullpage Container ═══════════════════════════ */

.ids-otp-fullpage {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 30px 16px;
}

.ids-otp-page-inner {
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}

/* ═══════════════════════════ Branding ═══════════════════════════ */

.ids-otp-branding {
	text-align: center;
	margin-bottom: 28px;
}

.ids-otp-branding-link {
	text-decoration: none;
	display: inline-block;
}

.ids-otp-logo {
	width: auto;
	height: auto;
	min-width: 1px;
	min-height: 1px;
	display: block;
	margin: 0 auto;
	object-fit: contain;
	vertical-align: middle;
	/* max-width از تنظیمات به صورت inline روی img اعمال می‌شود */
}

.ids-otp-site-name {
	font-size: 22px;
	font-weight: 800;
	color: var(--ids-title, #1e293b);
	letter-spacing: -0.3px;
}

.ids-otp-branding-link:hover .ids-otp-site-name {
	color: var(--ids-primary, #6366f1);
}

/* Desktop/Mobile logo switching */
.ids-otp-logo-mobile {
	display: none;
}

@media (max-width: 480px) {
	.ids-otp-logo-desktop {
		display: none;
	}
	.ids-otp-logo-mobile {
		display: block;
		margin: 0 auto;
	}
}

/* ═══════════════════════════ Card ═══════════════════════════ */

.ids-otp-card {
	width: 100%;
	background: var(--ids-form-bg, #ffffff);
	border-radius: var(--ids-form-radius, 20px);
	box-shadow: var(--ids-form-shadow, 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.05), 0 16px 40px rgba(99,102,241,0.07));
	padding: 36px 32px 28px;
	border: var(--ids-form-border-width, 1px) solid var(--ids-form-border-color, rgba(99,102,241,0.06));
	-webkit-backdrop-filter: var(--ids-form-backdrop, none);
	backdrop-filter: var(--ids-form-backdrop, none);
	animation: idsFadeSlideUp 0.45s ease;
}

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

/* ═══════════════════════════ Header ═══════════════════════════ */

.ids-otp-header {
	text-align: center;
	margin-bottom: 28px;
}

.ids-otp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--ids-icon-from, #6366f1), var(--ids-icon-to, #8b5cf6));
	color: #ffffff;
	margin-bottom: 18px;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.ids-otp-icon svg {
	width: 28px;
	height: 28px;
}

.ids-otp-title {
	margin: 0 0 8px;
	font-size: var(--ids-title-font-size, 20px);
	font-weight: var(--ids-title-font-weight, 800);
	color: var(--ids-title, #1e293b);
	line-height: 1.4;
}

.ids-otp-subtitle {
	margin: 0;
	font-size: var(--ids-subtitle-font-size, 14px);
	font-weight: var(--ids-subtitle-font-weight, 400);
	color: var(--ids-subtitle, #64748b);
	line-height: 1.7;
}

/* متن‌های سفارشی */
.ids-otp-custom-text {
	font-size: var(--ids-subtitle-font-size, 14px);
	font-weight: var(--ids-subtitle-font-weight, 400);
	color: var(--ids-subtitle, #64748b);
	line-height: 1.6;
}
.ids-otp-custom-above-title {
	margin: 0 0 10px;
	text-align: center;
}
.ids-otp-custom-below-subtitle {
	margin: 10px 0 0;
	text-align: center;
}
.ids-otp-custom-below-send-btn {
	margin: 14px 0 0;
	text-align: center;
	font-size: 12px;
	color: var(--ids-footer-text, #94a3b8);
}
.ids-otp-custom-text a {
	color: var(--ids-back-link, #6366f1);
	text-decoration: none;
}
.ids-otp-custom-text a:hover {
	text-decoration: underline;
}

/* ═══════════════════════════ Steps ═══════════════════════════ */

.ids-otp-step {
	display: none;
}

.ids-otp-step.ids-otp-step-active {
	display: block;
	animation: idsFadeIn 0.3s ease;
}

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

/* ═══════════════════════════ Fields ═══════════════════════════ */

.ids-otp-field {
	margin-bottom: 18px;
}

.ids-otp-field label {
	display: block;
	font-size: var(--ids-label-font-size, 14px);
	font-weight: var(--ids-label-font-weight, 600);
	color: var(--ids-label, #374151);
	margin-bottom: 8px;
}

.ids-required-star {
	color: #ef4444;
	margin-right: 2px;
}

.ids-input-error {
	border-color: #ef4444 !important;
	background-color: #fffafb !important;
}

.ids-otp-field-hint {
	margin: 6px 0 0;
	font-size: var(--ids-otp-hint-size, 12px);
	color: var(--ids-otp-hint-color, #94a3b8);
	font-weight: var(--ids-otp-hint-weight, 400);
	line-height: 1.5;
}

/* Input wrapper with icon */
.ids-otp-input-wrap {
	position: relative;
}

.ids-otp-input-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ids-placeholder, #94a3b8);
	display: flex;
	align-items: center;
	pointer-events: none;
	transition: color 0.2s;
}

.ids-otp-input-wrap:focus-within .ids-otp-input-icon {
	color: var(--ids-input-focus, #6366f1);
}

.ids-otp-input-icon-pad {
	padding-right: 42px !important;
}

.ids-otp-input {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	font-family: inherit;
	font-size: var(--ids-input-font-size, 15px);
	font-weight: var(--ids-input-font-weight, 400);
	color: var(--ids-input-text, #1e293b);
	background: var(--ids-input-bg, #f8fafc);
	border: var(--ids-input-border-width, 1.5px) solid var(--ids-input-border, #e2e8f0);
	border-radius: var(--ids-input-radius, 12px);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.ids-otp-input:focus {
	background: var(--ids-form-bg, #ffffff);
	border-color: var(--ids-input-focus, #6366f1);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ids-otp-input::placeholder {
	color: var(--ids-placeholder, #94a3b8);
}

/* Code input — center & letter-spaced */
.ids-otp-code-input {
	text-align: center;
	letter-spacing: 10px;
	font-size: 24px;
	font-weight: 700;
	height: 56px;
	border-radius: var(--ids-input-radius, 12px);
	padding-left: 10px;
}

.ids-otp-code-input:focus {
	border-color: var(--ids-input-focus, #6366f1);
	box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* ═══════════════════════════ Radio & Checkbox Groups ═══════════════════════════ */

.ids-otp-radio-group,
.ids-otp-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.ids-otp-radio-label,
.ids-otp-checkbox-label {
	display: flex !important;
	align-items: center !important;
	gap: 10px;
	cursor: pointer;
	padding: 10px 14px;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #475569 !important;
	transition: all 0.2s;
	margin-bottom: 0 !important;
}

.ids-otp-radio-label:hover,
.ids-otp-checkbox-label:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
}

.ids-otp-radio-label input,
.ids-otp-checkbox-label input {
	width: 18px;
	height: 18px;
	margin: 0;
	cursor: pointer;
}

.ids-otp-radio-label input:checked + span,
.ids-otp-checkbox-label input:checked + span {
	color: #1e293b;
	font-weight: 700;
}

.ids-otp-radio-label:has(input:checked),
.ids-otp-checkbox-label:has(input:checked) {
	background: #eff6ff;
	border-color: var(--ids-primary, #6366f1);
}

/* ═══════════════════════════ Switch ═══════════════════════════ */

.ids-otp-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
	cursor: pointer;
}

.ids-otp-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.ids-otp-switch-slider {
	position: absolute;
	inset: 0;
	background: #e2e8f0;
	border-radius: 34px;
	transition: 0.3s;
}

.ids-otp-switch-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	right: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ids-otp-switch input:checked + .ids-otp-switch-slider {
	background: var(--ids-primary, #6366f1);
}

.ids-otp-switch input:checked + .ids-otp-switch-slider:before {
	transform: translateX(-22px);
}

/* ═══════════════════════════ Persian Datepicker Overrides ═══════════════════════════ */

.datepicker-plot-area {
	font-family: 'IRANSansX', 'Vazirmatn', sans-serif !important;
	border-radius: 12px !important;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
	z-index: 99999 !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.today span {
	background: var(--ids-primary, #6366f1) !important;
	color: #fff !important;
}

.datepicker-plot-area .datepicker-day-view .table-days td.selected span {
	background: var(--ids-icon-to, #8b5cf6) !important;
	color: #fff !important;
}

/* ═══════════════════════════ Buttons ═══════════════════════════ */

.ids-otp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 50px;
	font-family: inherit;
	font-size: var(--ids-btn-font-size, 15px);
	font-weight: var(--ids-btn-font-weight, 700);
	border: var(--ids-btn-border-width, 0) solid var(--ids-btn-border-color, transparent);
	border-radius: var(--ids-btn-radius, 12px);
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s, opacity 0.2s, box-shadow 0.2s;
	text-align: center;
}

.ids-otp-btn:active:not(:disabled) {
	transform: scale(0.98);
}

.ids-otp-btn-primary {
	background: var(--ids-primary, #6366f1);
	color: var(--ids-btn-text, #ffffff);
	box-shadow: var(--ids-btn-shadow, 0 4px 12px rgba(99, 102, 241, 0.3));
}

.ids-otp-btn-primary:hover:not(:disabled) {
	background: var(--ids-primary-hover, #4f46e5);
	box-shadow: var(--ids-btn-shadow-hover, 0 4px 16px rgba(99, 102, 241, 0.4));
}

.ids-otp-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.ids-otp-btn-arrow {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.ids-otp-btn:hover:not(:disabled) .ids-otp-btn-arrow {
	transform: translateX(-3px);
}

.ids-otp-btn-text {
	flex-shrink: 0;
}

/* Loading state */
.ids-otp-btn-loading {
	position: relative;
	pointer-events: none;
}

.ids-otp-btn-loading .ids-otp-btn-arrow {
	display: none;
}

.ids-otp-btn-loading::after {
	content: '';
	display: inline-block;
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: idsSpinner 0.6s linear infinite;
	margin-right: 8px;
}

@keyframes idsSpinner {
	to { transform: rotate(360deg); }
}

/* ═══════════════════════════ Links ═══════════════════════════ */

.ids-otp-link {
	background: none;
	border: none;
	color: var(--ids-resend-color, var(--ids-primary, #6366f1));
	font-family: inherit;
	font-size: var(--ids-resend-size, 13px);
	font-weight: var(--ids-resend-weight, 600);
	cursor: pointer;
	padding: 0;
	text-decoration: none;
	transition: color 0.2s;
}

.ids-otp-link:hover {
	color: var(--ids-primary-hover, #4f46e5);
	text-decoration: underline;
}

.ids-otp-link:disabled {
	color: #94a3b8;
	cursor: default;
	text-decoration: none;
}

/* ═══════════════════════════ Sent Info ═══════════════════════════ */

.ids-otp-sent-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
	margin-bottom: 22px;
	font-size: 13px;
	color: #475569;
	padding: 12px 16px;
	background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
	border: 1px solid #bbf7d0;
	border-radius: 10px;
}

.ids-otp-sent-info svg {
	color: #16a34a;
	flex-shrink: 0;
}

.ids-otp-sent-info strong {
	color: #1e293b;
	direction: ltr;
	font-weight: 700;
}

/* ═══════════════════════════ Resend Row ═══════════════════════════ */

.ids-otp-resend-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	font-size: 13px;
}

.ids-otp-timer {
	color: var(--ids-primary, #6366f1);
	font-weight: 700;
	font-size: 13px;
	direction: ltr;
}

/* ═══════════════════════════ Messages ═══════════════════════════ */

.ids-otp-message {
	margin-top: 18px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: var(--ids-notice-font-size, 13px);
	font-weight: var(--ids-notice-font-weight, 600);
	text-align: center;
	line-height: 1.6;
}

.ids-otp-msg-error {
	background: var(--ids-notice-error-bg, #fef2f2);
	color: var(--ids-notice-error-color, #dc2626);
	border: 1px solid var(--ids-notice-error-color, #fecaca);
}

.ids-otp-msg-success {
	background: var(--ids-notice-success-bg, #f0fdf4);
	color: var(--ids-notice-success-color, #16a34a);
	border: 1px solid var(--ids-notice-success-color, #bbf7d0);
}

.ids-otp-msg-info {
	background: var(--ids-input-bg, #eff6ff);
	color: var(--ids-primary, #2563eb);
	border: 1px solid var(--ids-primary, #bfdbfe);
}

/* ═══════════════════════════ Page Footer ═══════════════════════════ */

.ids-otp-page-footer {
	text-align: center;
	margin-top: 24px;
}

.ids-otp-footer-note {
	font-size: 11.5px;
	color: var(--ids-footer-text, #94a3b8);
	margin: 0 0 12px;
	line-height: 1.6;
}

.ids-otp-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ids-back-link, #6366f1);
	text-decoration: none;
	transition: color 0.2s, gap 0.2s;
}

.ids-otp-back-link:hover {
	color: var(--ids-primary-hover, #4f46e5);
	gap: 8px;
}

.ids-otp-back-link svg {
	flex-shrink: 0;
}

/* نوار فوتر (پایین صفحه) */
.ids-otp-footer-bar {
	margin-top: 24px;
	padding: 14px 20px;
	text-align: center;
	font-size: 11px;
	color: var(--ids-footer-bar-color, var(--ids-footer-text, #94a3b8));
	line-height: 1.6;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.ids-otp-footer-bar-inner {
	max-width: 480px;
	margin: 0 auto;
}
.ids-otp-footer-copyright {
	display: block;
	margin-bottom: 4px;
}
.ids-otp-footer-custom:empty {
	display: none;
}
.ids-otp-footer-custom a {
	color: var(--ids-back-link, #6366f1);
	text-decoration: none;
}
.ids-otp-footer-custom a:hover {
	text-decoration: underline;
}
.ids-otp-dark .ids-otp-footer-bar {
	border-top-color: rgba(255, 255, 255, 0.08);
}

/* ═══════════════════════════ Logo Inside / Below ═══════════════════════════ */

.ids-otp-logo-inside {
	text-align: center;
	margin-bottom: 16px;
}

.ids-otp-logo-inside a {
	display: inline-block;
	text-decoration: none;
}

.ids-otp-logo-inside img {
	display: block;
	margin: 0 auto;
	width: auto;
	height: auto;
	min-width: 40px;
	min-height: 24px;
	object-fit: contain;
	vertical-align: middle;
}

/* لوگوی SVG: عرض از تنظیمات به صورت inline اعمال می‌شود تا همیشه قابل مشاهده باشد */
.ids-otp-logo-inside img[src*=".svg"],
.ids-otp-branding img[src*=".svg"],
.ids-otp-logo-below img[src*=".svg"] {
	object-fit: contain;
}

.ids-otp-logo-below {
	text-align: center;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--ids-input-border, #e2e8f0);
}

.ids-otp-logo-below a {
	display: inline-block;
	text-decoration: none;
}

.ids-otp-logo-below img {
	display: block;
	margin: 0 auto;
	width: auto;
	height: auto;
	min-width: 1px;
	min-height: 1px;
	object-fit: contain;
	vertical-align: middle;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.ids-otp-logo-below a:hover img {
	opacity: 1;
}

/* ═══════════════════════════ Dark Mode ═══════════════════════════ */

body.ids-otp-dark {
	color: var(--ids-title, #f1f5f9);
}

body.ids-otp-dark .ids-otp-card {
	border-color: var(--ids-form-border-color, rgba(255, 255, 255, 0.06));
}

body.ids-otp-dark .ids-otp-input {
	color: var(--ids-input-text, #e2e8f0);
}

body.ids-otp-dark .ids-otp-input::placeholder {
	color: var(--ids-placeholder, #64748b);
}

body.ids-otp-dark .ids-otp-sent-info {
	background: linear-gradient(135deg, #1a2e1a, #172b17);
	border-color: #22543d;
	color: #a7f3d0;
}

body.ids-otp-dark .ids-otp-radio-label,
body.ids-otp-dark .ids-otp-checkbox-label {
	background: var(--ids-input-bg, #0f172a);
	border-color: var(--ids-input-border, #334155);
	color: var(--ids-label, #cbd5e1) !important;
}

body.ids-otp-dark .ids-otp-radio-label:has(input:checked),
body.ids-otp-dark .ids-otp-checkbox-label:has(input:checked) {
	background: #1e1b4b;
}

body.ids-otp-dark .ids-otp-switch-slider {
	background: #475569;
}

body.ids-otp-dark .ids-otp-site-name {
	color: var(--ids-title, #f1f5f9);
}

body.ids-otp-dark .ids-otp-logo-below {
	border-top-color: var(--ids-input-border, #334155);
}

/* ═══════════════════════════ Responsive ═══════════════════════════ */

@media (max-width: 480px) {
	.ids-otp-fullpage {
		padding: 20px 14px;
	}

	.ids-otp-branding {
		margin-bottom: 22px;
	}

	.ids-otp-site-name {
		font-size: 19px;
	}

	.ids-otp-card {
		padding: 28px 22px 24px;
		border-radius: var(--ids-form-radius, 16px);
	}

	.ids-otp-icon {
		width: 52px;
		height: 52px;
		border-radius: 14px;
	}

	.ids-otp-icon svg {
		width: 24px;
		height: 24px;
	}

	.ids-otp-title {
		font-size: 18px;
	}

	.ids-otp-code-input {
		font-size: 20px;
		letter-spacing: 8px;
		height: 52px;
	}

	.ids-otp-btn {
		height: 48px;
	}
}

@media (max-width: 360px) {
	.ids-otp-card {
		padding: 24px 16px 20px;
		border-radius: var(--ids-form-radius, 14px);
	}

	.ids-otp-code-input {
		font-size: 18px;
		letter-spacing: 6px;
	}
}

/* ═══════════════════════════ Preset: Minimal (No shadow, no border, B&W) ═══════════════════════════ */

body.ids-otp-preset-minimal {
	background: #ffffff;
}

.ids-otp-preset-minimal .ids-otp-card {
	background: #ffffff;
	border: none;
	box-shadow: none;
	border-radius: var(--ids-form-radius, 20px);
}

.ids-otp-preset-minimal .ids-otp-icon {
	background: #000000;
	color: #ffffff;
	box-shadow: none;
	border: none;
}

.ids-otp-preset-minimal .ids-otp-title {
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-subtitle {
	color: #525252;
}

.ids-otp-preset-minimal .ids-otp-field label {
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-input {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	box-shadow: none;
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-input:focus {
	border-color: #000000;
	box-shadow: none;
	outline: none;
}

.ids-otp-preset-minimal .ids-otp-input::placeholder {
	color: #a3a3a3;
}

.ids-otp-preset-minimal .ids-otp-input-icon {
	color: #a3a3a3;
}

.ids-otp-preset-minimal .ids-otp-input-wrap:focus-within .ids-otp-input-icon {
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-btn-primary {
	background: #000000;
	color: #ffffff;
	box-shadow: none;
	border: none;
}

.ids-otp-preset-minimal .ids-otp-btn-primary:hover:not(:disabled) {
	background: #1a1a1a;
	box-shadow: none;
}

.ids-otp-preset-minimal .ids-otp-btn-arrow {
	color: #ffffff;
}

.ids-otp-preset-minimal .ids-otp-sent-info {
	background: #fafafa;
	border: 1px solid #e5e5e5;
	box-shadow: none;
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-back-link {
	color: #525252;
}

.ids-otp-preset-minimal .ids-otp-back-link:hover {
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-footer-text {
	color: #737373;
}

.ids-otp-preset-minimal .ids-otp-site-name {
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-radio-label,
.ids-otp-preset-minimal .ids-otp-checkbox-label {
	background: #ffffff !important;
	border: 1px solid #e5e5e5 !important;
	box-shadow: none !important;
	color: #000000 !important;
}

.ids-otp-preset-minimal .ids-otp-radio-label:has(input:checked),
.ids-otp-preset-minimal .ids-otp-checkbox-label:has(input:checked) {
	border-color: #000000 !important;
	background: #ffffff !important;
	color: #000000 !important;
}

.ids-otp-preset-minimal .ids-otp-switch-slider {
	background: #e5e5e5;
	box-shadow: none;
}

.ids-otp-preset-minimal .ids-otp-code-input {
	background: #ffffff;
	border: 1px solid #e5e5e5;
	box-shadow: none;
	color: #000000;
}

.ids-otp-preset-minimal .ids-otp-timer {
	color: #525252;
}

.ids-otp-preset-minimal .ids-otp-resend-btn {
	color: #525252;
}

.ids-otp-preset-minimal .ids-otp-resend-btn:hover {
	color: #000000;
}

/* ═══════════════════════════ Preset: Minimal Line (فقط خط زیر اینپوت، پس‌زمینه قابل تغییر) ═══════════════════════════ */

/* پس‌زمینه از var(--ids-bg-color) تنظیمات کاربر استفاده می‌شود */
.ids-otp-preset-minimal_line .ids-otp-card {
	border: none;
	box-shadow: none;
	border-radius: var(--ids-form-radius, 20px);
}

.ids-otp-preset-minimal_line .ids-otp-input {
	border: none;
	border-bottom: 1px solid var(--ids-input-border, #e2e8f0);
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.ids-otp-preset-minimal_line .ids-otp-input:focus {
	border-bottom-color: var(--ids-input-focus, #6366f1);
	box-shadow: none;
	outline: none;
}

.ids-otp-preset-minimal_line .ids-otp-code-input {
	border: none;
	border-bottom: 1px solid var(--ids-input-border, #e2e8f0);
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.ids-otp-preset-minimal_line .ids-otp-code-input:focus {
	border-bottom-color: var(--ids-input-focus, #6366f1);
	outline: none;
}

.ids-otp-preset-minimal_line .ids-otp-sent-info {
	border: none;
	border-bottom: 1px solid var(--ids-input-border, #e2e8f0);
	border-radius: 0;
	box-shadow: none;
	background: transparent;
}

.ids-otp-preset-minimal_line .ids-otp-radio-label,
.ids-otp-preset-minimal_line .ids-otp-checkbox-label {
	border: none !important;
	border-bottom: 1px solid var(--ids-input-border, #e2e8f0) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
}

.ids-otp-preset-minimal_line .ids-otp-radio-label:has(input:checked),
.ids-otp-preset-minimal_line .ids-otp-checkbox-label:has(input:checked) {
	border-bottom-color: var(--ids-input-focus, #6366f1) !important;
}

/* ═══════════════════════════ Preset: Neumorphism (Inset) ═══════════════════════════ */

body.ids-otp-preset-neumorphism {
	background: #e0e5ec;
}

.ids-otp-preset-neumorphism .ids-otp-card {
	background: #e0e5ec;
	border: none;
	box-shadow:
		inset 8px 8px 16px #b8bcc2,
		inset -8px -8px 16px #ffffff;
	border-radius: var(--ids-form-radius, 24px);
}

.ids-otp-preset-neumorphism .ids-otp-icon {
	background: #e0e5ec;
	color: #4a5568;
	box-shadow:
		6px 6px 12px #b8bcc2,
		-6px -6px 12px #ffffff;
	border-radius: 50%;
}

.ids-otp-preset-neumorphism .ids-otp-title {
	color: #2d3748;
}

.ids-otp-preset-neumorphism .ids-otp-subtitle {
	color: #718096;
}

.ids-otp-preset-neumorphism .ids-otp-field label {
	color: #4a5568;
}

.ids-otp-preset-neumorphism .ids-otp-input {
	background: #e0e5ec;
	border: none;
	box-shadow:
		inset 3px 3px 6px #b8bcc2,
		inset -3px -3px 6px #ffffff;
	color: #2d3748;
}

.ids-otp-preset-neumorphism .ids-otp-input:focus {
	box-shadow:
		inset 3px 3px 6px #b8bcc2,
		inset -3px -3px 6px #ffffff,
		0 0 0 2px #a0aec0;
}

.ids-otp-preset-neumorphism .ids-otp-input::placeholder {
	color: #a0aec0;
}

.ids-otp-preset-neumorphism .ids-otp-input-icon {
	color: #a0aec0;
}

.ids-otp-preset-neumorphism .ids-otp-input-wrap:focus-within .ids-otp-input-icon {
	color: #4a5568;
}

.ids-otp-preset-neumorphism .ids-otp-btn-primary {
	background: #e0e5ec;
	color: #2d3748;
	box-shadow:
		6px 6px 12px #b8bcc2,
		-6px -6px 12px #ffffff;
	border: none;
	font-weight: 700;
}

.ids-otp-preset-neumorphism .ids-otp-btn-primary:hover:not(:disabled) {
	background: #e0e5ec;
	box-shadow:
		4px 4px 8px #b8bcc2,
		-4px -4px 8px #ffffff;
}

.ids-otp-preset-neumorphism .ids-otp-btn-primary:active:not(:disabled) {
	box-shadow:
		inset 4px 4px 8px #b8bcc2,
		inset -4px -4px 8px #ffffff;
}

.ids-otp-preset-neumorphism .ids-otp-btn-arrow {
	color: #4a5568;
}

.ids-otp-preset-neumorphism .ids-otp-sent-info {
	background: #e0e5ec;
	border: none;
	box-shadow:
		inset 3px 3px 6px #b8bcc2,
		inset -3px -3px 6px #ffffff;
	color: #2d3748;
}

.ids-otp-preset-neumorphism .ids-otp-back-link {
	color: #718096;
}

.ids-otp-preset-neumorphism .ids-otp-back-link:hover {
	color: #2d3748;
}

.ids-otp-preset-neumorphism .ids-otp-footer-text {
	color: #a0aec0;
}

.ids-otp-preset-neumorphism .ids-otp-site-name {
	color: #2d3748;
}

/* Neumorphism: radio, checkbox, switch overrides */
.ids-otp-preset-neumorphism .ids-otp-radio-label,
.ids-otp-preset-neumorphism .ids-otp-checkbox-label {
	background: #e0e5ec !important;
	border: none !important;
	box-shadow:
		3px 3px 6px #b8bcc2,
		-3px -3px 6px #ffffff;
	color: #4a5568 !important;
}

.ids-otp-preset-neumorphism .ids-otp-radio-label:has(input:checked),
.ids-otp-preset-neumorphism .ids-otp-checkbox-label:has(input:checked) {
	box-shadow:
		inset 3px 3px 6px #b8bcc2,
		inset -3px -3px 6px #ffffff;
	color: #2d3748 !important;
}

.ids-otp-preset-neumorphism .ids-otp-switch-slider {
	background: #d1d9e6;
	box-shadow:
		inset 2px 2px 4px #b8bcc2,
		inset -2px -2px 4px #ffffff;
}

.ids-otp-preset-neumorphism .ids-otp-code-input {
	background: #e0e5ec;
	border: none;
	box-shadow:
		inset 3px 3px 6px #b8bcc2,
		inset -3px -3px 6px #ffffff;
	color: #2d3748;
}

/* Neumorphism: logo inside / below */
.ids-otp-preset-neumorphism .ids-otp-logo-inside img {
	filter: grayscale(50%) brightness(0.8);
}

.ids-otp-preset-neumorphism .ids-otp-logo-below {
	border-top-color: #c8cdd5;
}

.ids-otp-preset-neumorphism .ids-otp-logo-below img {
	filter: grayscale(50%) brightness(0.7);
}

/* Neumorphism: timer resend */
.ids-otp-preset-neumorphism .ids-otp-timer {
	color: #718096;
}

.ids-otp-preset-neumorphism .ids-otp-resend-btn {
	color: #4a5568;
}

.ids-otp-preset-neumorphism .ids-otp-resend-btn:hover {
	color: #2d3748;
}

/* ═══════════════════════════ Neumorphism + Dark Mode ═══════════════════════════ */

body.ids-otp-dark.ids-otp-preset-neumorphism {
	background: #2d2d2d;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-card {
	background: #2d2d2d;
	border: none;
	box-shadow:
		inset 8px 8px 16px #1a1a1a,
		inset -8px -8px 16px #404040;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-icon {
	background: #2d2d2d;
	color: #bbb;
	box-shadow:
		6px 6px 12px #1a1a1a,
		-6px -6px 12px #404040;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-title {
	color: #e0e0e0;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-subtitle {
	color: #999;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-field label {
	color: #bbb;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-input {
	background: #2d2d2d;
	border: none;
	box-shadow:
		inset 3px 3px 6px #1a1a1a,
		inset -3px -3px 6px #404040;
	color: #e0e0e0;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-input:focus {
	box-shadow:
		inset 3px 3px 6px #1a1a1a,
		inset -3px -3px 6px #404040,
		0 0 0 2px #555;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-input::placeholder {
	color: #666;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-input-icon {
	color: #666;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-input-wrap:focus-within .ids-otp-input-icon {
	color: #bbb;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-btn-primary {
	background: #2d2d2d;
	color: #e0e0e0;
	box-shadow:
		6px 6px 12px #1a1a1a,
		-6px -6px 12px #404040;
	border: none;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-btn-primary:hover:not(:disabled) {
	background: #2d2d2d;
	box-shadow:
		4px 4px 8px #1a1a1a,
		-4px -4px 8px #404040;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-btn-primary:active:not(:disabled) {
	box-shadow:
		inset 4px 4px 8px #1a1a1a,
		inset -4px -4px 8px #404040;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-btn-arrow {
	color: #bbb;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-sent-info {
	background: #2d2d2d;
	border: none;
	box-shadow:
		inset 3px 3px 6px #1a1a1a,
		inset -3px -3px 6px #404040;
	color: #e0e0e0;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-back-link {
	color: #888;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-back-link:hover {
	color: #e0e0e0;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-footer-text {
	color: #666;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-site-name {
	color: #e0e0e0;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-radio-label,
.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-checkbox-label {
	background: #2d2d2d !important;
	border: none !important;
	box-shadow:
		3px 3px 6px #1a1a1a,
		-3px -3px 6px #404040;
	color: #bbb !important;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-radio-label:has(input:checked),
.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-checkbox-label:has(input:checked) {
	box-shadow:
		inset 3px 3px 6px #1a1a1a,
		inset -3px -3px 6px #404040;
	color: #e0e0e0 !important;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-switch-slider {
	background: #3a3a3a;
	box-shadow:
		inset 2px 2px 4px #1a1a1a,
		inset -2px -2px 4px #404040;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-code-input {
	background: #2d2d2d;
	border: none;
	box-shadow:
		inset 3px 3px 6px #1a1a1a,
		inset -3px -3px 6px #404040;
	color: #e0e0e0;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-timer {
	color: #888;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-resend-btn {
	color: #999;
}

.ids-otp-dark.ids-otp-preset-neumorphism .ids-otp-resend-btn:hover {
	color: #e0e0e0;
}

/* ═══════════════════════════ Minimal + Dark Mode ═══════════════════════════ */

body.ids-otp-dark.ids-otp-preset-minimal {
	background: #000000;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-card {
	background: #000000;
	border: none;
	box-shadow: none;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-icon {
	background: #ffffff;
	color: #000000;
	box-shadow: none;
	border: none;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-title {
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-subtitle {
	color: #a3a3a3;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-field label {
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-input {
	background: #000000;
	border: 1px solid #262626;
	box-shadow: none;
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-input:focus {
	border-color: #ffffff;
	box-shadow: none;
	outline: none;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-input::placeholder {
	color: #525252;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-input-icon {
	color: #525252;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-input-wrap:focus-within .ids-otp-input-icon {
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-btn-primary {
	background: #ffffff;
	color: #000000;
	box-shadow: none;
	border: none;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-btn-primary:hover:not(:disabled) {
	background: #e5e5e5;
	box-shadow: none;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-btn-arrow {
	color: #000000;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-sent-info {
	background: #0a0a0a;
	border: 1px solid #262626;
	box-shadow: none;
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-back-link {
	color: #a3a3a3;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-back-link:hover {
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-footer-text {
	color: #737373;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-site-name {
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-radio-label,
.ids-otp-dark.ids-otp-preset-minimal .ids-otp-checkbox-label {
	background: #000000 !important;
	border: 1px solid #262626 !important;
	box-shadow: none !important;
	color: #ffffff !important;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-radio-label:has(input:checked),
.ids-otp-dark.ids-otp-preset-minimal .ids-otp-checkbox-label:has(input:checked) {
	border-color: #ffffff !important;
	background: #000000 !important;
	color: #ffffff !important;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-switch-slider {
	background: #262626;
	box-shadow: none;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-code-input {
	background: #000000;
	border: 1px solid #262626;
	box-shadow: none;
	color: #ffffff;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-timer {
	color: #a3a3a3;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-resend-btn {
	color: #a3a3a3;
}

.ids-otp-dark.ids-otp-preset-minimal .ids-otp-resend-btn:hover {
	color: #ffffff;
}
