.offsport-auth {
	--oa-bg: #11141c;
	--oa-border: rgba(255, 255, 255, 0.22);
	--oa-text: #f4f7fb;
	--oa-muted: #a8b3c4;
	--oa-field: #11141c;
	--oa-blue: #0076ff;
	--oa-glow: #00d2ff;
	box-sizing: border-box;
	max-width: 440px;
	margin: 28px auto 56px;
	padding: 32px 28px 28px;
	background: var(--oa-bg);
	border: 1px solid var(--oa-border);
	border-radius: 20px;
	color: var(--oa-text);
	font-family: "Vazirmatn", "IRANSansX", "IRANSans", "Yekan Bakh", "Segoe UI", sans-serif;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	direction: rtl;
}

.offsport-auth *,
.offsport-auth *::before,
.offsport-auth *::after {
	box-sizing: border-box;
}

.offsport-auth__kicker {
	margin: 0 0 8px;
	color: var(--oa-glow);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.22em;
}

.offsport-auth__title {
	margin: 0;
	color: var(--oa-text);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.3;
}

.offsport-auth__lead,
.offsport-auth__hint {
	margin: 8px 0 0;
	color: var(--oa-muted);
	font-size: 14px;
	line-height: 1.7;
}

.offsport-auth__notice {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
}

.offsport-auth__notice.is-error {
	color: #ffd0d6;
	background: rgba(255, 51, 88, 0.14);
	border: 1px solid rgba(255, 51, 88, 0.4);
	animation: offsportAuthShake 0.35s ease;
}

.offsport-auth__notice.is-ok {
	color: #d9ffe8;
	background: rgba(0, 230, 118, 0.12);
	border: 1px solid rgba(0, 230, 118, 0.35);
	animation: offsportAuthIn 0.28s ease;
}

.offsport-auth__step {
	margin-top: 22px;
}

.offsport-auth__step.is-active {
	animation: offsportAuthIn 0.28s ease;
}

.offsport-auth__label {
	display: block;
	margin: 14px 0 8px;
	color: var(--oa-muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
	white-space: normal;
	overflow: visible;
}

.offsport-auth__field {
	position: relative;
}

.offsport-auth input.offsport-auth__input {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 56px;
	margin: 0;
	padding: 15px 16px;
	color: var(--oa-text) !important;
	background: var(--oa-field) !important;
	border: 1px solid var(--oa-border) !important;
	border-radius: 14px !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 500;
	line-height: 24px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-align: right;
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.offsport-auth input.offsport-auth__otp-digit {
	display: block;
	width: 58px;
	max-width: 58px;
	height: 58px;
	min-height: 58px;
	margin: 0;
	padding: 0;
	color: var(--oa-text) !important;
	background: var(--oa-field) !important;
	border: 1px solid var(--oa-border) !important;
	border-radius: 14px !important;
	font-family: inherit;
	font-size: 22px !important;
	font-weight: 800;
	line-height: 58px !important;
	letter-spacing: 0 !important;
	text-align: center;
	outline: none;
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}

.offsport-auth input.offsport-auth__input::placeholder,
.offsport-auth input.offsport-auth__otp-digit::placeholder {
	color: #9aa6b8;
	opacity: 1;
	font-size: 16px;
	line-height: 24px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.offsport-auth__field .offsport-auth__input {
	padding-right: 16px;
	padding-left: 48px;
}

.offsport-auth input.offsport-auth__input:focus,
.offsport-auth input.offsport-auth__otp-digit:focus,
.offsport-auth input.offsport-auth__input:focus-visible,
.offsport-auth input.offsport-auth__otp-digit:focus-visible {
	border: 1px solid #0076ff !important;
	box-shadow: 0 0 0 3px rgba(0, 118, 255, 0.28) !important;
}

.offsport-auth__eye {
	position: absolute;
	top: 50%;
	left: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 36px;
	margin: 0;
	padding: 0 !important;
	color: var(--oa-muted) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	transform: translateY(-50%);
	cursor: pointer;
}

.offsport-auth__eye.is-on {
	color: var(--oa-glow);
}

.offsport-auth__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: 18px;
	padding: 14px 18px !important;
	color: #fff !important;
	background: linear-gradient(90deg, #0076ff 0%, #00d2ff 100%) !important;
	border: 0 !important;
	border-radius: 14px !important;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 800;
	letter-spacing: 0 !important;
	text-transform: none !important;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(0, 118, 255, 0.28);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.offsport-auth__submit:hover {
	transform: translateY(-1px);
}

.offsport-auth__submit:disabled {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.offsport-auth__text,
.offsport-auth__back {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 8px 0 !important;
	color: var(--oa-muted) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 14px !important;
	font-weight: 700;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer;
}

.offsport-auth__text {
	color: var(--oa-glow);
}

.offsport-auth__text:disabled {
	color: var(--oa-muted);
	cursor: default;
}

.offsport-auth__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.offsport-auth__grid > div {
	min-width: 0;
}

.offsport-auth__gender {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 4px;
	background: #11141c;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 14px;
}

.offsport-auth__choice {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 12px 10px;
	color: #d5dce8;
	background: #11141c;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-align: center;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.offsport-auth__choice input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	appearance: none;
}

.offsport-auth__choice span {
	display: block;
	overflow: visible;
	color: inherit;
	font-size: 16px;
	line-height: 1.2;
	pointer-events: none;
}

.offsport-auth__choice:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

.offsport-auth__choice.is-on,
.offsport-auth__choice:has(input:checked) {
	color: #fff;
	background: #0076ff;
	border-color: #0076ff;
	box-shadow: 0 0 18px rgba(0, 118, 255, 0.45);
}

.offsport-auth__choice:has(input:focus-visible) {
	outline: 2px solid #0076ff;
	outline-offset: 2px;
}

.offsport-auth__otp {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
	direction: ltr;
}

.offsport-auth__test {
	margin: 10px 0 0;
	color: var(--oa-glow);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

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

@keyframes offsportAuthShake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

@media (max-width: 640px) {
	.offsport-auth {
		margin: 16px 12px 40px;
		padding: 24px 16px 20px;
	}

	.offsport-auth__label {
		font-size: 14px;
		line-height: 1.5;
	}

	.offsport-auth input.offsport-auth__input {
		min-height: 56px;
		padding: 15px 16px;
		font-size: 16px !important;
		line-height: 24px !important;
	}

	.offsport-auth__field .offsport-auth__input {
		padding-right: 16px;
		padding-left: 48px;
	}

	.offsport-auth__grid {
		grid-template-columns: 1fr;
		gap: 4px;
	}

	.offsport-auth__gender {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.offsport-auth__choice,
	.offsport-auth__choice span {
		font-size: 16px;
	}
}
