/**
 * Login screen — Figma Massiva — Routeon "Log In Flow / Email" (183:16074).
 * Full-viewport split form + brand illustration; no page scroll.
 */

html.sd-portal-html--login,
body.sd-portal.sd-portal--login {
	margin: 0;
	padding: 0;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
	background: #fff;
}

html.sd-portal-html--login {
	height: 100vh;
	height: 100dvh;
}

body.sd-portal.sd-portal--login {
	height: 100%;
	min-height: 0;
}

body.sd-portal.sd-portal--login .sd-portal__frame,
body.sd-portal.sd-portal--login .sd-portal__body {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	max-height: 100%;
	overflow: hidden;
}

.sd-login {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	background: #fff;
	font-family: var(--sd-font);
	overflow: hidden;
}

.sd-login__form-side {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(24px, 5vh, 48px) clamp(24px, 6vw, 88px);
	box-sizing: border-box;
	min-height: 0;
	overflow: hidden;
	background: #fff;
}

.sd-login__box {
	width: 100%;
	max-width: 332px;
}

.sd-login__header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 0 24px;
	text-align: center;
}

.sd-login__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: #1c3442;
}

.sd-login__subtitle {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 26px;
	color: #747677;
}

.sd-login__form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.sd-login__field {
	position: relative;
	display: block;
	margin: 0;
}

.sd-login__input {
	width: 100%;
	height: 40px;
	box-sizing: border-box;
	padding: 8px 16px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	color: #01011b;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	outline: none;
}

.sd-login__field--password .sd-login__input {
	padding-right: 44px;
}

.sd-login__input::placeholder {
	color: #292b2c;
	opacity: 1;
}

.sd-login__input:focus {
	border-color: #5eaedb;
	box-shadow: 0 0 0 3px rgba(94, 174, 219, 0.18);
}

.sd-login__form.is-error .sd-login__input,
.sd-login__input.is-invalid {
	border-color: #f23f3f;
}

.sd-login__form.is-error .sd-login__input:focus,
.sd-login__input.is-invalid:focus {
	box-shadow: 0 0 0 3px rgba(242, 63, 63, 0.15);
}

.sd-login__error[hidden] {
	display: none;
}

.sd-login__toggle {
	position: absolute;
	top: 50%;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	transform: translateY(-50%);
	cursor: pointer;
}

.sd-login__toggle:hover {
	background: rgba(28, 52, 66, 0.06);
}

.sd-login__toggle-icon {
	display: block;
	width: 22px;
	height: 16px;
}

.sd-login__toggle.is-on .sd-login__toggle-icon {
	opacity: 0.55;
}

.sd-login__error {
	margin: -8px 0 0;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	color: #f78282;
}

.sd-login__submit {
	width: 100%;
	height: 40px;
	box-sizing: border-box;
	padding: 12px 32px;
	border: 0;
	border-radius: 8px;
	background: #5eaedb;
	color: #fafcfe;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.sd-login__submit:hover {
	filter: brightness(1.05);
}

.sd-login__submit:focus-visible {
	outline: 2px solid #5eaedb;
	outline-offset: 3px;
}

.sd-login__visual {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	min-height: 0;
	height: 100%;
	overflow: hidden;
	background: #fff;
}

.sd-login__visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

@media (max-width: 1024px) {
	.sd-login {
		grid-template-columns: 1fr;
	}

	.sd-login__visual {
		display: none;
	}

	.sd-login__title {
		font-size: 28px;
	}
}

@media (max-height: 640px) {
	.sd-login__header {
		gap: 10px;
		margin-bottom: 16px;
	}

	.sd-login__form {
		gap: 16px;
	}

	.sd-login__title {
		font-size: 24px;
	}
}
