/**
 * Login / register page — desktop + mobile.
 */

.page-login .site-main,
.page-seller-login .site-main {
	background-color: #f7f7f7;
}

.oten-login {
	display: flex;
	justify-content: center;
	padding: 24px 16px 40px;
}

.oten-login__card {
	box-sizing: border-box;
	width: 100%;
	background: #fff;
	border: 1px solid #eee;
	padding: 32px 20px 28px;
	text-align: center;
}

.oten-login__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.oten-login__icon-svg {
	display: block;
	width: 20px;
	height: 23px;
}

.oten-login__title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 16px;
}

.oten-login__title-text {
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 500;
	color: var(--oten-ink);
}

.oten-login__accent-bar {
	display: block;
	flex-shrink: 0;
	width: 4px;
	height: 18px;
	background-color: var(--oten-brand);
}

.oten-login__subtitle {
	margin: 0 0 24px;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #666;
}

.oten-login__field {
	display: block;
	margin-bottom: 16px;
}

.oten-login__input {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid #e5e5e5;
	padding: 12px 14px;
	background: #fff;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: var(--oten-ink);
	text-align: center;
	letter-spacing: 4px;
	direction: rtl;
	transition: border-color 0.2s ease;
}

.oten-login__input::placeholder {
	color: #999;
	letter-spacing: normal;
}

.oten-login__input:focus {
	outline: none;
	border-color: var(--oten-brand);
}

.oten-login__phone-display {
	unicode-bidi: isolate;
	color: var(--oten-ink);
	font-weight: 500;
}

.oten-login__phone-message {
	margin: -8px 0 16px;
	font-family: IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	color: #c0392b;
	text-align: center;
}

.oten-login__submit[disabled],
.oten-login__resend[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

.oten-login__resend {
	padding: 0;
	border: 0;
	background: none;
	font-family: IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	color: var(--oten-brand);
	cursor: pointer;
}

.oten-login__resend:hover,
.oten-login__resend:focus-visible {
	text-decoration: underline;
}

.oten-login__resend.is-loading {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	pointer-events: none;
}

.oten-login__resend.is-loading::before {
	content: '';
	display: block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	border: 2px solid rgba(96, 15, 34, 0.25);
	border-top-color: var(--oten-brand);
	border-radius: 50%;
	animation: oten-login-spin 0.7s linear infinite;
}

.oten-login__otp-meta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 20px;
}

.oten-login__edit-phone {
	padding: 0;
	border: 0;
	background: none;
	font-family: IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	color: var(--oten-brand);
	cursor: pointer;
}

.oten-login__edit-phone:hover,
.oten-login__edit-phone:focus-visible {
	text-decoration: underline;
}

.oten-login__edit-phone.is-loading {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	pointer-events: none;
}

.oten-login__edit-phone.is-loading::before {
	content: '';
	display: block;
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	border: 2px solid rgba(96, 15, 34, 0.25);
	border-top-color: var(--oten-brand);
	border-radius: 50%;
	animation: oten-login-spin 0.7s linear infinite;
}

.oten-login__otp-meta-sep {
	display: block;
	width: 1px;
	height: 12px;
	background-color: #ddd;
}

.oten-login__timer {
	direction: ltr;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	color: #888;
}

.oten-login__otp-boxes {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 0 0 16px;
}

.oten-login__otp-box {
	box-sizing: border-box;
	width: 44px;
	height: 48px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	background: #fff;
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 18px;
	color: var(--oten-ink);
	text-align: center;
	transition: border-color 0.2s ease;
}

.oten-login__otp-box:focus {
	outline: none;
	border-color: var(--oten-brand);
}

.oten-login__otp-message {
	margin: 0 0 16px;
	font-family: IRANYekanX, Tahoma, sans-serif;
	font-size: 12px;
	color: #c0392b;
}

.oten-login__otp-message.is-success {
	color: #1b7a6c;
}

.oten-login__submit {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: 0;
	background: var(--oten-brand);
	font-family: Kalameh, IRANYekanX, Tahoma, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.oten-login__submit:hover,
.oten-login__submit:focus-visible {
	background-color: var(--oten-brand-dark);
}

.oten-login__submit:focus-visible {
	outline: 2px solid var(--oten-brand);
	outline-offset: 2px;
}

.oten-login__submit.is-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	pointer-events: none;
}

.oten-login__submit.is-loading::before {
	content: '';
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: oten-login-spin 0.7s linear infinite;
}

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

@media (min-width: 768px) {
	.oten-login {
		padding: 64px 24px 96px;
	}

	.oten-login__card {
		width: 949px;
		max-width: 100%;
		padding: 56px 64px 48px;
	}

	.oten-login__icon-svg {
		width: 26px;
		height: 30px;
	}

	.oten-login__icon {
		margin-bottom: 16px;
	}

	.oten-login__title-text {
		font-size: 26px;
	}

	.oten-login__accent-bar {
		width: 5px;
		height: 26px;
	}

	.oten-login__subtitle {
		font-size: 16px;
		margin-bottom: 32px;
	}

	.oten-login__field {
		max-width: 420px;
		margin: 0 auto 24px;
	}

	.oten-login__input {
		padding: 14px 18px;
		font-size: 15px;
	}

	.oten-login__submit {
		max-width: 420px;
		margin-inline: auto;
		padding: 16px;
		font-size: 16px;
	}

	.oten-login__otp-meta {
		margin-bottom: 28px;
	}

	.oten-login__edit-phone,
	.oten-login__timer,
	.oten-login__resend {
		font-size: 14px;
	}

	.oten-login__phone-message {
		font-size: 14px;
	}

	.oten-login__otp-boxes {
		gap: 14px;
		margin-bottom: 24px;
	}

	.oten-login__otp-box {
		width: 56px;
		height: 60px;
		font-size: 22px;
	}

	.oten-login__otp-message {
		font-size: 14px;
	}
}
