/* ==========================================================================
   ABA Registration Wall — aba-regwall.css
   Drop in your child theme's /assets/css/ and enqueue via functions.php
   ========================================================================== */

/* ── Wrapper around teaser + ghost + gate ───────────────────────────────── */
.aba-regwall-content {
	position: relative;
}

/* ── Teaser: the visible paragraphs ─────────────────────────────────────── */
.aba-regwall-teaser {
	position: relative;
}

/* Fade gradient at the bottom of the teaser */
.aba-regwall-teaser::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120px;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.85) 55%,
		rgba(255, 255, 255, 1) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* ── Ghost: blurred dummy text for visual effect ────────────────────────── */
.aba-regwall-ghost {
	filter: blur(5px);
	-webkit-filter: blur(5px);
	user-select: none;
	-webkit-user-select: none;
	pointer-events: none;
	opacity: 0.55;
	margin-top: -24px; /* Pulls up under the fade */
	padding-bottom: 8px;
	overflow: hidden;
	max-height: 160px;
}

.aba-regwall-ghost p {
	margin: 0;
	line-height: 1.75;
	color: #111;
	font-size: 1.05em;
}

/* ── Gate wrapper ───────────────────────────────────────────────────────── */
.aba-regwall-gate {
	position: relative;
	z-index: 10;
	margin-top: -20px;
	padding-bottom: 48px;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.aba-regwall-card {
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	padding: 36px 40px 40px;
	background: #fff;
	max-width: 560px;
	margin: 0 auto;
	box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
}

@media (max-width: 600px) {
	.aba-regwall-card {
		padding: 28px 20px 32px;
	}
}

/* Card head */
.aba-regwall-card__head {
	text-align: center;
	margin-bottom: 28px;
}

.aba-regwall-card__icon {
	color: #1a1a1a;
	margin-bottom: 10px;
}

.aba-regwall-card__eyebrow {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #c00;
	margin: 0 0 8px;
}

.aba-regwall-card__title {
	font-size: 1.55rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 10px;
	color: #111;
	font-family: inherit;
}

.aba-regwall-card__sub {
	font-size: 0.92rem;
	color: #555;
	margin: 0;
	line-height: 1.55;
}

/* ── Form layout ────────────────────────────────────────────────────────── */
.aba-regwall-form__row {
	margin-bottom: 16px;
}

.aba-regwall-form__label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.aba-regwall-form__label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
	letter-spacing: 0.01em;
}

.aba-regwall-form__input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.95rem;
	color: #111;
	background: #fafafa;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.aba-regwall-form__input:focus {
	outline: none;
	border-color: #1a1a1a;
	background: #fff;
	box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.08);
}

.aba-regwall-form__pw-wrap {
	position: relative;
}

.aba-regwall-form__pw-wrap .aba-regwall-form__input {
	padding-right: 44px;
}

.aba-regwall-form__pw-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #888;
	line-height: 0;
	transition: color 0.15s;
}

.aba-regwall-form__pw-toggle:hover {
	color: #111;
}

.aba-regwall-form__hint {
	font-size: 0.75rem;
	color: #888;
	margin: 4px 0 0;
}

.aba-regwall-form__forgot {
	font-size: 0.78rem;
	color: #555;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aba-regwall-form__forgot:hover {
	color: #111;
}

.aba-regwall-form__notice {
	font-size: 0.73rem;
	color: #888;
	line-height: 1.5;
	margin-bottom: 20px;
}

.aba-regwall-form__notice a {
	color: #555;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ── Message states ─────────────────────────────────────────────────────── */
.aba-regwall-form__msg {
	font-size: 0.85rem;
	min-height: 20px;
	margin-bottom: 12px;
	border-radius: 3px;
	padding: 0;
	transition: all 0.2s;
}

.aba-regwall-form__msg.is-error {
	color: #c0392b;
	background: #fdf3f2;
	padding: 10px 14px;
	border: 1px solid #f5c0bc;
}

.aba-regwall-form__msg.is-success {
	color: #1a7f4e;
	background: #f0faf5;
	padding: 10px 14px;
	border: 1px solid #a8dfc2;
}
.aba-regwall-panel { display: none !important; }
.aba-regwall-panel.is-active { display: block !important; }

/* ── Submit button ──────────────────────────────────────────────────────── */
.aba-regwall-btn {
	width: 100%;
	padding: 12px 20px;
	border: none;
	border-radius: 3px;
	font-size: 1.1rem !important;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.18s ease, opacity 0.18s ease;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	letter-spacing: 0.02em;
}

.aba-regwall-btn--primary {
	background: #1a1a1a;
	color: #fff;
}

.aba-regwall-btn--primary:hover {
	background: #333;
}

.aba-regwall-btn.is-loading .aba-regwall-btn__label {
	opacity: 0.4;
}
.aba-regwall-btn__label {
    font-size: 1.1rem !important;
}
/* Spinner */
.aba-regwall-btn__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: aba-spin 0.7s linear infinite;
	position: absolute;
}

.aba-regwall-btn.is-loading .aba-regwall-btn__spinner {
	display: block;
}

@keyframes aba-spin {
	to { transform: rotate(360deg); }
}

/* ── Divider ────────────────────────────────────────────────────────────── */
.aba-regwall-divider {
	display: flex;
	align-items: center;
	margin: 22px 0 18px;
	gap: 12px;
	color: #bbb;
	font-size: 0.78rem;
}

.aba-regwall-divider::before,
.aba-regwall-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e5e5e5;
}

/* ── Panel switch link ──────────────────────────────────────────────────── */
.aba-regwall-switch {
	text-align: center;
	font-size: 0.88rem;
	color: #555;
	margin: 0;
}

.aba-regwall-switch__link {
	background: none;
	border: none;
	padding: 0;
	color: #1a1a1a;
	font-size: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aba-regwall-switch__link:hover {
	color: #555;
}

/* ── Dark-theme support (if your theme switches) ────────────────────────── */
@media (prefers-color-scheme: dark) {
	.aba-regwall-teaser::after {
		background: linear-gradient(
			to bottom,
			rgba(18, 18, 18, 0) 0%,
			rgba(18, 18, 18, 0.88) 55%,
			rgba(18, 18, 18, 1) 100%
		);
	}

	.aba-regwall-card {
		background: #1e1e1e;
		border-color: #333;
		box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
	}

	.aba-regwall-card__title  { color: #f0f0f0; }
	.aba-regwall-card__sub    { color: #aaa; }
	.aba-regwall-form__label  { color: #ccc; }
	.aba-regwall-form__input  { background: #2a2a2a; border-color: #444; color: #eee; }
	.aba-regwall-form__input:focus { border-color: #eee; }
	.aba-regwall-btn--primary { background: #eee; color: #111; }
	.aba-regwall-btn--primary:hover { background: #ccc; }
	.aba-regwall-switch        { color: #aaa; }
	.aba-regwall-switch__link  { color: #eee; }
}
