/* AuthentiCAT — public verification page.
   Neutral, self-contained styling that sits inside the theme's header/footer
   without inheriting surprises from it. */

.authenticat-wrap {
	--ac-ink: #1f2223;
	--ac-muted: #6f7679;
	--ac-line: #e2e5e6;
	--ac-red: #ed3237;
	--ac-green: #1e8a4c;
	--ac-green-bg: #eaf6ef;
	--ac-amber: #8a6a1e;
	--ac-amber-bg: #fdf5e3;
	--ac-radius: 10px;

	max-width: 640px;
	margin: 0 auto;
	padding: 40px 20px 64px;
	box-sizing: border-box;
	color: var(--ac-ink);
	font-size: 16px;
	line-height: 1.55;
}

.authenticat-wrap *,
.authenticat-wrap *::before,
.authenticat-wrap *::after {
	box-sizing: border-box;
}

.authenticat-card {
	background: #fff;
	border: 1px solid var(--ac-line);
	border-radius: var(--ac-radius);
	padding: 32px 28px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.authenticat-brand {
	text-align: center;
	margin-bottom: 28px;
}

.authenticat-brand svg {
	width: 100%;
	max-width: 260px;
	height: auto;
	display: inline-block;
}

.authenticat-title {
	font-size: 26px;
	line-height: 1.25;
	margin: 0 0 10px;
	text-align: center;
	color: var(--ac-ink);
}

.authenticat-subtitle {
	font-size: 20px;
	margin: 0 0 8px;
	color: var(--ac-ink);
}

.authenticat-lead {
	margin: 0 0 20px;
	color: var(--ac-muted);
	text-align: center;
}

.authenticat-register .authenticat-lead {
	text-align: left;
}

.authenticat-help,
.authenticat-hint {
	color: var(--ac-muted);
	font-size: 13px;
}

.authenticat-help {
	margin-top: 18px;
	text-align: center;
}

.authenticat-hint {
	display: block;
	margin-top: 6px;
}

/* --- Authenticity seal --------------------------------------------------- */

.authenticat-seal {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--ac-green-bg);
	color: var(--ac-green);
	border-radius: 999px;
	padding: 10px 20px;
	width: fit-content;
	margin: 0 auto 20px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	font-size: 14px;
}

.authenticat-seal--unknown {
	background: #f6f2f2;
	color: var(--ac-red);
}

.authenticat-seal__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: currentColor;
	color: #fff;
	font-size: 14px;
	line-height: 1;
}

.authenticat-product-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto 20px;
	border-radius: 8px;
}

.authenticat-description {
	margin: 0 0 24px;
	text-align: center;
	color: var(--ac-muted);
}

/* --- Meta list ----------------------------------------------------------- */

.authenticat-meta {
	margin: 0 0 28px;
	padding: 0;
	border-top: 1px solid var(--ac-line);
}

.authenticat-meta__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ac-line);
}

.authenticat-meta dt {
	margin: 0;
	color: var(--ac-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.authenticat-meta dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
	word-break: break-word;
}

.authenticat-code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	letter-spacing: 2px;
}

.authenticat-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.authenticat-badge--registered {
	background: var(--ac-green-bg);
	color: var(--ac-green);
}

.authenticat-badge--pending {
	background: var(--ac-amber-bg);
	color: var(--ac-amber);
}

/* --- Forms --------------------------------------------------------------- */

.authenticat-register {
	border-top: 1px solid var(--ac-line);
	padding-top: 24px;
}

.authenticat-field {
	margin-bottom: 16px;
}

.authenticat-label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--ac-muted);
}

.authenticat-input {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--ac-line);
	border-radius: 6px;
	font-size: 16px;
	font-family: inherit;
	color: var(--ac-ink);
	background: #fff;
}

.authenticat-input:focus {
	outline: 2px solid var(--ac-red);
	outline-offset: 1px;
	border-color: var(--ac-red);
}

.authenticat-input--code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	letter-spacing: 4px;
	text-transform: uppercase;
	font-size: 20px;
	text-align: center;
}

.authenticat-form--lookup {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 340px;
	margin: 0 auto;
}

.authenticat-button {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border: 0;
	border-radius: 6px;
	background: var(--ac-red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	font-family: inherit;
}

.authenticat-button:hover:not(:disabled) {
	filter: brightness(1.07);
}

.authenticat-button:disabled {
	background: var(--ac-muted);
	cursor: not-allowed;
}

.authenticat-req {
	color: var(--ac-red);
}

.authenticat-optional {
	color: var(--ac-muted);
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.authenticat-field--check {
	margin: 20px 0 22px;
}

.authenticat-checkbox {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	color: var(--ac-muted);
	cursor: pointer;
}

.authenticat-checkbox input {
	margin-top: 4px;
	flex: 0 0 auto;
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.authenticat-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* --- Alerts -------------------------------------------------------------- */

.authenticat-alert {
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 15px;
}

.authenticat-alert--error {
	background: #fdecec;
	color: #a3211f;
	border: 1px solid #f5c9c8;
}

.authenticat-alert--success {
	background: var(--ac-green-bg);
	color: var(--ac-green);
	border: 1px solid #bfe3cd;
}

/* Solo lo ve quien administra: el recordatorio de que el modo Coming Soon
   esta encendido para todos los demas. */
.authenticat-alert--notice {
	background: var(--ac-amber-bg);
	color: var(--ac-amber);
	border: 1px solid #ecd9a6;
	text-align: left;
}

.authenticat-alert--notice a {
	color: inherit;
}

/* --- Coming Soon --------------------------------------------------------- */

.authenticat-soon {
	text-align: center;
	padding: 8px 0 4px;
}

.authenticat-soon .authenticat-lead {
	margin-bottom: 12px;
}

.authenticat-soon .authenticat-lead:last-of-type {
	margin-bottom: 0;
}

.authenticat-soon .authenticat-title {
	margin-bottom: 16px;
}

.authenticat-soon .authenticat-help {
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid var(--ac-line);
}

.authenticat-footer-link {
	margin: 24px 0 0;
	text-align: center;
	font-size: 14px;
}

@media (max-width: 480px) {
	.authenticat-wrap { padding: 24px 14px 48px; }
	.authenticat-card { padding: 24px 18px; }
	.authenticat-title { font-size: 22px; }
	.authenticat-meta__row { flex-direction: column; align-items: flex-start; gap: 4px; }
	.authenticat-meta dd { text-align: left; }
}

/* Red de seguridad: si el tema volviera a dibujar su banner de titulo
   (por ejemplo tras una actualizacion que cambie el hook), aca no se ve.
   Esta hoja se carga unicamente en /authenticat/. */
body.authenticat-verify .page-title{ display: none !important; }
