/* St Mary's Parish Dashboard - front end */

/* Demo banner: in normal page flow and rendered by the server, so nothing jumps. */
.smpd-demo-banner {
	position: relative;
	z-index: 99998;
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 32px;
	margin: 0;
	padding: 6px 16px;
	background: #1f2a44;
	color: #fff;
	font: 600 14px/20px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: 0.01em;
	text-align: center;
}

/* Quiet staff login link at the very bottom of every page. */
.smpd-staff-link {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px 16px 14px;
	background: #f4f4f4;
	font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	text-align: center;
}

.smpd-staff-link a {
	color: #4a4a4a;
	text-decoration: underline;
}

.smpd-staff-link a:hover,
.smpd-staff-link a:focus {
	color: #111;
}

/* Staff pages: big, plain and easy to read. */
body.smpd-page {
	margin: 0;
	background: #f7f5f0;
	/* Soft gradient with a faint gold glow, like the dashboard (static). */
	background-image: radial-gradient(ellipse 60% 45% at 100% 0%, rgba(227, 185, 60, 0.18), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(227, 185, 60, 0.12), transparent 70%), linear-gradient(165deg, #fbf8f1, #f1ecdf);
	background-attachment: fixed;
	color: #1a1a1a;
	font: 20px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.smpd-wrap {
	box-sizing: border-box;
	max-width: 560px;
	margin: 40px auto;
	padding: 32px 28px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.smpd-wrap h1 {
	margin: 0 0 8px;
	font-size: 34px;
	line-height: 1.2;
}

.smpd-wrap h2 {
	margin: 0 0 8px;
	font-size: 26px;
}

.smpd-lead {
	margin: 0 0 24px;
	font-size: 20px;
}

.smpd-wrap label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.smpd-wrap input[type="text"],
.smpd-wrap input[type="password"],
.smpd-wrap input[type="email"] {
	box-sizing: border-box;
	width: 100%;
	padding: 14px;
	border: 2px solid #767676;
	border-radius: 8px;
	font-size: 22px;
}

.smpd-wrap .login-remember label {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 400;
}

.smpd-wrap input[type="checkbox"] {
	width: 26px;
	height: 26px;
}

.smpd-wrap input[type="submit"],
.smpd-button {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 16px;
	border: 2px solid #1f4e79;
	border-radius: 8px;
	background: #1f4e79;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.smpd-button--secondary {
	background: #fff;
	color: #1f4e79;
}

.smpd-wrap input[type="submit"]:hover,
.smpd-button:hover {
	background: #163a5c;
	color: #fff;
}

.smpd-wrap a:focus,
.smpd-wrap input:focus,
.smpd-staff-link a:focus {
	outline: 3px solid #f5a623;
	outline-offset: 2px;
}

.smpd-forgot {
	margin: 24px 0 4px;
}

.smpd-help {
	margin: 0 0 24px;
	font-size: 18px;
	color: #444;
}

.smpd-back a {
	color: #1f4e79;
}

.smpd-msg {
	margin: 0 0 20px;
	padding: 14px 16px;
	border-left: 6px solid;
	border-radius: 6px;
}

.smpd-msg--error {
	background: #fdecea;
	border-color: #b3261e;
	color: #6b140f;
}

.smpd-msg--ok {
	background: #e8f5e9;
	border-color: #2e7d32;
	color: #1b4d1e;
}

.smpd-panel {
	margin: 0 0 24px;
	padding: 24px;
	background: #f1f5f9;
	border-radius: 8px;
}

/*
 * The site's Elementor kit (.elementor-kit-83 a / input[type="submit"]) overrides the rules above.
 * These stronger rules, scoped to the plugin's own pages, keep the staff buttons big and high-contrast.
 */
body.smpd-page .smpd-wrap input[type="submit"],
body.smpd-page .smpd-wrap a.smpd-button {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 16px;
	border: 2px solid #1f4e79;
	border-radius: 8px;
	background: #1f4e79;
	color: #fff;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

body.smpd-page .smpd-wrap a.smpd-button--secondary {
	background: #fff;
	color: #1f4e79;
}

body.smpd-page .smpd-wrap input[type="submit"]:hover,
body.smpd-page .smpd-wrap input[type="submit"]:focus,
body.smpd-page .smpd-wrap a.smpd-button:hover,
body.smpd-page .smpd-wrap a.smpd-button:focus {
	border-color: #163a5c;
	background: #163a5c;
	color: #fff;
}

body.smpd-page .smpd-wrap .smpd-back a {
	color: #1f4e79;
	font-size: 20px;
	text-decoration: underline;
}

/* Gold "Open demo dashboard" button (navy text on gold, about 8.9:1 contrast). */
.smpd-demo-open {
	margin: 0 0 24px;
}

body.smpd-page .smpd-wrap a.smpd-button--gold {
	border-color: #e3b93c;
	background: #e3b93c;
	color: #16213e;
}

body.smpd-page .smpd-wrap a.smpd-button--gold:hover,
body.smpd-page .smpd-wrap a.smpd-button--gold:focus {
	border-color: #c99a17;
	background: #c99a17;
	color: #16213e;
}

/* No animation is used anywhere, but make sure nothing moves for these users. */
@media (prefers-reduced-motion: reduce) {
	.smpd-demo-banner,
	.smpd-staff-link,
	.smpd-page * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
