/*
 * Login page style (orders 0050, 0062), shared by index.php and forgot-password.php (order 0063).
 * Pages use <body class="login-page">; the layout classes come from style.css.
 */
/* Enable scrolling on all devices */
html, body {
	height: auto;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}
/* Login page look (order 0050): gradient background, extra bold welcome heading,
   white form card with a layered drop shadow. Scoped to this page.
   Background: grey and white instead of blue/teal (order 0062). */
html, body.login-page {
	background:
		radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.9), transparent 40%),
		radial-gradient(circle at 88% 88%, rgba(148, 156, 168, 0.22), transparent 45%),
		linear-gradient(135deg, #ffffff 0%, #f1f2f4 48%, #e2e4e8 100%);
	background-attachment: fixed;
}
/* Hero text container - fixed height prevents layout shift */
.hero-text {
	height: 290px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 20px;
}
.hero-text h1 {
	font-size: clamp(2.6rem, 1.6rem + 2.9vw, 4.4rem);
	font-weight: 900;
	letter-spacing: -0.025em;
	color: #0F4F8D;
	margin: 0 0 18px 0;
	line-height: 1.08;
}
.hero-text h1 .brand {
	display: block;
	font-size: inherit;
	font-weight: inherit;
	background: linear-gradient(90deg, #0F4F8D 0%, #2873cf 55%, #10A4A4 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-bottom: 0.06em; /* keeps the gradient text from clipping */
}
/* Form card */
body.login-page .login form {
	position: relative;
	width: 440px;
	padding: 40px 38px 30px;
	border-radius: 18px;
	background: #ffffff;
	border: 1px solid rgba(15, 79, 141, 0.06);
	box-shadow:
		0 1px 2px rgba(15, 79, 141, 0.06),
		0 12px 28px -8px rgba(15, 79, 141, 0.16),
		0 34px 70px -18px rgba(15, 79, 141, 0.28);
	overflow: hidden;
}
body.login-page .form .form-label {
	padding: 18px 0 8px 0;
	font-weight: 600;
}
body.login-page .form .form-input {
	height: 48px;
	border-radius: 10px;
	border: 1px solid #dfe5ec;
	background: #f8fafc;
	font-size: 15px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
body.login-page .form .form-input:hover {
	border-color: #c8d2dc;
}
body.login-page .form .form-input:focus {
	background: #ffffff;
	border-color: var(--color-focus-border);
	box-shadow: 0 0 0 4px rgba(40, 115, 207, 0.15);
}
body.login-page .form .form-group .form-icon-left {
	fill: #9aa6b2;
	width: 44px;
}
body.login-page .form .form-group .form-icon-left + .form-input {
	padding-left: 44px;
}
body.login-page .form .form-group:focus-within .form-icon-left {
	fill: #2873cf;
}
body.login-page .form .form-group.pad-y-5 {
	padding: 18px 0 6px 0;
}
body.login-page .form #remember_me input {
	opacity: 1;
	accent-color: #2873cf;
}
body.login-page .form div.msg.error,
body.login-page .form div.msg.success {
	padding: 6px 0 14px 0;
}
body.login-page .login .btn[type=submit] {
	height: 48px;
	margin-top: 6px;
	border-radius: 10px;
	font-size: 15px;
	letter-spacing: 0.01em;
	box-shadow: 0 10px 20px -8px rgba(40, 115, 207, 0.6);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
body.login-page .login .btn[type=submit] span {
	font-size: inherit;
}
body.login-page .login .btn[type=submit]:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -10px rgba(40, 115, 207, 0.7);
}
body.login-page .login .btn[type=submit]:focus-visible {
	outline: none;
	box-shadow: 0 0 0 4px rgba(40, 115, 207, 0.3);
}
.hero-text .subtitle {
	font-size: 1.3rem;
	font-weight: 800;
	color: #5a6c7d;
	margin: 0 0 10px 0;
	line-height: 1.6;
	text-align: center;
}
.animated-word {
	display: block;
	font-size: 2.4rem;
	line-height: 1.25;
	font-weight: 800;
	color: #10A4A4;
	min-width: 200px;
	text-align: center;
	position: relative;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
	vertical-align: baseline;
}
.animated-word.fade-out {
	opacity: 0;
	transform: translateY(-10px);
}
/* Private portal notice */
.private-notice {
	text-align: center;
	color: #5a6c7d;
	font-size: 13px;
	font-weight: 500;
	margin: 0 auto 6px auto;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f1f5fa;
	width: fit-content;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.private-notice svg {
	color: #2873cf;
	flex-shrink: 0;
}
/* Form footer access notice */
.form-access-notice {
	text-align: center;
	color: #8a94a6;
	font-size: 12.5px;
	line-height: 1.5;
	margin-top: 22px;
	padding-top: 16px;
	border-top: 1px solid #eef1f5;
}
.form-access-notice p {
	margin: 0 0 3px 0;
	padding: 0;
	font-size: inherit;
}
.form-access-notice a {
	color: #868e96;
	text-decoration: none;
}
.form-access-notice a:hover {
	text-decoration: underline;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
	/* Enable smooth scrolling on mobile */
	html {
		overflow-y: auto !important;
		height: 100%;
	}
	body {
		overflow-y: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
		height: 100%;
		position: relative;
	}
	/* Stack hero text above login form on mobile */
	.login-container {
		flex-direction: column !important;
		padding: 20px !important;
		min-height: 100vh !important;
		height: auto !important;
		overflow: visible !important;
		position: relative !important;
	}
	.login-image {
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 20px;
		flex-shrink: 0;
	}
	.login {
		width: 100% !important;
		max-width: 100% !important;
		margin-bottom: 40px;
		flex-shrink: 0;
	}
	.hero-text {
		height: auto;
		min-height: 150px;
		padding: 15px;
	}
	.hero-text h1 {
		font-size: 2.4rem;
		margin-bottom: 10px;
	}
	body.login-page .login-image {
		height: auto;
		padding: 24px 8px 0;
		margin-bottom: 8px;
	}
	body.login-page .login {
		height: auto;
		padding: 0 4px;
	}
	body.login-page .login form {
		width: 100%;
		max-width: 100%;
		padding: 32px 22px 24px;
	}
	body.login-page .private-notice {
		font-size: 12px;
		white-space: nowrap;
	}
	.hero-text .subtitle {
		font-size: 1.1rem;
		min-height: 60px;
	}
	.animated-word {
		font-size: 1.8rem;
		min-width: 150px;
	}
}
/* Accessibility: disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.animated-word {
		transition: none;
	}
	.animated-word.fade-out {
		opacity: 1;
		transform: none;
	}
}

/* Show / hide password button inside the password field (order 0134) */
body.login-page .form .form-group .password-toggle {
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #9aa6b2;
	cursor: pointer;
}
body.login-page .form .form-group .password-toggle:hover,
body.login-page .form .form-group .password-toggle.is-visible {
	color: #2873cf;
}
body.login-page .form .form-group .password-toggle:focus-visible {
	outline: 2px solid #2873cf;
	outline-offset: -2px;
}
body.login-page .form .form-group .password-toggle svg {
	fill: currentColor;
}
body.login-page .form .form-group .password-toggle .icon-hide,
body.login-page .form .form-group .password-toggle.is-visible .icon-show {
	display: none;
}
body.login-page .form .form-group .password-toggle.is-visible .icon-hide {
	display: block;
}
body.login-page .form #password {
	padding-right: 48px;
}
/* Edge's own reveal button would show a second eye */
body.login-page .form #password::-ms-reveal,
body.login-page .form #password::-ms-clear {
	display: none;
}
