/* Signup and login only — extracted without changing declarations. */
/* ---- Signup template ---- */
.signup__inner {
	max-width: 460px;
	margin: 3rem auto;
}
.signup__card {
	background: var(--color-surface);
	color: var(--color-text);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 2rem;
}
.signup__title {
	margin: 0 0 1rem;
	font-size: 1.6rem;
}
.signup__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-bottom: 1rem;
}
.signup__field label {
	font-weight: 500;
	font-size: 0.9rem;
}
.signup__field input {
	padding: 0.6rem 0.75rem;
	background: var(--color-surface);
	color: var(--color-text);
	border: 1px solid var(--color-border-2);
	border-radius: 6px;
	font-size: 1rem;
}
.signup__field input::placeholder {
	color: var(--color-text-faint);
}
.signup__field input:focus-visible {
	outline: 2px solid var(--color-brand);
	outline-offset: 1px;
	border-color: var(--color-brand);
}
.signup__hint {
	font-size: 0.8rem;
	color: var(--color-text-muted);
}
.signup__error {
	color: #b3261e;
	font-size: 0.9rem;
	margin: 0 0 1rem;
}
.signup__success {
	color: #1c6b3a;
	background: #e3f5e9;
	border: 1px solid transparent;
	font-size: 0.9rem;
	padding: 0.6rem 0.8rem;
	border-radius: 6px;
	margin: 0 0 1rem;
}
.signup__alt {
	font-size: 0.9rem;
	margin: 0.75rem 0 0;
}
.signup__alt a { color: var(--color-brand); }
.signup__check {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	margin: 0 0 1rem;
}
.signup__check input { width: auto; }
.signup__notice {
	font-size: 0.9rem;
	padding: 0.6rem 0.8rem;
	border-radius: 6px;
	background: var(--color-surface-3);
	color: var(--color-text);
	margin: 0 0 1rem;
}
.signup__notice--error {
	background: #fdecea;
	color: #922;
}
.signup__btn,
.signup__submit {
	display: inline-block;
	width: 100%;
	padding: 0.7rem 1rem;
	background: var(--color-brand);
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.signup__btn:hover,
.signup__submit:hover:not([disabled]) { background: var(--color-brand-strong); }
.signup__submit[disabled] {
	opacity: 0.6;
	cursor: default;
}
.signup__price {
	margin: 0.75rem 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: #5b6472;
}

/* ---- Signup: multi-plan picker (template-signup-plans.php) ---- */
/* Wider than .signup__inner — it has to hold a row of plan cards. */
.signup-plans__inner {
	max-width: 900px;
	margin: 3rem auto;
}
/* Separates the form from the page's editor intro copy above it. Keyed to
   [data-signup-form] because login/forgot/reset also use .signup__form (and
   .signup on <main>) but have no intro copy — they'd get a stray gap. */
.signup__form[data-signup-form] {
	margin-top: 2rem;
}
.signup-plans__fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 1.5rem;
	min-width: 0; /* fieldsets won't shrink below content width without this */
}
.signup-plans__legend {
	padding: 0;
	margin-bottom: 0.75rem;
	font-weight: 500;
	font-size: 0.9rem;
}
.signup-plans__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}
.signup-plans__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	padding: 1.75rem 1.25rem 1.25rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	text-align: center;
	cursor: pointer;
}
/* The radio is the control; the card is only its visual. Keep it in the layout
   and focusable — never display:none, which would drop it from the tab order. */
.signup-plans__radio {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}
.signup-plans__card:has(.signup-plans__radio:checked) {
	border-color: var(--color-brand);
	box-shadow: inset 0 0 0 1px var(--color-brand);
}
.signup-plans__card:has(.signup-plans__radio:focus-visible) {
	outline: 2px solid var(--color-brand);
	outline-offset: 2px;
}
.signup-plans__badge {
	position: absolute;
	top: -0.65rem;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.15rem 0.6rem;
	background: var(--color-brand);
	color: #fff;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}
/* Name, price, interval and listing count all share one size so the card
   reads as a block rather than a headline with footnotes. */
.signup-plans__name,
.signup-plans__amount {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.15;
}
/* Sets the price apart from the name above and the interval below. Adds to
   the card's 0.4rem flex gap rather than collapsing into it. */
.signup-plans__amount {
	margin: 0.5rem 0;
}
/* Interval and listing count are the same field visually — same font, size
   and weight — so they must be styled together. */
.signup-plans__cadence,
.signup-plans__listings {
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.15;
}
.signup-plans__cadence {
	color: var(--color-text-muted);
}
.signup-plans__blurb {
	font-size: 0.85rem;
	color: var(--color-text-muted);
}
/* Pushes the button to the bottom so cards of differing height line up. */
.signup-plans__select {
	width: 100%;
	margin-top: auto;
}
.signup-plans__select-idle,
.signup-plans__select-active {
	display: block;
	margin-top: 1.25rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--color-brand);
	border-radius: 6px;
	font-size: 0.95rem;
	font-weight: 500;
}
.signup-plans__select-idle {
	color: var(--color-brand);
}
.signup-plans__select-active {
	display: none;
	background: var(--color-brand);
	color: #fff;
}
.signup-plans__card:has(.signup-plans__radio:checked) .signup-plans__select-idle {
	display: none;
}
.signup-plans__card:has(.signup-plans__radio:checked) .signup-plans__select-active {
	display: block;
}
/* The account fields stay narrow under the full-width card row. */
.signup-plans__account {
	max-width: 460px;
	margin-inline: auto;
}

/* Full-screen checkout-redirect overlay */
.signup__loading {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	background: rgba(255, 255, 255, 0.92);
	z-index: 9999;
}
/* The [hidden] attribute must win over display:flex, or the overlay shows on
   load and spins forever. */
.signup__loading[hidden],
.add-listing__loading[hidden] {
	display: none;
}
.signup__spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #e2e5ea;
	border-top-color: var(--color-brand);
	border-radius: 50%;
	animation: signup-spin 0.8s linear infinite;
}
@keyframes signup-spin {
	to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
	.signup__spinner { animation: none; }
}

