/* One-page sign-in — crest palette, dark, premium, mobile-first */
:root {
	--black: #0d0d0d;
	--gold: #e8a838;
	--cream: #f4efe6;
	--crimson: #a00008;
	--field: #161513;
	--line: #2e2b27;
	--muted: #c4bba8;
	--font: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
	--font-display: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
	--radius: 12px;
	--tap: 48px;
}
html, body { margin: 0; padding: 0; min-height: 100%; background: var(--black); }
body.tawwab-public {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--black);
	color: var(--cream);
	font-family: var(--font);
	-webkit-font-smoothing: antialiased;
}
.tawwab-gate {
	width: 100%;
	max-width: 24rem;
	padding: 2rem 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}
.tawwab-gate .gate-crest {
	width: 72px;
	height: 72px;
	display: block;
	margin: 0 auto 1.25rem;
}
.tawwab-gate h1 {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.75rem;
	letter-spacing: -0.02em;
	margin: 0 0 1.25rem;
	line-height: 1.15;
	color: var(--cream);
	text-align: center;
}
.gate-notice {
	margin: 0 0 1rem;
	padding: 0.7rem 0.85rem;
	border-radius: var(--radius);
	background: #1c1515;
	color: #f0d4d2;
	font-size: 0.95rem;
	line-height: 1.4;
}
.gate-form { display: flex; flex-direction: column; }
.gate-form label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--muted);
	margin: 0.7rem 0 0.35rem;
}
.gate-form label.remember {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.9rem 0 1.15rem;
	font-size: 0.92rem;
	font-weight: 400;
	color: var(--cream);
	cursor: pointer;
}
.gate-form .remember input { width: 1.1rem; height: 1.1rem; accent-color: var(--gold); }
.gate-form .input,
.gate-form input[type="text"],
.gate-form input[type="password"],
.gate-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	min-height: var(--tap);
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--field);
	color: var(--cream);
	font-family: inherit;
	font-size: 1rem;
	caret-color: var(--cream);
	box-shadow: none;
	appearance: none;
	-webkit-appearance: none;
}
.gate-form .input:focus,
.gate-form input:focus {
	outline: none;
	border-color: var(--gold);
}
.gate-form input:-webkit-autofill,
.gate-form input:-webkit-autofill:hover,
.gate-form input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--cream);
	caret-color: var(--cream);
	box-shadow: 0 0 0 1000px var(--field) inset;
	-webkit-box-shadow: 0 0 0 1000px var(--field) inset;
	border-color: var(--line);
	transition: background-color 9999s ease-out;
}
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 4.25rem; }
.pw-toggle {
	position: absolute;
	right: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	color: var(--muted);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	min-height: 40px;
	padding: 0 0.65rem;
	cursor: pointer;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--cream); outline: none; }
.btn-passkey,
#tawwab-passkey {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--tap);
	margin: 0 0 0.65rem;
	padding: 0.7rem 1rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--gold);
	color: var(--black);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
}
.btn-passkey:hover, .btn-passkey:focus-visible,
#tawwab-passkey:hover, #tawwab-passkey:focus-visible {
	filter: brightness(1.06);
	outline: 2px solid var(--gold);
	outline-offset: 2px;
}
.gate-form .submit { margin: 0; padding: 0; }
.btn-signin,
#wp-submit {
	display: block;
	width: 100%;
	min-height: var(--tap);
	margin: 0;
	padding: 0.7rem 1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: transparent;
	color: var(--cream);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}
.btn-signin:hover, .btn-signin:focus-visible,
#wp-submit:hover, #wp-submit:focus-visible {
	border-color: var(--muted);
	outline: none;
}
#wfls-passkey-container { display: none !important; }
.gate-links {
	margin: 1.15rem 0 0;
	text-align: center;
	font-size: 0.9rem;
}
.gate-links a { color: var(--muted); text-decoration: none; }
.gate-links a:hover, .gate-links a:focus-visible { color: var(--gold); }
.wp-site-blocks, header, footer, nav, .skip-link { display: none !important; }

@media (min-width: 1280px) {
	.tawwab-gate { max-width: 24.5rem; }
	.tawwab-gate .gate-crest { width: 80px; height: 80px; }
}
