/* Auth + account + membership pages (self-owned Stripe stack). */
.auth-wrap {
	max-width: 420px;
	margin: 40px auto;
	padding: 0 16px;
	font-family: Arial, Helvetica, sans-serif;
}
.auth-wrap.auth-wide { max-width: 920px; }
.auth-wrap h1 { font-size: 22px; margin: 0 0 4px; }
.auth-wrap h1 a { text-decoration: none; color: #1565c0; }
.auth-wrap h1.auth-logo { padding-bottom: 12px; }
.auth-wrap h1.auth-logo a { display: inline-block; }
.auth-logo img { height: 44px; width: auto; display: block; }
.auth-wrap h2 { font-size: 18px; margin: 0 0 16px; font-weight: normal; color: #333; }
.auth-wrap form { display: flex; flex-direction: column; gap: 12px; }
.auth-wrap label { display: flex; flex-direction: column; font-size: 13px; color: #444; gap: 4px; }
.auth-wrap input[type=email], .auth-wrap input[type=password] {
	padding: 9px 10px; font-size: 15px; border: 1px solid #bbb; border-radius: 4px;
}
.auth-wrap button {
	padding: 10px 14px; font-size: 15px; background: #2196F3; color: #fff;
	border: none; border-radius: 4px; cursor: pointer;
}
.auth-wrap button:hover { background: #1976D2; }
.auth-wrap button[disabled], .auth-wrap button[disabled]:hover { background: #90caf9; cursor: default; }
.auth-wrap button.auth-secondary { background: #777; }
.auth-wrap button.auth-secondary:hover { background: #555; }
/* In-button busy indicator for submitting auth forms. */
.auth-spinner {
	display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px;
	border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%;
	animation: auth-spin .7s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-spinner { animation-duration: 2s; } }
.auth-error { background: #fdecea; color: #b71c1c; padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.auth-ok { background: #e8f5e9; color: #1b5e20; padding: 10px 12px; border-radius: 4px; font-size: 14px; }
.auth-links { font-size: 14px; margin: 12px 0 0; }
.account-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0; }
.account-details dt { color: #777; }
.account-convert { margin: 16px 0 24px; }
.account-convert p { margin: 0 0 12px; }
.account-convert form { margin: 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.auth-cta {
	display: inline-block; padding: 10px 14px; background: #4CAF50; color: #fff;
	text-decoration: none; border-radius: 4px;
}
.auth-cta:hover { background: #43a047; }
/* Membership page: intro copy + ad-free banner above the tier grid */
.tier-intro { font-size: 15px; line-height: 1.6; color: #444; margin: 0 0 12px; max-width: 720px; }
.tier-banner {
	background: #e3f2fd; border: 1px solid #90caf9; border-radius: 8px;
	padding: 14px 16px; margin: 20px 0 0; text-align: center;
}
.tier-banner strong { display: block; font-size: 15px; color: #0d47a1; letter-spacing: .4px; }
.tier-banner span { display: block; margin-top: 4px; font-size: 14px; color: #444; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.tier-card { display: flex; flex-direction: column; border: 1px solid #ddd; border-radius: 8px; padding: 18px; text-align: center; }
.tier-card.tier-featured { border-color: #2196F3; box-shadow: 0 0 0 2px rgba(33,150,243,.2); }
.tier-card h3 { margin: 0 0 8px; }
.tier-price { font-size: 26px; font-weight: bold; margin: 0 0 12px; }
.tier-price span { font-size: 14px; font-weight: normal; color: #777; }
.tier-card ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 14px; color: #444; }
.tier-card li { padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.tier-desc { font-size: 14px; color: #444; margin: 0 0 16px; }

/* One-time contribution section below the tier grid */
.tier-onetime { border: 1px solid #ddd; border-radius: 8px; padding: 18px; margin: 24px 0 8px; text-align: center; }
.tier-onetime h3 { margin: 0 0 8px; }
.tier-onetime p { font-size: 14px; color: #444; margin: 0 auto 14px; max-width: 560px; }
.tier-onetime .tier-cta { width: auto; }

/* Tier selection CTA (link styled as a button) */
.tier-cta {
	display: inline-block; width: 100%; box-sizing: border-box; text-align: center;
	margin-top: auto; /* pin to the bottom of the flex card so all CTAs align */
	padding: 10px 14px; font-size: 15px; background: #2196F3; color: #fff;
	border-radius: 4px; text-decoration: none; cursor: pointer;
}
.tier-cta:hover { background: #1976D2; color: #fff; text-decoration: none; }

/* Home button (back to homepage) on standalone pages */
.ro-home-btn {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; color: #0066cc; text-decoration: none;
	background: #f4f6f8; border: 1px solid #d6dbe0; border-radius: 6px;
	padding: 5px 10px; margin-bottom: 14px;
}
.ro-home-btn:hover { background: #e9edf1; border-color: #c2c9d0; color: #0052a3; text-decoration: none; }
.ro-home-btn svg { display: block; }

/* Google Sign-In: "or" divider between the password form and the Google button */
.auth-or {
	display: flex; align-items: center; gap: 10px;
	margin: 18px 0 14px; color: #8a9199; font-size: 13px;
}
.auth-or::before, .auth-or::after {
	content: ""; flex: 1; height: 1px; background: #e2e6ea;
}

/* Google renders its button into an iframe; centre it and keep it on the form's width */
.google-signin { display: flex; justify-content: center; }
.google-signin .g_id_signin > div { margin: 0 auto; }
