.slm-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--slm-bg, #f5f6f8);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Vazirmatn", sans-serif;
	direction: rtl;
}

.slm-wrapper {
	width: 100%;
	max-width: 400px;
	margin: 40px auto;
	padding: 0 16px;
	box-sizing: border-box;
}

.slm-card {
	background: #fff;
	border-radius: var(--slm-radius, 10px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	padding: 32px 28px;
	box-sizing: border-box;
}

.slm-logo {
	display: block;
	max-width: 140px;
	max-height: 80px;
	margin: 0 auto 24px;
}

.slm-title {
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 24px;
	color: var(--slm-text, #1f2937);
}

.slm-field {
	margin-bottom: 16px;
}

.slm-field label {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--slm-text, #1f2937);
}

.slm-field input[type="text"],
.slm-field input[type="email"],
.slm-field input[type="password"],
.slm-field input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1px solid #e2e5ea;
	border-radius: calc(var(--slm-radius, 10px) * 0.6);
	font-size: 14px;
	background: #fafafa;
	transition: border-color .15s ease, background .15s ease;
	outline: none;
}

.slm-field input:focus {
	border-color: var(--slm-primary, #2563eb);
	background: #fff;
}

.slm-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 20px;
}

.slm-row-between label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--slm-text, #1f2937);
}

.slm-link {
	color: var(--slm-primary, #2563eb);
	text-decoration: none;
}

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

.slm-btn {
	width: 100%;
	padding: 12px 14px;
	background: var(--slm-primary, #2563eb);
	color: #fff;
	border: none;
	border-radius: calc(var(--slm-radius, 10px) * 0.6);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}

.slm-btn:hover {
	opacity: 0.92;
}

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

.slm-footer-link {
	text-align: center;
	font-size: 13px;
	margin-top: 20px;
	color: var(--slm-text, #1f2937);
}

.slm-message {
	font-size: 13px;
	padding: 10px 12px;
	border-radius: calc(var(--slm-radius, 10px) * 0.5);
	margin-bottom: 16px;
	display: none;
}

.slm-message.slm-error {
	background: #fef2f2;
	color: #b91c1c;
	display: block;
}

.slm-message.slm-success {
	background: #f0fdf4;
	color: #15803d;
	display: block;
}

.slm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	opacity: 0;
	height: 0;
	width: 0;
}

.slm-otp-inputs {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-bottom: 20px;
}

.slm-otp-inputs input {
	width: 42px;
	height: 48px;
	text-align: center;
	font-size: 18px;
	border: 1px solid #e2e5ea;
	border-radius: calc(var(--slm-radius, 10px) * 0.5);
	background: #fafafa;
}

.slm-otp-inputs input:focus {
	border-color: var(--slm-primary, #2563eb);
	background: #fff;
	outline: none;
}

.slm-resend {
	text-align: center;
	font-size: 13px;
	margin-top: 12px;
}

.slm-resend button {
	background: none;
	border: none;
	color: var(--slm-primary, #2563eb);
	cursor: pointer;
	font-size: 13px;
	padding: 0;
}

.slm-resend button:disabled {
	color: #9ca3af;
	cursor: not-allowed;
}

.slm-recaptcha-holder {
	margin-bottom: 16px;
	display: flex;
	justify-content: center;
}

.slm-notice {
	text-align: center;
	font-size: 14px;
}

.slm-telegram-notice {
	background: #fffbeb;
	color: #92400e;
	border: 1px solid #fde68a;
	border-radius: calc(var(--slm-radius, 10px) * 0.5);
	padding: 12px 14px;
	font-size: 13px;
	line-height: 1.8;
	text-align: center;
}

.slm-telegram-join-btn {
	background: #229ED9 !important;
}

.slm-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,0.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: slm-spin .6s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

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