:root {
	--health-primary: #4663a9;
	--health-primary-dark: #30477f;
	--health-accent: #23b195;
	--health-ink: #24314a;
	--health-muted: #77849a;
	--health-line: #dfe6f0;
}

* {
	box-sizing: border-box;
}

body.health-login-page {
	min-width: 320px;
	min-height: 100vh;
	overflow: hidden;
	background: #243a73;
	color: var(--health-ink);
	font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.health-login-page .limiter,
.health-login-page .container-login100 {
	width: 100%;
	min-height: 100vh;
}

.health-login-page .container-login100 {
	position: relative;
	display: block;
	overflow: hidden;
	padding: 0;
	background:
		radial-gradient(circle at 12% 18%, rgba(67, 207, 181, 0.23), transparent 28%),
		radial-gradient(circle at 88% 78%, rgba(125, 151, 225, 0.27), transparent 32%),
		linear-gradient(145deg, #1c2d5c 0%, #354f91 48%, #277c83 115%);
	isolation: isolate;
}

.health-login-page .container-login100::after {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(13, 28, 65, 0.15), transparent 40%, rgba(13, 28, 65, 0.08)),
		radial-gradient(circle at center, transparent 20%, rgba(10, 24, 57, 0.16) 100%);
	content: "";
	pointer-events: none;
}

#health-animation {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	opacity: 1;
	pointer-events: none;
}

.health-background-grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 52px 52px;
	-webkit-mask-image: radial-gradient(circle at center, black, transparent 82%);
	mask-image: radial-gradient(circle at center, black, transparent 82%);
	pointer-events: none;
}

.health-visual-glow {
	position: absolute;
	z-index: 0;
	border-radius: 50%;
	filter: blur(3px);
	pointer-events: none;
}

.health-visual-glow-one {
	top: -190px;
	left: -120px;
	width: 560px;
	height: 560px;
	background: rgba(67, 211, 182, 0.11);
}

.health-visual-glow-two {
	right: -160px;
	bottom: -230px;
	width: 650px;
	height: 650px;
	background: rgba(136, 160, 226, 0.13);
}

.health-floating-cross {
	position: absolute;
	z-index: 1;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 14px 34px rgba(10, 24, 57, 0.16);
	backdrop-filter: blur(7px);
	pointer-events: none;
}

.health-floating-cross::before,
.health-floating-cross::after {
	position: absolute;
	top: 50%;
	left: 50%;
	border-radius: 3px;
	background: rgba(154, 230, 213, 0.68);
	content: "";
	transform: translate(-50%, -50%);
}

.health-floating-cross::before {
	width: 20px;
	height: 5px;
}

.health-floating-cross::after {
	width: 5px;
	height: 20px;
}

.health-floating-cross-one {
	top: 14%;
	left: 13%;
	animation: health-float 5.2s ease-in-out infinite;
}

.health-floating-cross-two {
	right: 12%;
	bottom: 13%;
	width: 38px;
	height: 38px;
	animation: health-float 4.6s 0.8s ease-in-out infinite reverse;
}

.health-login-stage {
	position: relative;
	z-index: 3;
	display: flex;
	width: 100%;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	padding: 34px 24px 72px;
}

/* Card di accesso */
.health-login-page .health-login-card {
	position: relative;
	display: flex;
	width: min(470px, 100%);
	min-width: 0;
	align-items: center;
	padding: 46px 50px 40px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow:
		0 32px 80px rgba(11, 24, 58, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(18px);
}

.health-login-card::before {
	position: absolute;
	top: 0;
	left: 50%;
	width: 150px;
	height: 4px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--health-primary), var(--health-accent));
	content: "";
	transform: translateX(-50%);
}

.health-form-inner {
	width: 100%;
}

.health-form-header {
	margin-bottom: 31px;
	text-align: center;
}

.health-logo {
	display: flex;
	min-height: 70px;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
}

.health-logo img {
	display: block;
	max-width: 220px;
	max-height: 88px;
	object-fit: contain;
}

.health-form-eyebrow {
	display: block;
	margin-bottom: 7px;
	color: var(--health-accent);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.health-form-header h2 {
	margin: 0 0 8px;
	color: var(--health-ink);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.health-form-header p {
	margin: 0;
	color: var(--health-muted);
	font-size: 13px;
	line-height: 1.5;
}

.health-login-form {
	display: block;
	width: 100%;
}

.health-field-label {
	display: block;
	margin-bottom: 7px;
	color: #4b5870;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
}

.health-input-wrap.wrap-input100 {
	position: relative;
	width: 100%;
	height: 52px;
	margin-bottom: 20px;
	overflow: visible;
	border: 1px solid var(--health-line);
	border-radius: 12px;
	background: #f8fafd;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.health-input-wrap.wrap-input100:focus-within {
	border-color: var(--health-primary);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(70, 99, 169, 0.11);
}

.health-input-wrap .input100 {
	width: 100%;
	height: 100%;
	padding: 0 48px 0 44px;
	color: var(--health-ink);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 52px;
}

.health-input-wrap .input100::placeholder {
	color: #a0aabc;
	font-weight: 400;
}

.health-input-icon {
	position: absolute;
	top: 50%;
	left: 15px;
	z-index: 2;
	color: #8b97aa;
	font-size: 17px;
	pointer-events: none;
	transform: translateY(-50%);
	transition: color 160ms ease;
}

.health-input-wrap:focus-within .health-input-icon {
	color: var(--health-primary);
}

.health-input-wrap .focus-input100 {
	display: none;
}

.health-input-wrap .btn-show-pass {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 3;
	display: flex;
	width: 46px;
	height: 50px;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 0 12px 12px 0;
	background: transparent;
	color: #8995a7;
	cursor: pointer;
}

.health-input-wrap .btn-show-pass:hover,
.health-input-wrap .btn-show-pass:focus {
	color: var(--health-primary);
	outline: 0;
}

.health-password-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}

.health-password-heading a {
	margin-bottom: 7px;
	color: var(--health-primary);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
}

.health-password-heading a:hover,
.health-password-heading a:focus {
	color: var(--health-primary-dark);
	text-decoration: underline;
}

.health-submit-wrap {
	width: 100%;
	margin-top: 8px;
}

.health-submit-wrap .login100-form-btn {
	display: flex;
	width: 100%;
	height: 52px;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	gap: 10px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--health-primary) 0%, #5674b9 100%);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.055em;
	text-transform: uppercase;
	box-shadow: 0 11px 24px rgba(70, 99, 169, 0.25);
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.health-submit-wrap .login100-form-btn:hover,
.health-submit-wrap .login100-form-btn:focus {
	background: linear-gradient(135deg, var(--health-primary-dark), var(--health-primary));
	box-shadow: 0 14px 29px rgba(70, 99, 169, 0.32);
	transform: translateY(-1px);
}

.health-submit-wrap .login100-form-btn i {
	font-size: 11px;
	transition: transform 160ms ease;
}

.health-submit-wrap .login100-form-btn:hover i {
	transform: translateX(3px);
}

.health-form-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 24px;
	gap: 7px;
	color: #919bad;
	font-size: 10px;
	font-weight: 600;
}

.health-form-footer i {
	color: var(--health-accent);
}

.health-stage-note {
	position: absolute;
	bottom: 25px;
	left: 50%;
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(15, 31, 69, 0.16);
	color: rgba(255, 255, 255, 0.62);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transform: translateX(-50%);
	backdrop-filter: blur(8px);
}

.health-live-dot {
	position: relative;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #7be0c9;
	box-shadow: 0 0 0 5px rgba(123, 224, 201, 0.1);
}

.health-live-dot::after {
	position: absolute;
	inset: -5px;
	border: 1px solid rgba(123, 224, 201, 0.55);
	border-radius: 50%;
	content: "";
	animation: health-live-pulse 2s ease-out infinite;
}

.health-login-page .alert-validate::before {
	top: calc(100% + 6px);
	right: 5px;
	z-index: 10;
	padding: 6px 9px;
	border-radius: 7px;
	background: #bd4653;
	font-family: inherit;
	font-size: 10px;
}

@keyframes health-live-pulse {
	0% {
		opacity: 0.9;
		transform: scale(0.7);
	}
	75%,
	100% {
		opacity: 0;
		transform: scale(1.55);
	}
}

@keyframes health-float {
	0%,
	100% {
		transform: translateY(0) rotate(-3deg);
	}
	50% {
		transform: translateY(-13px) rotate(4deg);
	}
}

@media (max-width: 600px) {
	body.health-login-page {
		overflow-y: auto;
	}

	.health-login-stage {
		align-items: flex-start;
		padding: 28px 16px 68px;
	}

	.health-login-page .health-login-card {
		margin: auto 0;
		padding: 36px 24px 30px;
		border-radius: 19px;
	}

	.health-logo {
		min-height: 58px;
		margin-bottom: 19px;
	}

	.health-logo img {
		max-width: 190px;
		max-height: 72px;
	}

	.health-form-header {
		margin-bottom: 27px;
	}

	.health-form-header h2 {
		font-size: 27px;
	}

	.health-floating-cross-one {
		top: 7%;
		left: 5%;
	}

	.health-floating-cross-two {
		right: 5%;
		bottom: 8%;
	}

	.health-stage-note {
		bottom: 20px;
	}
}

@media (max-height: 710px) and (min-width: 601px) {
	.health-login-stage {
		padding-top: 22px;
		padding-bottom: 58px;
	}

	.health-login-page .health-login-card {
		padding-top: 31px;
		padding-bottom: 29px;
	}

	.health-logo {
		min-height: 52px;
		margin-bottom: 16px;
	}

	.health-logo img {
		max-height: 62px;
	}

	.health-form-header {
		margin-bottom: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.health-login-page *,
	.health-login-page *::before,
	.health-login-page *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
