/**
 * Painel administrativo (/cadastros) e login. Usa os tokens, botões, campos
 * e diálogos do site.css: carregue o site.css antes deste arquivo.
 * @author Sandro Jordão.
 */

body.admin { --sidebar: 264px; }

/* ---------------------------------------------------------------- Botões extras */

.btn--sm { padding: .5em .9em; font-size: .88rem; }

.btn--text {
	padding-inline: .4em;
	background: none;
	color: var(--muted);
}
.btn--text:hover { color: var(--text); transform: none; }

.btn--danger { border-color: rgba(224, 70, 75, .45); background: transparent; color: #ff8f8f; }
.btn--danger:hover { border-color: var(--c-red); background: rgba(224, 70, 75, .12); color: #ffb3b3; }
.btn--danger-solid { background: var(--c-red); color: #fff; }
.btn--danger-solid:hover { background: #ec5a5f; color: #fff; }

.btn--whatsapp { background: #25d366; color: #0b2614; }
.btn--whatsapp:hover { background: #3ee07b; color: #0b2614; }

.a-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface-2);
	color: var(--muted);
	cursor: pointer;
	transition: color .2s, border-color .2s, background-color .2s;
}

.a-icon-btn .icone { width: 18px; height: 18px; }
.a-icon-btn:hover { border-color: var(--c-red); color: #ff8f8f; }

.modal__actions { display: flex; gap: 10px; margin-top: 8px; }

/* ---------------------------------------------------------------- Menu lateral */

.a-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 40;
	display: flex;
	flex-direction: column;
	gap: 22px;
	width: var(--sidebar);
	padding: 22px 14px 18px;
	background: var(--bg-2);
	border-right: 1px solid var(--line);
	overflow-y: auto;
	transition: transform .3s ease;
}

.a-brand {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 0 10px;
	color: var(--muted);
	text-decoration: none;
}

.a-brand img { width: 120px; }
.a-brand span { margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.a-nav { display: grid; gap: 2px; }

.a-nav__link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: var(--radius);
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}

.a-nav__link:hover { background: var(--surface); color: var(--text); }

.a-nav__link[aria-current="page"] {
	background: var(--surface);
	color: var(--text);
	box-shadow: inset 3px 0 0 var(--orange);
}

.a-nav__link[aria-current="page"] .icone { color: var(--orange-hi); }

.a-badge {
	margin-left: auto;
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--orange);
	color: var(--ink);
	font-size: .78rem;
	font-weight: 800;
	text-align: center;
}

.a-user { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

.a-user__card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
}

.a-user__card:hover,
.a-user__card[aria-current="page"] { background: var(--surface); color: var(--text); }
.a-user__card strong { display: block; line-height: 1.2; }
.a-user__card small { color: var(--dim); }

.a-user__links { display: flex; gap: 14px; padding: 0 10px; }
.a-user__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; text-decoration: none; }
.a-user__links a:hover { color: var(--orange-hi); }

.a-avatar {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	background: var(--orange);
	color: var(--ink);
	font-weight: 800;
}

.a-avatar--sm { width: 34px; height: 34px; font-size: .9rem; }
.a-avatar--green { background: var(--c-green); }
.a-avatar--blue { background: var(--c-blue); }
.a-avatar .icone { width: 16px; height: 16px; }

.a-overlay { display: none; }

/* ---------------------------------------------------------------- Área principal */

.a-main { margin-left: var(--sidebar); min-height: 100vh; }
.a-topbar { display: none; }

.a-content {
	display: grid;
	gap: 22px;
	align-content: start;
	max-width: 1240px;
	padding: 32px clamp(16px, 3vw, 40px) 56px;
}

@media (max-width: 959px) {
	.a-sidebar { transform: translateX(-100%); box-shadow: none; }
	body.sidebar-open { overflow: hidden; }
	body.sidebar-open .a-sidebar { transform: none; box-shadow: var(--shadow); }

	.a-overlay {
		position: fixed;
		inset: 0;
		z-index: 30;
		display: block;
		background: rgba(0, 0, 0, .6);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s, visibility .3s;
	}

	body.sidebar-open .a-overlay { opacity: 1; visibility: visible; }

	.a-main { margin-left: 0; }

	.a-topbar {
		position: sticky;
		top: 0;
		z-index: 20;
		display: flex;
		align-items: center;
		gap: 14px;
		padding: 10px 16px;
		background: rgba(18, 18, 21, .92);
		border-bottom: 1px solid var(--line);
	}

	.a-topbar img { width: 96px; }
	.a-content { padding-top: 22px; }
}

/* ---------------------------------------------------------------- Cabeçalho das telas */

.a-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
}

.a-head .eyebrow { margin-bottom: 8px; }

.a-title {
	font: 800 clamp(2rem, 1.6rem + 1.6vw, 2.8rem)/1 var(--font-display);
	text-transform: uppercase;
}

.a-subtitle { margin-top: 6px; color: var(--muted); }

.a-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 10px;
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
}
.a-back:hover { color: var(--orange-hi); }

.a-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- Avisos */

.a-flash {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--radius);
	background: rgba(105, 191, 74, .12);
	box-shadow: inset 3px 0 0 var(--c-green);
	transition: opacity .4s, transform .4s;
}

.a-flash > .icone { color: var(--c-green); }
.a-flash--error { background: rgba(224, 70, 75, .12); box-shadow: inset 3px 0 0 var(--c-red); }
.a-flash--error > .icone { color: var(--c-red); }
.a-flash.is-leaving { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.a-flash__close {
	display: grid;
	place-items: center;
	margin-left: auto;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
}

.a-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: var(--radius);
	background: var(--text);
	color: var(--ink);
	font-weight: 700;
	box-shadow: var(--shadow);
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity .25s, transform .25s;
	pointer-events: none;
}

.a-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.a-toast.is-error { background: var(--c-red); color: #fff; }

/* ---------------------------------------------------------------- Números (início) */

.a-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 1180px) { .a-stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.a-stat {
	--accent: var(--c-orange);
	display: grid;
	gap: 2px;
	padding: 20px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: inset 0 3px 0 var(--accent), 0 0 0 1px var(--line);
	color: var(--text);
	text-decoration: none;
	transition: transform .2s;
}

.a-stat:hover { color: var(--text); transform: translateY(-2px); }
.a-stat--blue { --accent: var(--c-blue); }
.a-stat--green { --accent: var(--c-green); }
.a-stat--yellow { --accent: var(--c-yellow); }

.a-stat__icon { color: var(--accent); margin-bottom: 6px; }
.a-stat__icon .icone { width: 26px; height: 26px; }
.a-stat__value { font: 900 2.8rem/1 var(--font-display); }
.a-stat__label { font-weight: 700; }
.a-stat__hint { color: var(--dim); font-size: .85rem; }

@media (max-width: 559px) {
	.a-stat { padding: 16px; }
	.a-stat__value { font-size: 2.2rem; }
	.a-stat__hint { display: none; }
}

/* ---------------------------------------------------------------- Cards e grades */

.a-grid { display: grid; gap: 22px; align-items: start; }

@media (min-width: 1100px) {
	.a-grid { grid-template-columns: 1.6fr 1fr; }
	.a-grid--detail { grid-template-columns: 1.6fr 1fr; }
}

.a-card {
	display: grid;
	gap: 18px;
	padding: clamp(18px, 2.4vw, 28px);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--line);
	min-width: 0;
}

.a-card--flush { padding: 0; overflow: hidden; }
.a-card--reading { max-width: 860px; }

.a-card--tip { background: var(--bg-2); box-shadow: inset 3px 0 0 var(--c-yellow), 0 0 0 1px var(--line); color: var(--muted); }
.a-card--tip strong { color: var(--text); }

.a-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.a-card__title { font-size: 1.15rem; font-weight: 800; }
.a-card__title small { color: var(--dim); font-weight: 500; font-size: .85rem; }
.a-card__title--spaced { margin-top: 10px; }

.a-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}

.a-muted { color: var(--dim); font-weight: 600; }
.a-empty { color: var(--muted); }
.a-card .a-empty { padding: 4px 0; }
.a-card--flush .a-empty { padding: 24px; }

/* Ícone + texto corrido (strong/links no meio do texto não viram itens separados). */
.a-help { position: relative; padding-left: 28px; color: var(--muted); font-size: .92rem; }
.a-help .icone { position: absolute; left: 0; top: 2px; color: var(--orange-hi); }

/* Lista (últimos itens, caixa de entrada) */
.a-list { display: grid; }
.a-list li + li { border-top: 1px solid var(--line); }

.a-list__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 10px;
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
}

.a-list--inbox .a-list__item { padding: 16px 20px; border-radius: 0; }
.a-list__item:hover { background: var(--surface-2); color: var(--text); }
.a-list__main { display: grid; flex: 1; min-width: 0; }
.a-list__main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.a-list__main strong small { color: var(--dim); font-weight: 400; }
.a-list__main > small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.a-list__when { flex: none; color: var(--dim); }

/* Celular: status e data vão para a linha de baixo, o nome usa a largura toda. */
@media (max-width: 559px) {
	.a-list__item { flex-wrap: wrap; row-gap: 6px; }
	.a-list__main { flex: 1 1 calc(100% - 46px); }
	.a-list__main + * { margin-left: 46px; }
}

/* ---------------------------------------------------------------- Não lidos */

.a-list__item.is-unread,
.a-table tr.is-unread td { background: rgba(230, 123, 35, .08); }
.a-list__item.is-unread { box-shadow: inset 3px 0 0 var(--orange); }
.a-table tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--orange); }
.a-list__item.is-unread strong,
.a-table tr.is-unread strong { font-weight: 800; }

.a-tag {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	vertical-align: .1em;
}

.a-tag--new { background: var(--orange); color: var(--ink); }

/* Status do funil */
.a-status {
	flex: none;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: .8rem;
	font-weight: 700;
	white-space: nowrap;
}

.a-status--new { background: rgba(230, 123, 35, .16); color: var(--orange-hi); }
.a-status--contacted { background: rgba(95, 134, 216, .18); color: #9db6ee; }
.a-status--won { background: rgba(105, 191, 74, .18); color: #9ddc83; }
.a-status--lost { background: var(--surface-2); color: var(--dim); }

/* ---------------------------------------------------------------- Filtros e busca */

.a-search {
	display: flex;
	width: min(100%, 380px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--bg);
	overflow: hidden;
}

.a-search:focus-within { border-color: var(--orange); }

.a-search input {
	flex: 1;
	min-width: 0;
	padding: 11px 14px;
	border: 0;
	background: none;
	color: var(--text);
	font: inherit;
	outline: none;
}

.a-search button {
	display: grid;
	place-items: center;
	width: 46px;
	border: 0;
	background: none;
	color: var(--muted);
	cursor: pointer;
}

.a-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }

.a-tabs a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.a-tabs a span { padding: 0 7px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; }
.a-tabs a:hover { color: var(--text); }
.a-tabs a[aria-current="page"] { background: var(--orange); box-shadow: none; color: var(--ink); }
.a-tabs a[aria-current="page"] span { background: rgba(0, 0, 0, .18); }

/* ---------------------------------------------------------------- Tabela (vira cards no celular) */

.a-table { width: 100%; border-collapse: collapse; }

.a-table th {
	padding: 12px 16px;
	color: var(--dim);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
	border-bottom: 1px solid var(--line);
}

.a-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table tr[data-href] { cursor: pointer; }
.a-table tr[data-href]:hover td { background: var(--surface-2); }
.a-table tr.is-muted td { opacity: .6; }
.a-table td .icone { width: 1em; height: 1em; vertical-align: -.12em; color: var(--orange-hi); }

.a-table__main { display: grid; color: var(--text); text-decoration: none; }
.a-table__main small { color: var(--muted); }
.a-table__actions { text-align: right; }

@media (max-width: 759px) {
	.a-table thead { display: none; }
	.a-table tr { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
	.a-table td { display: flex; justify-content: space-between; gap: 12px; padding: 0; border: 0; }
	.a-table td[data-label]::before { content: attr(data-label); color: var(--dim); font-size: .85rem; }
	.a-table td:first-child::before { display: none; }
	.a-table tr.is-unread td:first-child { box-shadow: none; }
	.a-table tr.is-unread { box-shadow: inset 3px 0 0 var(--orange); background: rgba(230, 123, 35, .08); }
	.a-table tr.is-unread td { background: none; }
	.a-table__actions { text-align: left; }
}

.a-pager { display: flex; align-items: center; justify-content: center; gap: 18px; color: var(--muted); }
.a-pager a { font-weight: 700; }

/* ---------------------------------------------------------------- Detalhe (orçamento/mensagem/arquivo) */

.a-facts { display: grid; gap: 12px; }
@media (min-width: 560px) { .a-facts { grid-template-columns: repeat(2, 1fr); } }

.a-fact {
	--accent: var(--line);
	padding: 14px 16px;
	border-radius: var(--radius);
	background: var(--bg);
	box-shadow: inset 3px 0 0 var(--accent);
	min-width: 0;
}

.a-fact--orange { --accent: var(--orange); }
.a-fact dt { color: var(--dim); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.a-fact dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.a-fact a { color: var(--text); }

.a-file { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-hi) !important; }

.a-message {
	padding: 18px;
	border-radius: var(--radius);
	background: var(--bg);
	color: var(--text);
	white-space: normal;
	overflow-wrap: anywhere;
}

.a-message--big { font-size: 1.08rem; line-height: 1.7; }

.a-funnel { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; }
.a-funnel legend { margin-bottom: 10px; }

.a-funnel__option {
	--accent: var(--c-orange);
	position: relative;
	display: block;
	cursor: pointer;
}

.a-funnel__option--contacted { --accent: var(--c-blue); }
.a-funnel__option--won { --accent: var(--c-green); }
.a-funnel__option--lost { --accent: var(--dim); }

.a-funnel__option input { position: absolute; opacity: 0; }

.a-funnel__option span {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 14px;
	border-radius: var(--radius);
	background: var(--bg);
	box-shadow: inset 0 0 0 1px var(--line);
	font-weight: 600;
}

.a-funnel__option span::before {
	content: '';
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px var(--accent);
}

.a-funnel__option input:checked + span { box-shadow: inset 0 0 0 2px var(--accent); }
.a-funnel__option input:checked + span::before { background: var(--accent); }
.a-funnel__option input:focus-visible + span { outline: 3px solid var(--c-yellow); outline-offset: 2px; }

/* ---------------------------------------------------------------- Formulários */

.a-form { max-width: 860px; }
.a-form__row { display: grid; gap: 18px; }
@media (min-width: 700px) {
	.a-form__row { grid-template-columns: 1fr 1fr; }
	.a-form__row--3 { grid-template-columns: repeat(3, 1fr); }
}

.a-form .field__label small { color: var(--dim); font-weight: 500; }
.a-form__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.a-danger-zone { display: flex; justify-content: flex-end; }

/* Interruptor */
.a-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.a-switch input { position: absolute; opacity: 0; }

.a-switch__track {
	position: relative;
	width: 44px;
	height: 24px;
	flex: none;
	border-radius: 999px;
	background: var(--line);
	transition: background-color .2s;
}

.a-switch__track::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--text);
	transition: transform .2s;
}

.a-switch input:checked + .a-switch__track { background: var(--c-green); }
.a-switch input:checked + .a-switch__track::after { transform: translateX(20px); }
.a-switch input:focus-visible + .a-switch__track { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.a-switch__label { color: var(--muted); font-weight: 600; }
.a-switch--sm .a-switch__track { width: 38px; height: 22px; }
.a-switch--sm .a-switch__track::after { width: 16px; height: 16px; }
.a-switch--sm input:checked + .a-switch__track::after { transform: translateX(16px); }

/* ---------------------------------------------------------------- Envio de imagens */

.a-dropzone {
	position: relative;
	border: 2px dashed var(--line);
	border-radius: var(--radius-lg);
	background: var(--bg);
	transition: border-color .2s, background-color .2s;
}

.a-dropzone.is-over { border-color: var(--orange); background: var(--surface-2); }
.a-dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.a-dropzone:focus-within { border-color: var(--orange); }

.a-dropzone__label {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 28px 18px;
	color: var(--muted);
	text-align: center;
	cursor: pointer;
}

.a-dropzone__label strong { color: var(--text); }
.a-dropzone__icon { color: var(--orange-hi); }
.a-dropzone__icon .icone { width: 32px; height: 32px; }

.a-queue { display: grid; gap: 8px; padding: 0 18px; }
.a-queue:not(:empty) { padding-bottom: 18px; }

.a-queue li {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	padding: 10px 12px;
	border-radius: var(--radius);
	background: var(--surface);
	font-size: .9rem;
}

.a-queue li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-queue li small { color: var(--dim); }
.a-queue li.is-error small { color: #ff8f8f; }
.a-queue__bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.a-queue__bar b { display: block; width: 0; height: 100%; background: var(--orange); transition: width .2s; }

/* ---------------------------------------------------------------- Fotos de trabalhos */

.a-photos { display: grid; gap: 14px; }
@media (min-width: 560px) { .a-photos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .a-photos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .a-photos { grid-template-columns: repeat(4, 1fr); } }

.a-photo,
.a-banner {
	display: grid;
	border-radius: var(--radius-lg);
	background: var(--bg);
	box-shadow: 0 0 0 1px var(--line);
	overflow: hidden;
	transition: opacity .2s;
}

.a-photo.is-busy,
.a-banner.is-busy { opacity: .4; pointer-events: none; }
.is-ghost { opacity: .35; }

.a-photo__image,
.a-banner__image { position: relative; aspect-ratio: 4 / 3; cursor: grab; background: var(--surface-2); }
.a-photo__image img,
.a-banner__image img { width: 100%; height: 100%; object-fit: cover; }

.a-photo__cover {
	position: absolute;
	top: 10px;
	left: 10px;
	display: none;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--orange);
	color: var(--ink);
	font-size: .75rem;
	font-weight: 800;
	text-transform: uppercase;
}

.a-photos > .a-photo:first-child .a-photo__cover { display: block; }

.a-photo__body { display: flex; gap: 8px; padding: 10px; }
.a-photo__body .field__input { padding: 9px 11px; font-size: .92rem; }

/* ---------------------------------------------------------------- Banners */

.a-banners { display: grid; gap: 16px; }
@media (min-width: 760px) { .a-banners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .a-banners { grid-template-columns: repeat(3, 1fr); } }

.a-banner.is-hidden .a-banner__image { opacity: .4; }

.a-banner__drag {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: var(--radius);
	background: rgba(18, 18, 21, .8);
	color: var(--text);
}

.a-banner__body { display: grid; gap: 14px; padding: 16px; }
.a-banner__body .field__input { padding: 10px 12px; }
.a-banner__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------------------------------------------------------------- Serviços (cards) */

.a-events { display: grid; gap: 16px; }
@media (min-width: 640px) { .a-events { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .a-events { grid-template-columns: repeat(3, 1fr); } }

.a-event {
	display: grid;
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: 0 0 0 1px var(--line);
	overflow: hidden;
}

.a-event__cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.a-event__cover img { width: 100%; height: 100%; object-fit: cover; }

.a-event__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 100%;
	color: var(--dim);
}

.a-event__count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(18, 18, 21, .85);
	color: var(--text);
	font-size: .85rem;
	font-weight: 700;
}

.a-event__count .icone { width: 15px; height: 15px; }

.a-event__body { display: grid; gap: 8px; justify-items: start; padding: 16px 18px 18px; }
.a-event__title { font-size: 1.15rem; font-weight: 800; }
.a-event__title a { color: var(--text); text-decoration: none; }
.a-event__title a:hover { color: var(--orange-hi); }
.a-event__text { color: var(--muted); font-size: .92rem; }

/* ---------------------------------------------------------------- Login */

.auth-page { display: grid; min-height: 100vh; }

.auth {
	display: grid;
	place-items: center;
	padding: 32px 16px;
}

.auth__card { width: min(100%, 420px); }
.auth__logo img { width: 150px; margin-bottom: 4px; }
.auth__title { font: 800 2.4rem/1 var(--font-display); text-transform: uppercase; }
.auth__lead { margin-top: -8px; color: var(--muted); }

.auth__back {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: var(--muted);
	text-decoration: none;
}

.auth__back:hover { color: var(--orange-hi); }
