/* Ruberah Mobile OTP Login */
.ruberah-login {
	max-width: 420px;
	margin: 0 auto;
	font-family: inherit;
	direction: rtl;
}

.ruberah-login__tabs {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #e5e7eb;
}

.ruberah-login__tab {
	flex: 1;
	appearance: none;
	border: 0;
	background: transparent;
	padding: 0.75rem 0.5rem;
	cursor: pointer;
	font: inherit;
	color: #6b7280;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.ruberah-login__tab.is-active {
	color: #111827;
	border-bottom-color: #2563eb;
	font-weight: 600;
}

.ruberah-login__panel {
	display: none;
}

.ruberah-login__panel.is-active {
	display: block;
}

.ruberah-otp__label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	color: #374151;
}

.ruberah-otp__input {
	width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 0.9rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	margin-bottom: 0.85rem;
	direction: ltr;
	text-align: left;
}

.ruberah-otp__input:focus,
.ruberah-otp__box:focus {
	outline: 2px solid #93c5fd;
	border-color: #2563eb;
}

.ruberah-otp__btn {
	width: 100%;
	appearance: none;
	border: 0;
	border-radius: 8px;
	padding: 0.8rem 1rem;
	background: #2563eb;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.ruberah-otp__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.ruberah-otp__btn--ghost {
	margin-top: 0.65rem;
	background: transparent;
	color: #2563eb;
	border: 1px solid #bfdbfe;
}

.ruberah-otp__hint {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	color: #6b7280;
	line-height: 1.5;
}

.ruberah-otp__alert {
	margin-bottom: 0.85rem;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.5;
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.ruberah-otp__alert.is-success {
	background: #ecfdf5;
	color: #065f46;
	border-color: #a7f3d0;
}

.ruberah-otp__alert.is-info {
	background: #eff6ff;
	color: #1e40af;
	border-color: #bfdbfe;
}

.ruberah-otp__phone-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	color: #374151;
}

.ruberah-otp__phone-value {
	letter-spacing: 0.02em;
}

.ruberah-otp__link {
	appearance: none;
	border: 0;
	background: none;
	color: #2563eb;
	cursor: pointer;
	font: inherit;
	padding: 0;
	text-decoration: underline;
}

.ruberah-otp__boxes {
	display: flex;
	gap: 0.45rem;
	justify-content: center;
	margin-bottom: 1rem;
	direction: ltr;
}

.ruberah-otp__box {
	width: 2.75rem;
	height: 3rem;
	text-align: center;
	font-size: 1.25rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 0;
}

.ruberah-otp__boxes.is-error .ruberah-otp__box {
	border-color: #ef4444;
	animation: ruberah-otp-shake 0.35s ease;
}

@keyframes ruberah-otp-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.ruberah-login__lost {
	margin-top: 0.75rem;
	font-size: 0.875rem;
}

.ruberah-otp-already {
	text-align: center;
}
