/*
 * NSV authentication viewport corrections v90.
 * Keeps the two-column hotel composition while making it usable on
 * standard laptop screens and short browser windows.
 */

.nsv-register-page {
	min-height: 100svh;
}

.nsv-register-intro__content {
	width: 100%;
	min-width: 0;
}

.nsv-register-intro h1 {
	max-width: 10ch;
	overflow-wrap: anywhere;
	font-size: clamp(36px, 3.65vw, 54px);
	line-height: 1.02;
}

.nsv-login-intro h1 {
	max-width: 9ch;
}

/* Laptop and short desktop windows: the card occupies the available screen,
 * while only the form column can scroll when validation adds extra messages. */
@media (min-width: 761px) and (max-height: 920px) {
	html:has(.nsv-register-page),
	body:has(.nsv-register-page) {
		height: 100%;
		overflow: hidden;
	}

	.nsv-register-page {
		height: 100svh;
		overflow: hidden;
	}

	.nsv-register-header__inner {
		min-height: 62px;
	}

	.nsv-register-brand img {
		width: 38px;
		height: 38px;
	}

	.nsv-register-shell {
		display: flex;
		height: calc(100svh - 62px);
		flex-direction: column;
		padding-block: 12px;
	}

	.nsv-register-card,
	.nsv-login-card {
		height: 100%;
		min-height: 0;
		border-radius: 24px;
	}

	.nsv-register-intro,
	.nsv-login-intro {
		min-height: 0;
		padding: clamp(24px, 3vw, 38px);
	}

	.nsv-register-intro h1 {
		max-width: 9ch;
		font-size: clamp(34px, 3.25vw, 47px);
		line-height: 1.02;
	}

	.nsv-register-intro__content > p {
		max-width: 34ch;
		margin-top: 14px;
		font-size: 13px;
		line-height: 1.45;
	}

	.nsv-register-audience {
		gap: 6px;
		margin-top: 20px;
	}

	.nsv-register-audience article {
		grid-template-columns: 36px minmax(0, 1fr);
		gap: 10px;
		border-radius: 12px;
		padding: 9px 11px;
	}

	.nsv-register-audience article > span {
		width: 36px;
		height: 36px;
		border-radius: 10px;
	}

	.nsv-register-audience h2 {
		font-size: 12px;
	}

	.nsv-register-audience p {
		margin-top: 2px;
		font-size: 10px;
		line-height: 1.3;
	}

	.nsv-register-form,
	.nsv-login-form {
		min-height: 0;
		justify-content: flex-start;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 24px clamp(26px, 3.5vw, 42px) 26px;
		scrollbar-gutter: stable;
	}

	.nsv-login-form {
		justify-content: center;
	}

	.nsv-register-form::-webkit-scrollbar,
	.nsv-login-form::-webkit-scrollbar {
		width: 7px;
	}

	.nsv-register-form::-webkit-scrollbar-thumb,
	.nsv-login-form::-webkit-scrollbar-thumb {
		border: 2px solid #fff;
		border-radius: 999px;
		background: #b8cbc8;
	}

	.nsv-register-form__heading {
		margin-bottom: 17px;
	}

	.nsv-register-form__heading h2 {
		font-size: clamp(29px, 2.7vw, 37px);
	}

	.nsv-login-subtitle,
	.nsv-register-form__heading p {
		margin-top: 7px;
		font-size: 12px;
	}

	.nsv-register-roles {
		margin-bottom: 2px;
	}

	.nsv-register-roles legend,
	.nsv-register-field > label {
		margin-bottom: 6px;
	}

	.nsv-register-role label {
		min-height: 88px;
		border-radius: 14px;
		padding: 12px 14px;
	}

	.nsv-register-role__icon {
		margin-bottom: 5px;
		font-size: 17px;
	}

	.nsv-register-role small {
		margin-top: 2px;
	}

	.nsv-register-field {
		margin-top: 11px;
	}

	.nsv-register-field input,
	.nsv-register-field select,
	.nsv-register-field textarea,
	.nsv-register-captcha input {
		min-height: 44px !important;
		border-radius: 12px !important;
	}

	.nsv-register-email-note {
		grid-template-columns: 26px minmax(0, 1fr);
		gap: 8px;
		margin-top: 7px;
		padding: 8px 10px;
	}

	.nsv-register-email-note > i {
		width: 26px;
		height: 26px;
	}

	.nsv-register-email-note strong {
		font-size: 9px;
	}

	.nsv-register-email-note small,
	.nsv-register-email-help p,
	.nsv-register-email-help summary {
		font-size: 8px;
	}

	.nsv-register-captcha,
	.nsv-register-agreement {
		margin-top: 12px;
	}

	.nsv-register-submit {
		min-height: 48px;
		margin-top: 15px;
	}

	.nsv-register-privacy {
		margin-top: 7px;
	}

	.nsv-register-trust {
		display: none;
	}
}

/* Very short notebook windows: preserve the photograph and message, but remove
 * the two explanatory mini-cards that compete with the form for height. */
@media (min-width: 761px) and (max-height: 740px) {
	.nsv-register-intro,
	.nsv-login-intro {
		align-items: center;
	}

	.nsv-register-intro h1 {
		max-width: 8ch;
		font-size: clamp(31px, 3vw, 41px);
	}

	.nsv-register-intro__content > p {
		max-width: 29ch;
		margin-top: 11px;
		font-size: 12px;
	}

	.nsv-register-audience {
		display: none;
	}

	.nsv-register-form,
	.nsv-login-form {
		padding-top: 18px;
		padding-bottom: 18px;
	}
}

/* Tablet and phone pages remain naturally scrollable, but their decorative
 * image area no longer consumes most of the first screen. */
@media (max-width: 760px) {
	html:has(.nsv-register-page),
	body:has(.nsv-register-page) {
		height: auto;
		overflow: visible;
	}

	.nsv-register-shell {
		padding-block: 12px 24px;
	}

	.nsv-register-intro,
	.nsv-login-intro {
		min-height: 205px;
		padding: 24px;
	}

	.nsv-register-intro h1,
	.nsv-login-intro h1 {
		max-width: 12ch;
		font-size: clamp(31px, 8vw, 39px);
		line-height: 1.02;
	}

	.nsv-register-intro__content > p {
		max-width: 42ch;
		margin-top: 10px;
		font-size: 12px;
		line-height: 1.4;
	}

	.nsv-register-form,
	.nsv-login-form {
		overflow: visible;
		padding-top: 25px;
	}
}

@media (max-width: 480px) {
	.nsv-register-intro,
	.nsv-login-intro {
		min-height: 158px;
		padding: 19px;
	}

	.nsv-register-intro h1,
	.nsv-login-intro h1 {
		max-width: 13ch;
		font-size: 30px;
	}

	.nsv-register-intro__content > p {
		display: none;
	}

	.nsv-register-form,
	.nsv-login-form {
		padding: 22px 17px 25px;
	}
}
