/* HWL Resource Access — public form. Inherits the theme's font; scoped to .hwlra. */
.hwlra {
	--hwlra-accent: #0f5e52;
	--hwlra-ink: #1c1917;
	--hwlra-ink-2: #57534e;
	--hwlra-ink-3: #8b847d;
	--hwlra-line: rgba(28, 25, 23, 0.14);
	--hwlra-bad: #b42318;
	--hwlra-good: #1d7a4c;
	--hwlra-ease: cubic-bezier(0.32, 0.72, 0, 1);
	max-width: 460px;
	margin: 1.5em auto;
	color: var(--hwlra-ink);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}
.hwlra *, .hwlra *::before, .hwlra *::after { box-sizing: border-box; }
.hwlra [hidden] { display: none !important; }

.hwlra__shell {
	padding: 6px;
	border-radius: 28px;
	background: rgba(28, 25, 23, 0.035);
	box-shadow: 0 0 0 1px rgba(28, 25, 23, 0.06);
}
.hwlra__core {
	background: #fff;
	border-radius: 22px;
	padding: 34px 32px 26px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 28px 56px -30px rgba(41, 37, 36, 0.28);
}
.hwlra--minimal .hwlra__shell { padding: 0; background: none; box-shadow: none; }
.hwlra--minimal .hwlra__core { padding: 0; background: none; box-shadow: none; }

.hwlra__eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--hwlra-accent);
	background: color-mix(in srgb, var(--hwlra-accent) 9%, transparent);
	padding: 5px 11px; border-radius: 999px;
}
.hwlra__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hwlra-accent); position: relative; }
.hwlra__dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--hwlra-accent); opacity: 0; animation: hwlra-breathe 2.8s var(--hwlra-ease) infinite; }

.hwlra .hwlra__title {
	margin: 16px 0 6px; padding: 0; border: 0;
	font-size: clamp(22px, 3vw, 26px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 650;
	color: var(--hwlra-ink);
}
.hwlra__sub { margin: 0 0 4px; color: var(--hwlra-ink-2); font-size: 15px; }
.hwlra__sub a { color: var(--hwlra-accent); }

.hwlra__form { margin: 22px 0 0; display: flex; flex-direction: column; gap: 16px; }
.hwlra__field { display: flex; flex-direction: column; gap: 7px; animation: hwlra-in .55s var(--hwlra-ease); }
.hwlra__field label { font-size: 13.5px; font-weight: 600; color: var(--hwlra-ink); margin: 0; }
.hwlra__input-wrap { position: relative; display: flex; }
.hwlra input[type="email"], .hwlra input[type="text"], .hwlra input[type="password"] {
	width: 100%; min-height: 48px; margin: 0;
	font: inherit; font-size: 16px; color: var(--hwlra-ink);
	background: #faf9f7; border: 0; border-radius: 14px; padding: 12px 16px;
	box-shadow: inset 0 0 0 1px var(--hwlra-line);
	transition: box-shadow 0.35s var(--hwlra-ease), background 0.35s var(--hwlra-ease);
	-webkit-appearance: none; appearance: none;
}
.hwlra .hwlra__input-wrap input { padding-right: 84px; text-overflow: ellipsis; }
.hwlra input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--hwlra-accent), 0 0 0 4px color-mix(in srgb, var(--hwlra-accent) 12%, transparent); }
.hwlra input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--hwlra-bad); }
.hwlra input[readonly] { color: var(--hwlra-ink-2); }
.hwlra__change {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	border: 0; background: transparent; cursor: pointer; padding: 6px 10px; border-radius: 10px;
	font: inherit; font-size: 13px; font-weight: 600; color: var(--hwlra-accent);
}
.hwlra__change:hover { background: color-mix(in srgb, var(--hwlra-accent) 8%, transparent); }

.hwlra__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--hwlra-ink-2); cursor: pointer; animation: hwlra-in .55s var(--hwlra-ease); }
.hwlra__consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hwlra-accent); flex: none; }

.hwlra__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.hwlra__msg { margin: 0; font-size: 14px; min-height: 0; color: var(--hwlra-ink-2); }
.hwlra__msg:empty { display: none; }
.hwlra__msg.is-error { color: var(--hwlra-bad); }
.hwlra__msg.is-success { color: var(--hwlra-good); }
.hwlra__msg.is-info { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--hwlra-accent) 7%, transparent); color: var(--hwlra-ink); }

.hwlra__actions, .hwlra__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.hwlra .hwlra__btn {
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 48px; padding: 6px 6px 6px 22px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--hwlra-accent); color: #fff; text-decoration: none;
	font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; line-height: 1;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 24px -14px color-mix(in srgb, var(--hwlra-accent) 80%, #000);
	transition: transform 0.35s var(--hwlra-ease), opacity 0.3s, box-shadow 0.35s var(--hwlra-ease);
}
.hwlra .hwlra__btn:hover { color: #fff; }
.hwlra__btn-icon {
	width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255, 255, 255, 0.16); transition: transform 0.45s var(--hwlra-ease);
}
.hwlra__btn:hover .hwlra__btn-icon { transform: translate(2px, -1px) scale(1.05); }
.hwlra__btn:active { transform: scale(0.98); }
.hwlra__btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.hwlra__btn[aria-busy="true"] .hwlra__btn-icon svg { animation: hwlra-spin 0.9s linear infinite; }
.hwlra__btn:focus-visible, .hwlra__link:focus-visible, .hwlra__change:focus-visible { outline: 2px solid var(--hwlra-accent); outline-offset: 3px; }

.hwlra .hwlra__link {
	border: 0; background: none; padding: 4px 0; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 600; color: var(--hwlra-accent); text-decoration: none;
}
.hwlra .hwlra__link:hover { text-decoration: underline; text-underline-offset: 3px; }

.hwlra__foot { margin: 22px 0 0; font-size: 12.5px; color: var(--hwlra-ink-3); display: flex; align-items: center; gap: 8px; }
.hwlra--welcome .hwlra__title { margin-bottom: 18px; }

.hwlra-notice { padding: 12px 16px; border-radius: 12px; background: #fff7e6; color: #7a4a00; font-size: 14px; }

@keyframes hwlra-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hwlra-breathe { 0% { transform: scale(0.6); opacity: 0.5; } 70%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes hwlra-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.hwlra *, .hwlra *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 480px) {
	.hwlra__core { padding: 26px 20px 20px; }
	.hwlra .hwlra__btn { width: 100%; justify-content: space-between; }
}
