/* Compact inline security check — auth-split forms */

.reg-captcha {
	margin-bottom: 0.5rem;
	max-width: 100%;
}

.reg-captcha__head {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem 0.5rem;
	margin-bottom: 0.35rem;
}

.reg-captcha__label {
	font-size: 0.75rem;
	font-weight: 600;
	color: #a0a0c0 !important;
	margin: 0 !important;
	letter-spacing: 0.02em;
}

.reg-captcha__tag {
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #a5b4fc;
	background: rgba(99, 102, 241, 0.14);
	border: 1px solid rgba(129, 140, 248, 0.28);
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	line-height: 1.2;
}

.reg-captcha__row {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	max-width: 100%;
	width: fit-content;
	padding: 0.35rem 0.45rem;
	border-radius: 0.6rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(145deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 27, 75, 0.4) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 4px 14px rgba(0, 0, 0, 0.15);
}

.reg-captcha__question {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex: 0 1 auto;
	max-width: 100%;
	padding: 0.3rem 0.55rem;
	border-radius: 0.45rem;
	background: rgba(99, 102, 241, 0.14);
	border: 1px solid rgba(129, 140, 248, 0.22);
	white-space: nowrap;
}

.reg-captcha__icon {
	flex-shrink: 0;
	font-size: 0.72rem;
	color: #a5b4fc;
}

#captcha-question-text {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #f8fafc;
	line-height: 1.2;
}

.reg-captcha__input {
	width: 4.25rem !important;
	max-width: 4.25rem !important;
	min-width: 4.25rem;
	flex-shrink: 0;
	text-align: center;
	font-weight: 700;
	font-size: 0.8125rem !important;
	padding: 0.35rem 0.35rem !important;
	letter-spacing: 0.03em;
	border-radius: 0.45rem !important;
}

.reg-captcha__refresh {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.45rem;
	background: rgba(255, 255, 255, 0.06);
	color: #c7d2fe;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.reg-captcha__refresh:hover:not(:disabled) {
	background: rgba(99, 102, 241, 0.28);
	border-color: rgba(129, 140, 248, 0.45);
	color: #fff;
}

.reg-captcha__refresh:focus-visible {
	outline: 2px solid #fbbf24;
	outline-offset: 2px;
}

.reg-captcha__refresh:disabled {
	opacity: 0.55;
	cursor: wait;
}

.reg-captcha__refresh.is-spinning i {
	animation: reg-captcha-spin 0.65s linear infinite;
}

@keyframes reg-captcha-spin {
	to { transform: rotate(360deg); }
}

.reg-captcha__error {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.6875rem;
	line-height: 1.3;
}

.reg-captcha__error.field-validation-error,
.reg-captcha__error.input-validation-error {
	color: #fca5a5 !important;
}

.reg-captcha__input.input-validation-error {
	border-color: rgba(248, 113, 113, 0.65) !important;
	box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.15);
}

@media (max-width: 480px) {
	.reg-captcha__row {
		width: 100%;
	}

	.reg-captcha__question {
		white-space: normal;
		flex: 1 1 100%;
	}
}
