.login-shell {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow-x: hidden;
	overflow-y: auto;
	background-color: #f4f6f8;
}

.login-shell .fullcontent {
	height: 100dvh;
	min-height: 100dvh;
	width: 100%;
	min-width: 0;
}

body:has(.login-shell) {
	display: block;
	height: 100dvh;
	min-height: 100dvh;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background-color: #f4f6f8;
	color: #1c1d23;
	font-family: "AmpleAlt", "Baloo 2", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
	body:has(.login-shell) {
		background-color: #222325;
		color: #f5f6f9;
	}

	.login-shell {
		background-color: #222325;
	}
}

.login-shell .termos a:hover {
	color: var(--color-dhedalos-green-light, rgb(30 255 157));
	background-color: var(--color-dhedalos-black-light, #1c1d23);
}

.login-shell .form-base > :not(:last-child) {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-color: color-mix(in oklab, #606775 30%, transparent);
}

@media (prefers-color-scheme: dark) {
	.login-shell .form-base > :not(:last-child) {
		border-color: color-mix(in oklab, #606775 40%, transparent);
	}

	.login-shell .form-base:focus-within > :not(:last-child) {
		border-color: var(--color-dhedalos-green-light, #1eff9d);
	}
}

.login-shell .bt-dhedalos-icons {
	flex-shrink: 0;
	text-decoration: none;
}

.login-shell .bt-dhedalos-icons svg {
	display: block;
}

.login-shell #img-cover .marca-produto img {
	width: fit-content;
	max-width: 180px;
	object-fit: contain;
}

.login-shell .label-dhedalos span img {
	width: 14px;
	height: 14px;
	max-width: none;
	object-fit: contain;
}

.login-shell .marca-parceiro img {
	width: 80px;
	height: 40px;
	max-width: none;
	object-fit: contain;
}

.login-shell #img-cover .swiper {
	height: 100%;
}

/* Mobile: hero some quando o flex comprime #img-cover (fica só o fundo escuro) */
@media (max-width: 63.99rem) {
	.login-shell #img-cover {
		flex-shrink: 0;
	}

	.login-shell #login-form {
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
	}
}

@media (min-width: 64rem) {
	.login-shell .fullcontent {
		height: 100dvh;
		min-height: 0;
		overflow: hidden;
	}

	.login-shell #login-form {
		min-height: 0;
		height: 100%;
		overflow-y: auto;
		overflow-x: hidden;
		scrollbar-gutter: stable;
		scrollbar-width: thin;
		scrollbar-color: rgb(34 35 37 / 0.35) transparent;
	}

	.login-shell #login-form::-webkit-scrollbar {
		width: 6px;
	}

	.login-shell #login-form::-webkit-scrollbar-track {
		background: transparent;
	}

	.login-shell #login-form::-webkit-scrollbar-thumb {
		background-color: rgb(34 35 37 / 0.35);
		border-radius: 999px;
	}

	.login-shell #login-form::-webkit-scrollbar-thumb:hover {
		background-color: rgb(30 255 157 / 0.7);
	}
}

@media (min-width: 64rem) and (prefers-color-scheme: dark) {
	.login-shell #login-form {
		scrollbar-color: rgb(30 255 157 / 0.45) transparent;
	}

	.login-shell #login-form::-webkit-scrollbar-thumb {
		background-color: rgb(30 255 157 / 0.45);
	}
}

body:has(#loadingSpinner) {
	overflow: hidden;
}

#loadingSpinner.loading-spinner {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgb(19 20 23);
}

#loadingSpinner .spinner {
	width: 8rem;
	height: 8rem;
	border: 1px solid rgb(30 255 157);
	border-top-color: rgb(28 29 35);
	border-radius: 9999px;
	animation: login-spin 0.6s linear infinite;
	transition: all 1s ease-in-out;
}

@keyframes login-spin {
	to {
		transform: rotate(360deg);
	}
}

#loadingSpinner .spinner.slide-up {
	opacity: 0;
}

#loadingSpinner.fade-out {
	opacity: 0;
	transition: all 1.2s ease-in-out;
	pointer-events: none;
}

#img-cover .swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
	display: none;
}

#img-cover .swiper:not(.swiper-initialized) .swiper-slide:first-child .swiper-gl-image {
	display: block !important;
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.hidden {
	display: none !important;
}

.bt-dhedalos:disabled {
	opacity: 0.65;
	cursor: not-allowed;
	pointer-events: none;
}

.kc-alert {
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 0.875rem;
	line-height: 1.4;
}

.kc-alert--error {
	background: rgba(220, 38, 38, 0.1);
	color: #991b1b;
}

.kc-alert--warning {
	background: rgba(251, 191, 36, 0.15);
	color: #92400e;
}

.kc-alert--success {
	background: rgba(30, 255, 157, 0.1);
	color: #065f46;
}

.kc-alert--info {
	background: rgba(6, 235, 189, 0.1);
	color: #0e7490;
}

@media (prefers-color-scheme: dark) {
	.kc-alert--error {
		background: rgba(220, 38, 38, 0.18);
		color: #fca5a5;
	}

	.kc-alert--warning {
		background: rgba(251, 191, 36, 0.18);
		color: #fde68a;
	}
}
