/* ============================================================
   HEALTHY KNOTS — GLOBAL PASSWORD GATE
   ============================================================ */

.hk-password-gate-page {
	margin: 0;
	background: #f8fbf9;
	color: #18362c;
}


/* ============================================================
   PAGE WRAPPER
   ============================================================ */

.hk-password-gate-page-wrap {
	min-height: 100vh;
	min-height: 100svh;

	display: flex;
	flex-direction: column;

	background:
		radial-gradient(
			circle at 12% 18%,
			rgba(214, 243, 224, 0.7),
			transparent 26%
		),
		radial-gradient(
			circle at 88% 12%,
			rgba(255, 239, 181, 0.42),
			transparent 24%
		),
		radial-gradient(
			circle at 85% 85%,
			rgba(222, 216, 255, 0.38),
			transparent 26%
		),
		#f8fbf9;
}


/* ============================================================
   MINI HEADER
   ============================================================ */

.hk-password-gate-header {
	width: 100%;
	padding: 18px 24px;

	border-bottom: 1px solid rgba(24, 54, 44, 0.08);

	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.hk-password-gate-header__inner {
	width: min(100%, 1180px);
	margin-inline: auto;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}


/* Brand */

.hk-password-gate-brand {
	display: inline-flex;
	align-items: center;

	color: #18362c;
	text-decoration: none;

	font-size: 1rem;
	font-weight: 900;
	letter-spacing: -0.02em;
}

.hk-password-gate-brand .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.hk-password-gate-brand .custom-logo {
	display: block;

	width: auto;
	max-width: 160px;
	height: 42px;

	object-fit: contain;
}


/* Mini Navigation */

.hk-password-gate-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hk-password-gate-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;

	padding: 9px 14px;

	border-radius: 12px;

	color: #385c4e;
	text-decoration: none;

	font-size: 0.9rem;
	font-weight: 800;

	transition:
		background 0.18s ease,
		color 0.18s ease,
		transform 0.18s ease;
}

.hk-password-gate-nav a:hover {
	background: rgba(255, 255, 255, 0.82);
	color: #18362c;
}

.hk-password-gate-nav__help {
	border: 1px solid rgba(8, 116, 63, 0.14);

	background: #ffffff;
	color: #08743f !important;
}


/* ============================================================
   MAIN AREA
   ============================================================ */

.hk-password-gate {
	flex: 1;

	display: grid;
	place-items: center;

	width: 100%;

	padding: clamp(42px, 7vw, 88px) 20px;
}


/* ============================================================
   CONTENT CARD
   ============================================================ */

.hk-password-gate__shell {
	width: min(100%, 620px);

	padding: clamp(34px, 6vw, 58px);

	border: 1px solid rgba(24, 54, 44, 0.08);
	border-radius: 30px;

	background: rgba(255, 255, 255, 0.86);

	box-shadow:
		0 28px 70px rgba(24, 54, 44, 0.09),
		0 4px 16px rgba(24, 54, 44, 0.035);

	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);

	text-align: center;
}


/* ============================================================
   EYEBROW
   ============================================================ */

.hk-password-gate__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	margin-bottom: 20px;

	padding: 7px 12px;

	border-radius: 999px;

	background: #eef8f1;
	color: #08743f;

	font-size: 0.74rem;
	font-weight: 900;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.hk-password-gate__eyebrow-dot {
	width: 7px;
	height: 7px;

	border-radius: 50%;

	background: #22a45d;

	box-shadow:
		0 0 0 4px rgba(34, 164, 93, 0.1);
}


/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.hk-password-gate__title {
	max-width: 520px;

	margin: 0 auto 18px;

	color: #18362c;

	font-size: clamp(2.2rem, 6vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.055em;
}

.hk-password-gate__title span {
	color: #08743f;
}

.hk-password-gate__description {
	max-width: 480px;

	margin: 0 auto 10px;

	color: #46685c;

	font-size: clamp(1rem, 2vw, 1.1rem);
	line-height: 1.7;
}

.hk-password-gate__note {
	max-width: 460px;

	margin: 0 auto 30px;

	color: #7a9188;

	font-size: 0.92rem;
	line-height: 1.65;
}


/* ============================================================
   FORM
   ============================================================ */

.hk-password-gate__form {
	width: 100%;

	margin-top: 6px;

	text-align: left;
}

.hk-password-gate__label {
	display: block;

	margin-bottom: 9px;

	color: #294c3f;

	font-size: 0.82rem;
	font-weight: 850;
}

.hk-password-gate__field {
	display: flex;
	align-items: stretch;
	gap: 8px;

	padding: 7px;

	border: 1px solid #dceae1;
	border-radius: 18px;

	background: #ffffff;

	box-shadow:
		0 8px 24px rgba(15, 23, 42, 0.04);

	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.hk-password-gate__field:focus-within {
	border-color: rgba(8, 116, 63, 0.38);

	box-shadow:
		0 0 0 4px rgba(8, 116, 63, 0.07),
		0 8px 24px rgba(15, 23, 42, 0.04);
}

.hk-password-gate__input {
	min-width: 0;
	flex: 1;

	padding: 13px 14px;

	border: 0;
	outline: 0;

	background: transparent;
	color: #18362c;

	font: inherit;
	font-size: 0.96rem;
}

.hk-password-gate__input::placeholder {
	color: #a2b1aa;
}

.hk-password-gate__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	flex-shrink: 0;

	padding: 13px 19px;

	border: 0;
	border-radius: 12px;

	background: #08743f;
	color: #ffffff;

	font: inherit;
	font-size: 0.9rem;
	font-weight: 900;

	cursor: pointer;

	transition:
		background 0.18s ease,
		transform 0.18s ease,
		box-shadow 0.18s ease;
}

.hk-password-gate__submit:hover {
	background: #066436;

	transform: translateY(-1px);

	box-shadow:
		0 8px 20px rgba(8, 116, 63, 0.18);
}

.hk-password-gate__submit:active {
	transform: translateY(0);
}

.hk-password-gate__arrow {
	font-size: 1rem;
	line-height: 1;
}


/* ============================================================
   PRIVACY MESSAGE
   ============================================================ */

.hk-password-gate__privacy {
	max-width: 440px;

	margin: 24px auto 0;

	color: #83968e;

	font-size: 0.8rem;
	line-height: 1.6;
}


/* ============================================================
   FOOTER
   ============================================================ */

.hk-password-gate-footer {
	padding: 20px 24px 24px;
}

.hk-password-gate-footer__inner {
	width: min(100%, 1180px);
	margin-inline: auto;

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;

	color: #84958e;

	font-size: 0.76rem;
	font-weight: 700;
}

.hk-password-gate-footer__divider {
	opacity: 0.55;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 640px) {

	.hk-password-gate-header {
		padding: 14px 16px;
	}

	.hk-password-gate-header__inner {
		gap: 12px;
	}

	.hk-password-gate-brand .custom-logo {
		max-width: 125px;
		height: 36px;
	}

	.hk-password-gate-nav {
		gap: 4px;
	}

	.hk-password-gate-nav a {
		min-height: 38px;

		padding: 8px 10px;

		font-size: 0.8rem;
	}

	.hk-password-gate-nav__help {
		display: none;
	}

	.hk-password-gate {
		padding: 34px 14px;
	}

	.hk-password-gate__shell {
		padding: 32px 21px;

		border-radius: 24px;
	}

	.hk-password-gate__title {
		font-size: clamp(2.15rem, 11vw, 3rem);
	}

	.hk-password-gate__field {
		display: block;
	}

	.hk-password-gate__input {
		width: 100%;

		box-sizing: border-box;
	}

	.hk-password-gate__submit {
		width: 100%;

		margin-top: 4px;

		padding: 14px 18px;
	}

	.hk-password-gate-footer {
		padding: 16px;
	}

	.hk-password-gate-footer__inner {
		flex-wrap: wrap;

		text-align: center;
	}

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

	.hk-password-gate-nav a,
	.hk-password-gate__submit {
		transition: none;
	}

}

/* ============================================================
   PASSWORD GATE — LAYOUT FIXES
   ============================================================ */

/* Keep sizing predictable everywhere inside the gate */

.hk-password-gate-page *,
.hk-password-gate-page *::before,
.hk-password-gate-page *::after {
	box-sizing: border-box;
}


/* Prevent accidental horizontal overflow */

html:has(.hk-password-gate-page),
.hk-password-gate-page {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}


/* ============================================================
   HEADER FIX
   ============================================================ */

.hk-password-gate-header__inner {
	width: min(100%, 1180px);
	margin-inline: auto;

	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 24px;
}


/* Logo must stay LEFT */

.hk-password-gate-brand {
	display: flex;
	align-items: center;
	justify-content: flex-start;

	flex: 0 0 auto;

	margin: 0;
	padding: 0;

	text-align: left;
}

.hk-password-gate-brand .custom-logo-link {
	display: flex;
	align-items: center;
	justify-content: flex-start;

	margin: 0;
	padding: 0;
}

.hk-password-gate-brand .custom-logo {
	display: block;

	width: auto;
	height: 48px;
	max-width: 170px;

	margin: 0;

	object-fit: contain;
}

.hk-password-gate-brand__text {
	color: #18362c;

	font-weight: 900;
	text-decoration: none;
}


/* Navigation stays RIGHT */

.hk-password-gate-nav {
	margin-left: auto;

	display: flex;
	align-items: center;
	justify-content: flex-end;

	flex: 0 0 auto;
}


/* ============================================================
   CARD WIDTH SAFETY
   ============================================================ */

.hk-password-gate__shell {
	width: 100%;
	max-width: 620px;

	margin-inline: auto;
}

.hk-password-gate__title,
.hk-password-gate__description,
.hk-password-gate__note,
.hk-password-gate__privacy {
	overflow-wrap: break-word;
	word-break: normal;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 760px) {

	.hk-password-gate-header {
		padding: 13px 18px;
	}

	.hk-password-gate-brand .custom-logo {
		height: 40px;
		max-width: 135px;
	}

	.hk-password-gate-nav__help {
		display: none !important;
	}

	.hk-password-gate {
		padding:
			clamp(28px, 7vw, 44px)
			16px;
	}

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 520px) {

	.hk-password-gate-page-wrap {
		min-height: 100svh;
	}

	.hk-password-gate-header {
		padding: 11px 14px;
	}

	.hk-password-gate-header__inner {
		gap: 12px;
	}

	.hk-password-gate-brand .custom-logo {
		height: 38px;
		max-width: 120px;
	}

	.hk-password-gate-nav a {
		min-height: 36px;

		padding: 7px 9px;

		font-size: 0.75rem;
	}

	.hk-password-gate {
		display: flex;
		align-items: flex-start;
		justify-content: center;

		padding: 28px 12px 24px;
	}

	.hk-password-gate__shell {
		width: 100%;
		max-width: 100%;

		padding: 28px 18px 24px;

		border-radius: 22px;
	}

	.hk-password-gate__eyebrow {
		margin-bottom: 16px;

		font-size: 0.66rem;
	}

	.hk-password-gate__title {
		max-width: 330px;

		margin-bottom: 14px;

		font-size: clamp(2rem, 10vw, 2.65rem);
		line-height: 1.03;
		letter-spacing: -0.045em;
	}

	.hk-password-gate__description {
		max-width: 330px;

		font-size: 0.93rem;
		line-height: 1.6;
	}

	.hk-password-gate__note {
		max-width: 330px;

		margin-bottom: 24px;

		font-size: 0.82rem;
		line-height: 1.55;
	}

	.hk-password-gate__field {
		width: 100%;

		display: flex;
		flex-direction: column;

		gap: 5px;

		padding: 6px;
	}

	.hk-password-gate__input {
		width: 100%;
		min-width: 0;

		padding: 13px 12px;
	}

	.hk-password-gate__submit {
		width: 100%;

		margin: 0;

		padding: 13px 16px;
	}

	.hk-password-gate__privacy {
		margin-top: 18px;

		font-size: 0.72rem;
	}

	.hk-password-gate-footer {
		padding: 14px 12px 18px;
	}

}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 360px) {

	.hk-password-gate__shell {
		padding-inline: 15px;
	}

	.hk-password-gate__title {
		font-size: 1.9rem;
	}

}