/**
 * Akoma Passwordless – front-end auth pages.
 * Tokens taken from the site's Elementor global kit so these pages read as native.
 */
.akoma-auth-wrap {
	--akoma-brown: #944000;
	--akoma-dark: #2d1a0a;
	--akoma-text: #592600;
	--akoma-coral: #e07a5f;
	--akoma-coral-dark: #c9674d;
	--akoma-gold: #e6b17a;
	--akoma-cream: #f5f3f0;
	--akoma-light-coral: #ffecdd;
	--akoma-field-border: #69727d;

	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	min-height: min(100vh, 900px);
	/* Top padding clears the absolute overlay header (height var set in chrome.css) so
	   the leafy background extends up under the header. */
	padding: calc(var(--akoma-header-h, 186px) + 64px) 20px 72px;
	/* Base cream; the leafy background image is layered on via inline style in the
	   router (domain-adaptive uploads URL). Mirrors the site's "What we do" / privacy
	   treatment (we-are-akoma-background-2.svg, cover, centred). */
	background-color: var(--akoma-cream);
	font-family: "sofia-pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--akoma-text);
	line-height: 1.5;
}

.akoma-auth-wrap *,
.akoma-auth-wrap *::before,
.akoma-auth-wrap *::after {
	box-sizing: border-box;
}

.akoma-auth-card {
	width: 100%;
	max-width: 460px;
	padding: 40px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(45, 26, 10, 0.08);
}

.akoma-auth-card h1 {
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--akoma-brown);
}

.akoma-auth-card h2 {
	margin: 0 0 12px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: var(--akoma-brown);
}

.akoma-auth-intro {
	margin: 0 0 24px;
	font-size: 18px;
	line-height: 1.6;
}

.akoma-auth-form label {
	display: block;
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--akoma-text);
}

.akoma-auth-form input[type="email"],
.akoma-auth-form input[type="text"],
.akoma-auth-form input[type="password"],
.akoma-auth-form select {
	width: 100%;
	height: 44px;
	margin: 0 0 18px;
	padding: 5px 14px;
	font-family: inherit;
	font-size: 18px;
	color: var(--akoma-text);
	background: #fff;
	border: 1px solid var(--akoma-field-border);
	border-radius: 3px;
}

.akoma-auth-form select {
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23592600' d='M0 0h12L6 8z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 11px 8px;
	padding-right: 42px;
}

.akoma-auth-form input:focus,
.akoma-auth-form select:focus {
	outline: none;
	border-color: var(--akoma-coral);
	box-shadow: 0 0 0 3px var(--akoma-light-coral);
}

.akoma-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--akoma-text);
}

.akoma-consent input {
	flex: 0 0 auto;
	width: auto;
	height: auto;
	margin: 3px 0 0;
}

.akoma-consent a {
	color: var(--akoma-brown);
}

/* Join form: labels read better left-aligned than centred with the card. */
.akoma-auth-join .akoma-auth-form label {
	text-align: left;
}

/* The 6-digit code entry: big, centred and spaced out like an OTP field. */
.akoma-auth-form input.akoma-auth-code {
	height: 60px;
	font-size: 30px;
	font-weight: 600;
	text-align: center;
	letter-spacing: 12px;
	/* Nudge left so the letter-spacing after the last digit doesn't look off-centre. */
	padding-left: 12px;
	text-indent: 12px;
	font-variant-numeric: tabular-nums;
}

.akoma-btn {
	display: inline-block;
	width: 100%;
	padding: 13px 24px;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: #fff;
	background: var(--akoma-coral);
	border: 1px solid var(--akoma-coral);
	border-radius: 20px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.akoma-btn:hover,
.akoma-btn:focus {
	background: var(--akoma-coral-dark);
	border-color: var(--akoma-coral-dark);
	color: #fff;
}

.akoma-btn--ghost {
	color: var(--akoma-brown);
	background: transparent;
}

.akoma-btn--ghost:hover,
.akoma-btn--ghost:focus {
	color: #fff;
	background: var(--akoma-coral);
}

.akoma-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	font-size: 15px;
}

.akoma-remember input {
	width: auto;
	height: auto;
	margin: 0;
}

.akoma-notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	border-radius: 8px;
}

.akoma-notice--success {
	color: var(--akoma-brown);
	background: var(--akoma-light-coral);
}

.akoma-notice--error {
	color: #a3271b;
	background: #fdecea;
}

.akoma-auth-alt {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--akoma-cream);
}

.akoma-auth-alt > summary {
	list-style: none;
	cursor: pointer;
	font-size: 15px;
	color: var(--akoma-brown);
	user-select: none;
}

.akoma-auth-alt > summary::-webkit-details-marker {
	display: none;
}

.akoma-auth-alt > summary::after {
	content: " ›";
}

.akoma-auth-alt[open] > summary {
	margin-bottom: 18px;
}

.akoma-auth-links {
	margin: 18px 0 0;
	font-size: 14px;
}

.akoma-auth-links a {
	color: var(--akoma-brown);
}

/* Scoped to the paragraph: the body also carries an `akoma-auth-join` class on the
   /join route, and an unscoped `.akoma-auth-join a` would recolour every link there. */
p.akoma-auth-join {
	margin: 24px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--akoma-cream);
	font-size: 15px;
	text-align: center;
	color: var(--akoma-text);
}

p.akoma-auth-join a {
	color: var(--akoma-brown);
}

/* Join / sign-up: the two Stripe plan buttons + confirmation note. */
.akoma-join-plans {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 8px 0 4px;
}

.akoma-join-plan {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* The price each button commits the member to. Full-contrast brown rather than faded
   small print: this is the last statement of price before Stripe takes over. */
.akoma-join-plan__terms {
	font-size: 14px;
	line-height: 1.5;
	font-weight: 600;
	color: var(--akoma-brown);
	text-align: center;
}

.akoma-join-note {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--akoma-text);
	opacity: 0.85;
}

.akoma-join-pay {
	margin: 18px 0 2px;
	text-align: center;
}

.akoma-join-pay__label {
	display: block;
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.02em;
	color: var(--akoma-text);
	opacity: 0.7;
}

.akoma-join-pay__marks {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.akoma-join-pay__mark {
	display: block;
	height: 24px;
	width: auto;
}

/* Honeypot – kept in the DOM for bots but off-screen for people. */
.akoma-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.akoma-account-detail {
	margin: 24px 0;
	padding: 20px 22px;
	background: var(--akoma-cream);
	border-radius: 10px;
}

.akoma-account-detail p {
	margin: 6px 0;
	font-size: 15px;
}

.akoma-account-actions {
	margin-top: 24px;
}

@media (max-width: 520px) {
	.akoma-auth-wrap {
		padding-top: calc(var(--akoma-header-h, 132px) + 32px);
	}

	.akoma-auth-card {
		padding: 28px 22px;
	}

	.akoma-auth-card h1 {
		font-size: 27px;
	}
}
