/**
 * Promoted Charity Core — Auth Page (Log In / Sign Up / Forgot Password)
 *
 * Self-contained, scoped under .pcc-auth. Uses the same brand tokens
 * as the dashboards but doesn't depend on dashboard.css or admin.css
 * being loaded — a site's "Log In" page won't have the dashboard
 * shortcode on it, so this stays independent. Drops into any page
 * width/builder without assuming full-bleed layout.
 */

.pcc-auth {
	--pcc-auth-primary: #032D24;
	--pcc-auth-primary-hover: #0A5C4A;
	--pcc-auth-secondary: #0A5C4A;
	--pcc-auth-accent: #D4A84F;
	--pcc-auth-accent-soft: rgba(212, 168, 79, 0.14);
	--pcc-auth-primary-soft: rgba(3, 45, 36, 0.05);
	--pcc-auth-bg: #F7F8F5;
	--pcc-auth-surface: #ffffff;
	--pcc-auth-border: #e3e6de;
	--pcc-auth-text: #16211d;
	--pcc-auth-text-muted: #5c6b64;
	--pcc-auth-radius: 16px;
	--pcc-auth-shadow: 0 2px 4px rgba(3, 45, 36, 0.05), 0 12px 32px -12px rgba(3, 45, 36, 0.18);

	max-width: 440px;
	margin: 48px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--pcc-auth-text);
}

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

/* Header: seal mark + eyebrow + heading, changes copy per tab */
.pcc-auth-header {
	text-align: center;
	margin-bottom: 24px;
}

.pcc-auth-seal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 14px;
}

.pcc-auth-seal svg {
	width: 100%;
	height: 100%;
}

.pcc-auth-eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pcc-auth-accent);
}

.pcc-auth-heading {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 750;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--pcc-auth-primary);
}

.pcc-auth-subtext {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pcc-auth-text-muted);
	max-width: 34ch;
	margin-inline: auto;
}

.pcc-auth-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
	background: var(--pcc-auth-bg);
	border: 1px solid var(--pcc-auth-border);
	border-radius: 999px;
	padding: 4px;
}

.pcc-auth-tab {
	flex: 1 1 0;
	text-align: center;
	padding: 10px 16px;
	border-radius: 999px;
	color: var(--pcc-auth-text-muted);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pcc-auth-tab:hover {
	color: var(--pcc-auth-primary);
}

.pcc-auth-tab--active {
	background: var(--pcc-auth-primary);
	color: #ffffff;
	box-shadow: 0 4px 10px -4px rgba(3, 45, 36, 0.45);
}

.pcc-auth-panel {
	position: relative;
	background: var(--pcc-auth-surface);
	border: 1px solid var(--pcc-auth-border);
	border-radius: var(--pcc-auth-radius);
	box-shadow: var(--pcc-auth-shadow);
	padding: 36px 32px;
	overflow: hidden;
}

/* Thin gold ribbon along the top edge — the one accent flourish. */
.pcc-auth-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--pcc-auth-accent) 0%, var(--pcc-auth-secondary) 100%);
}

.pcc-auth-panel--logged-in {
	text-align: center;
}

.pcc-auth-panel--logged-in p {
	margin: 0 0 16px;
	color: var(--pcc-auth-text-muted);
}

.pcc-auth-message {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 13px;
	margin-bottom: 16px;
	font-weight: 500;
	border: 1px solid transparent;
}

.pcc-auth-message--success {
	background: #ecfdf3;
	color: #16a34a;
	border-color: #bbf0cf;
}

.pcc-auth-message--error {
	background: #fef2f2;
	color: #dc2626;
	border-color: #f9cdcd;
}

.pcc-auth-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.pcc-auth-field label {
	font-weight: 600;
	font-size: 13px;
	color: var(--pcc-auth-primary);
}

.pcc-auth-field--checkbox label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	color: var(--pcc-auth-text-muted);
	font-size: 13px;
}

/* Icon + input wrapper */
.pcc-auth-input-wrap {
	position: relative;
	display: block;
}

.pcc-auth-input-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: var(--pcc-auth-text-muted);
	pointer-events: none;
	transition: color 0.15s ease;
}

.pcc-auth-field input[type="text"],
.pcc-auth-field input[type="email"],
.pcc-auth-field input[type="password"] {
	width: 100%;
	padding: 12px 14px 12px 40px;
	border: 1px solid var(--pcc-auth-border);
	border-radius: 10px;
	font-family: inherit;
	font-size: 14px;
	background: var(--pcc-auth-bg);
	color: var(--pcc-auth-text);
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pcc-auth-field input:focus {
	outline: none;
	border-color: var(--pcc-auth-secondary);
	box-shadow: 0 0 0 3px var(--pcc-auth-primary-soft);
	background: #ffffff;
}

.pcc-auth-field input:focus + .pcc-auth-input-icon,
.pcc-auth-input-wrap:focus-within .pcc-auth-input-icon {
	color: var(--pcc-auth-secondary);
}

.pcc-auth-field input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--pcc-auth-primary);
}

.pcc-auth-field--checkbox {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.pcc-auth-button {
	display: block;
	width: 100%;
	text-align: center;
	padding: 13px 16px;
	border: none;
	border-radius: 10px;
	background: var(--pcc-auth-primary);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	margin-top: 4px;
	box-shadow: 0 6px 16px -6px rgba(3, 45, 36, 0.5);
}

.pcc-auth-button:hover {
	background: var(--pcc-auth-primary-hover);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px -6px rgba(3, 45, 36, 0.55);
}

.pcc-auth-button:active {
	transform: translateY(0);
}

.pcc-auth-link {
	display: inline-block;
	margin-top: 14px;
	color: var(--pcc-auth-secondary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
}

.pcc-auth-link:hover {
	text-decoration: underline;
}

.pcc-auth-switch {
	margin: 20px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--pcc-auth-border);
	text-align: center;
	font-size: 13px;
	color: var(--pcc-auth-text-muted);
}

.pcc-auth-switch a {
	color: var(--pcc-auth-secondary);
	font-weight: 600;
	text-decoration: none;
}

.pcc-auth-switch a:hover {
	text-decoration: underline;
}

.pcc-page-description {
	color: var(--pcc-auth-text-muted);
	font-size: 13px;
	margin: 0 0 16px;
}

.pcc-auth-panel--closed {
	text-align: center;
}

.pcc-auth-panel--closed .pcc-auth-button {
	margin-bottom: 12px;
}

@media (max-width: 480px) {
	.pcc-auth {
		margin: 24px auto;
		padding: 0 4px;
	}

	.pcc-auth-panel {
		padding: 28px 22px;
	}

	.pcc-auth-heading {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcc-auth-button,
	.pcc-auth-tab,
	.pcc-auth-field input,
	.pcc-auth-input-icon {
		transition: none;
	}

	.pcc-auth-button:hover {
		transform: none;
	}
}
