/**
 * IMPO Mobile Auth — public forms.
 */

.ima-form {
	max-width: 420px;
	margin: 0 auto;
	font-family: Tahoma, "Segoe UI", sans-serif;
	direction: rtl;
	text-align: right;
}

.ima-card {
	padding: 24px;
	border-radius: 16px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ima-title {
	margin: 0 0 16px;
	font-size: 1.25rem;
}

.ima-label {
	display: block;
	margin: 12px 0 6px;
	font-size: 0.9rem;
}

.ima-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d6d3e8;
	border-radius: 12px;
	font-size: 1rem;
	background: #fff;
	color: inherit;
}

.ima-input:focus {
	outline: 2px solid #7c3aed;
	outline-offset: 1px;
}

.ima-mobile {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d6d3e8;
	border-radius: 12px;
	padding: 0 10px;
	background: #fff;
}

.ima-mobile .ima-input {
	border: 0;
	padding-inline-start: 0;
}

.ima-flag {
	font-size: 1.4rem;
	line-height: 1;
}

.ima-password {
	position: relative;
}

.ima-eye {
	position: absolute;
	inset-inline-start: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ima-eye::before {
	content: "👁";
	font-size: 1rem;
}

.ima-eye.is-on::before {
	content: "🙈";
}

.ima-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 16px;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: #7c3aed;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ima-btn:hover {
	transform: translateY(-1px);
}

.ima-link {
	display: block;
	margin-top: 12px;
	border: 0;
	background: none;
	color: #6d28d9;
	cursor: pointer;
	text-decoration: underline;
}

.ima-otp {
	display: flex;
	gap: 8px;
	justify-content: center;
	direction: ltr;
}

.ima-otp input {
	width: 44px;
	height: 48px;
	text-align: center;
	font-size: 1.2rem;
	border-radius: 10px;
	border: 1px solid #d6d3e8;
}

.ima-captcha__row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.ima-captcha__img {
	border-radius: 8px;
	display: block;
}

.ima-captcha__refresh {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 8px;
	background: #ede9fe;
	cursor: pointer;
}

.is-hidden {
	display: none !important;
}

.ima-hint {
	margin: 0 0 12px;
	opacity: 0.8;
}

.ima-license-blocked {
	padding: 16px;
	border-radius: 12px;
	background: #fef2f2;
	color: #991b1b;
}

@media (max-width: 640px) {
	.ima-form {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ima-card,
	.ima-btn {
		transition: none;
	}
}

.ima-protect-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 14px;
	font-family: Tahoma, "Segoe UI", sans-serif;
}

.ima-protect-bar.is-danger {
	background: #7f1d1d;
	color: #fff;
}

.ima-protect-bar.is-ok {
	background: #14532d;
	color: #dcfce7;
}

.ima-btn--bar {
	width: auto;
	margin: 0;
	background: #fff;
	color: #7f1d1d;
}

.ima-drawer {
	position: fixed;
	inset: 0;
	z-index: 100000;
}

.ima-drawer[hidden] {
	display: none !important;
}

.ima-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 10, 31, 0.55);
}

.ima-drawer__panel {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	max-height: 92vh;
	overflow: auto;
	padding: 20px 16px 28px;
	border-radius: 20px 20px 0 0;
	background: #fff;
	box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.2);
}

.ima-drawer__close {
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f3e8ff;
	font-size: 1.4rem;
	cursor: pointer;
}

body.ima-drawer-open {
	overflow: hidden;
}

.ima-operator {
	margin: 6px 0 0;
	font-size: 12px;
	color: #6d28d9;
}

.ima-order-ok,
.ima-order-bad {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 12px;
}

.ima-order-ok {
	background: #dcfce7;
	color: #14532d;
}

.ima-order-bad {
	background: #fee2e2;
	color: #7f1d1d;
}
