.entry-content > #adunemat-clerk-gate,
.entry-content > #adunemat-clerk-callback,
article > .entry-content > #adunemat-clerk-gate:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
article > .entry-content > #adunemat-clerk-callback:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
	max-width: none !important;
}

.agc-gate,
.agc-callback {
	position: relative;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 32px 16px;
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

.agc-blob {
	position: absolute;
	border-radius: 9999px;
	pointer-events: none;
	filter: blur(60px);
	z-index: 0;
}

.agc-blob-1 {
	top: -120px;
	left: -120px;
	width: 480px;
	height: 480px;
	background: radial-gradient(circle, #f87171 0%, var(--agc-primary, #c81618) 40%, transparent 75%);
	opacity: 0.22;
}

.agc-blob-2 {
	top: 60px;
	right: -80px;
	width: 260px;
	height: 260px;
	background: radial-gradient(circle, var(--agc-primary, #901919) 0%, transparent 70%);
	opacity: 0.18;
	filter: blur(50px);
}

.agc-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 24px;
	padding: 40px 32px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(0, 0, 0, 0.06);
	text-align: center;
	backdrop-filter: blur(20px);
	box-sizing: border-box;
}

.agc-logo-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.agc-logo {
	height: 64px;
	width: 64px;
	object-fit: contain;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 25px color-mix(in srgb, var(--agc-primary, #c81618) 20%, transparent);
	padding: 8px;
}

.agc-title {
	font-size: 20px;
	font-weight: 700;
	color: #171717;
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}

.agc-subtitle {
	font-size: 14px;
	color: #737373;
	margin: 0 0 24px;
	line-height: 1.5;
}

.agc-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 14px 16px;
	border-radius: 16px;
	border: 1px solid #e5e5e5;
	background: #fff;
	color: #404040;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.agc-google-btn:hover {
	border-color: #d4d4d4;
	background: #fafafa;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.agc-google-btn:active {
	transform: scale(0.98);
}

.agc-google-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.agc-google-icon {
	height: 20px;
	width: 20px;
	flex-shrink: 0;
}

.agc-footer-note {
	margin-top: 20px;
	font-size: 12px;
	color: #a3a3a3;
}

.agc-message {
	margin-top: 18px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fdecea;
	color: #611a15;
	font-size: 13px;
	text-align: left;
}

/* -----------------------------------------------------------------
 * ESTILOS DO CALLBACK (/acesso-associado/auth-callback)
 * Fidelidade visual à tela /auth/callback do Next.js
 * ----------------------------------------------------------------- */

.agc-callback-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 400px;
	width: 100%;
}

.agc-floating-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 10px 25px color-mix(in srgb, var(--agc-primary, #c81618) 22%, transparent);
	border: 1px solid color-mix(in srgb, var(--agc-primary, #c81618) 28%, transparent);
	margin: 0 auto 24px;
	padding: 8px;
	box-sizing: border-box;
}

.agc-floating-logo-img {
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.agc-state-view {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	width: 100%;
}

.agc-spinner {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 4px solid color-mix(in srgb, var(--agc-primary, #c81618) 20%, transparent);
	border-top-color: var(--agc-primary, #c81618);
	animation: agc-spin 0.8s linear infinite;
	margin-bottom: 10px;
}

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

.agc-loading-title {
	font-size: 14px;
	font-weight: 600;
	color: #525252;
	margin: 0;
}

.agc-loading-subtitle {
	font-size: 12px;
	color: #a3a3a3;
	margin: 0;
}

.agc-error-card {
	padding: 32px 28px;
}

.agc-state-icon {
	font-size: 38px;
	line-height: 1;
	margin-bottom: 14px;
}

.agc-error-card .agc-title {
	font-size: 18px;
	margin-bottom: 8px;
}

.agc-error-card .agc-subtitle {
	font-size: 13.5px;
	margin-bottom: 10px;
}

.agc-error-email {
	color: #262626;
	font-weight: 700;
	word-break: break-all;
}

.agc-error-hint {
	font-size: 12px;
	color: #a3a3a3;
	line-height: 1.45;
	margin: 0 0 20px;
}

.agc-primary-action-btn {
	display: block;
	width: 100%;
	padding: 12px 18px;
	border-radius: 16px;
	background: var(--agc-primary, #c81618);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.agc-primary-action-btn:hover {
	filter: brightness(0.92);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--agc-primary, #c81618) 35%, transparent);
	transform: translateY(-1px);
}

.agc-primary-action-btn:active {
	transform: translateY(0);
	filter: brightness(0.85);
}

.agc-primary-action-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* -----------------------------------------------------------------
 * FAIXA GLOBAL DO ASSOCIADO E LOGOUT
 * ----------------------------------------------------------------- */

.agc-global-user-info {
	box-sizing: border-box;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--agc-global-user-info-height, 32px);
	padding: 4px 12px;
	background: #111827;
	color: #fff;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
}

body.admin-bar .agc-global-user-info {
	top: 32px;
}

body.agc-clerk-session-active {
	--agc-global-user-info-height: 32px;
	--header-sticky-offset: var(--agc-global-user-info-height);
}

body.agc-clerk-session-active:not(.cssm-header-active) {
	padding-top: var(--agc-global-user-info-height);
}

.agc-global-user-info .agc-user-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	max-width: 100%;
	min-width: 0;
}

.agc-user-profile {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	vertical-align: middle;
}

.agc-user-avatar-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	overflow: hidden;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
}

.agc-user-avatar-slot:empty {
	display: none;
}

.agc-user-avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.agc-user-name {
	max-width: min(52vw, 360px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.agc-global-user-info a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.agc-user-info {
	font-family: "Poppins", sans-serif;
	font-size: 13px;
}

.agc-user-info a {
	text-decoration: underline;
	cursor: pointer;
}

@media screen and (max-width: 782px) {
	body.admin-bar .agc-global-user-info {
		top: 46px;
	}
}

@media screen and (max-width: 480px) {
	.agc-user-welcome {
		display: none;
	}

	.agc-user-name {
		max-width: 54vw;
	}
}
