/* Lapapoe Family Account — branded sign-in / create-account page.
   Quicksand and the brand purple, so a family mid-booking can see they have
   not left Lapapoe. */

:root {
	--lfa-purple: #660066;
	--lfa-deep: #330033;
	--lfa-ink: #2a1a2a;
	--lfa-muted: #6f6070;
	--lfa-line: #e6dce6;
	--lfa-bg: #faf6fa;
	--lfa-bad: #b3123f;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

.lfa-body {
	font-family: Quicksand, "Segoe UI", system-ui, -apple-system, sans-serif;
	background:
		radial-gradient(60rem 40rem at 15% -10%, #f3e6f3 0%, rgba(243, 230, 243, 0) 60%),
		var(--lfa-bg);
	color: var(--lfa-ink);
	min-height: 100vh;
	font-weight: 500;
	-webkit-font-smoothing: antialiased;
}

.lfa-shell {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 20px 40px;
	gap: 18px;
}

.lfa-card {
	width: 100%;
	max-width: 27rem;
	background: #fff;
	border: 1px solid var(--lfa-line);
	border-radius: 20px;
	padding: 30px 28px 26px;
	box-shadow: 0 18px 44px rgba(51, 0, 51, .09);
}

.lfa-brand {
	display: block;
	text-decoration: none;
	margin-bottom: 24px;
}

/* Matches the 56px the caregiver login uses, so a family moving between the
   two pages sees the same mark at the same size. */
.lfa-brand img {
	height: 56px;
	width: auto;
	max-width: 100%;
	display: block;
}

.lfa-why {
	margin: 0 0 18px;
	padding: 12px 14px;
	background: #f6f0f6;
	border-left: 3px solid var(--lfa-purple);
	border-radius: 0 10px 10px 0;
	font-size: .92rem;
	line-height: 1.5;
	color: var(--lfa-deep);
}

/* Tabs */
.lfa-tabs {
	display: flex;
	gap: 6px;
	background: #f4eef4;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 18px;
}

.lfa-tab {
	flex: 1;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 600;
	font-size: .9rem;
	color: var(--lfa-muted);
	padding: 9px 8px;
	border-radius: 999px;
	cursor: pointer;
}

.lfa-tab.is-on {
	background: #fff;
	color: var(--lfa-purple);
	box-shadow: 0 2px 8px rgba(51, 0, 51, .1);
}

.lfa-tab:focus-visible,
.lfa-btn:focus-visible,
.lfa-link:focus-visible,
.lfa-field input:focus-visible {
	outline: 3px solid #009ee2;
	outline-offset: 2px;
}

/* Messages */
.lfa-msg {
	margin: 0 0 16px;
	padding: 11px 13px;
	border-radius: 10px;
	background: #fdeef2;
	border: 1px solid #f6c9d5;
	color: var(--lfa-bad);
	font-size: .9rem;
	line-height: 1.45;
}

/* Fields */
.lfa-form { display: grid; gap: 14px; }

/* display:grid above would otherwise beat the [hidden] attribute's own
   display:none, leaving both panels stacked on the page at once. */
.lfa-form[hidden] { display: none; }

.lfa-field { display: grid; gap: 5px; }

.lfa-field > span {
	font-size: .86rem;
	font-weight: 600;
	color: var(--lfa-deep);
}

.lfa-field input {
	font: inherit;
	font-weight: 500;
	padding: 11px 13px;
	border: 1px solid var(--lfa-line);
	border-radius: 11px;
	background: #fff;
	color: var(--lfa-ink);
	width: 100%;
}

.lfa-field input:focus { border-color: var(--lfa-purple); }

.lfa-field small {
	font-size: .78rem;
	color: var(--lfa-muted);
}

.lfa-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .88rem;
	color: var(--lfa-muted);
}

.lfa-check input { width: 1rem; height: 1rem; accent-color: var(--lfa-purple); }

.lfa-btn {
	font: inherit;
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: var(--lfa-purple);
	border: 0;
	border-radius: 999px;
	padding: 13px 18px;
	cursor: pointer;
	margin-top: 2px;
}

.lfa-btn:hover { background: var(--lfa-deep); }

.lfa-alt {
	margin: 2px 0 0;
	font-size: .86rem;
	color: var(--lfa-muted);
	line-height: 1.5;
}

.lfa-alt a, .lfa-link {
	color: var(--lfa-purple);
	font: inherit;
	font-weight: 600;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-decoration: underline;
}

.lfa-foot {
	margin: 0;
	font-size: .85rem;
}

.lfa-foot a { color: var(--lfa-muted); }

/* The honeypot is hidden from people but must stay reachable to a bot, so it
   is moved off-screen rather than display:none. */
.lfa-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.lfa-card { padding: 24px 20px 22px; border-radius: 16px; }
	.lfa-tab { font-size: .84rem; }
}

/* Set-a-password screens */
.lfa-h1 {
	margin: 0 0 8px;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--lfa-deep);
	letter-spacing: -.01em;
}

.lfa-lead {
	margin: 0 0 18px;
	font-size: .93rem;
	line-height: 1.55;
	color: var(--lfa-muted);
}

.lfa-lead strong { color: var(--lfa-deep); }

.lfa-ok {
	margin: 0 0 16px;
	padding: 11px 13px;
	border-radius: 10px;
	background: #eef7ee;
	border: 1px solid #c6e3c6;
	color: #245c24;
	font-size: .9rem;
	line-height: 1.45;
}

.lfa-btn-inline {
	display: inline-block;
	text-decoration: none;
	margin-top: 6px;
}
