/* =========================
   RESPONSIVE
   Cross-system responsive overrides only
   ========================= */

@media (max-width: 921px) {
	.rv-auth-wrap {
		padding: 24px 24px 18px;
	}

	.rv-auth-brand {
		margin-bottom: 34px;
	}

	.rv-auth-brand__title {
		font-size: clamp(40px, 8vw, 60px);
	}

	.rv-auth-brand__text {
		max-width: 100%;
		white-space: normal;
		overflow: visible;
		text-overflow: unset;
	}

	.rv-auth-title {
		font-size: 28px;
	}

	.rv-auth-panel-title {
		font-size: 24px;
	}
}

@media (max-width: 768px) {
	.rv-auth-page {
		padding: 64px 16px 80px;
	}

	.page-template-page-login-php .rv-auth-page {
		padding: 64px 16px 80px;
	}

	.rv-auth-wrap {
		padding: 22px 18px 18px;
	}

	.rv-auth-brand {
		margin-bottom: 28px;
		text-align: center;
	}

	.rv-auth-brand__kicker {
		margin-bottom: 12px;
	}

	.rv-auth-brand__title {
		font-size: clamp(34px, 10vw, 48px);
		line-height: 0.98;
	}

	.rv-auth-brand__text {
		margin-top: 16px;
		font-size: 14px;
		line-height: 1.55;
	}

	.rv-auth-head {
		margin-bottom: 20px;
	}

	.rv-auth-panel-title {
		font-size: 22px;
		line-height: 1.08;
	}

	.rv-auth-title {
		font-size: 26px;
		line-height: 1.06;
	}

	.rv-auth-text {
		font-size: 13px;
		line-height: 1.55;
	}

	.rv-auth-text--subtle {
		font-size: 12px;
	}

	.rv-footer {
		padding: 48px 16px;
	}

	.rv-footer__social {
		gap: 16px;
	}

	.rv-footer__bottom {
		gap: 8px;
	}
}

/* =========================
   MOBILE AUTH
   ========================= */

@media (max-width: 640px) {
	.rv-auth-page {
		padding: 44px 16px 64px;
	}

	.rv-auth-brand {
		margin-bottom: 26px;
	}

	.rv-auth-brand__title {
		font-size: clamp(32px, 9vw, 44px);
	}

	.rv-auth-brand__text {
		font-size: 15px;
		white-space: normal;
		text-overflow: unset;
	}

	.rv-auth {
		max-width: none;
	}

	.rv-auth-wrap {
		padding: 24px 20px 18px;
	}

	.rv-auth-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.rv-auth-identity {
		align-items: center;
	}

	.rv-auth-submit {
		width: 100%;
		min-width: 0;
	}

	.rv-auth-submit--continue {
		width: auto;
		min-width: 180px;
	}

	.rv-auth-mode__list {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.rv-auth-mode__option,
	.rv-auth-mode__label,
	.rv-auth-mode__list > button,
	.rv-auth-mode__list > a {
		width: 100%;
		min-width: 0;
		padding: 10px 12px;
		letter-spacing: 0.06em;
	}

	.rv-auth-turnstile {
		padding: 8px;
	}

	.rv-auth-turnstile > div {
		display: flex;
		justify-content: flex-start;
		width: 100%;
		min-width: 0;
		overflow: hidden;
	}

	.rv-auth-turnstile iframe {
		width: 300px !important;
		max-width: none !important;
		transform: translateY(-1.5px) scale(0.84);
		transform-origin: left center;
	}
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 480px) {
	.rv-auth-page {
		padding: 56px 14px 72px;
	}

	.page-template-page-login-php .rv-auth-page {
		padding: 56px 14px 72px;
	}

	.rv-auth-wrap {
		padding: 20px 16px 16px;
	}

	.rv-auth-brand__title {
		font-size: clamp(30px, 10.5vw, 40px);
	}

	.rv-auth-panel-title {
		font-size: 20px;
	}

	.rv-auth-title {
		font-size: 24px;
	}

	.rv-auth-mode__option {
		padding: 9px 10px;
		font-size: 11px;
		letter-spacing: 0.06em;
	}

	.rv-auth input[type="text"],
	.rv-auth input[type="email"],
	.rv-auth input[type="password"],
	.rv-auth input[type="tel"],
	.rv-auth input[type="url"],
	.rv-auth input[type="search"],
	.rv-auth input[type="number"],
	.rv-auth textarea,
	.rv-auth select {
		font-size: 16px;
	}

	.rv-footer__logo-text,
	.rv-footer__logo {
		font-size: 18px;
	}

	.rv-footer__tagline {
		font-size: 14px;
	}
}

/* =========================
   REDUCED MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
	body,
	body.rv-page-ready,
	body.rv-page-transition-out {
		transform: none !important;
		transition: none !important;
	}

	.js .rv-auth-step,
	.js .rv-auth-step.is-active {
		transform: none !important;
		filter: none !important;
		transition: none !important;
	}
}