/* =====================================================================
   PEDEJÁ — LOGIN DO PAINEL DA LOJA (login.php)
   Página independente: não carrega estilo.css nem o CSS legado do painel.
   ===================================================================== */

.pj-lp, .pj-lp * { box-sizing: border-box; }

.pj-lp {
	--pj-txt: #111114;
	--pj-txt-2: #6b6b73;
	--pj-borda: #e3e3e8;
	--pj-fundo: #f3f3f6;
	--pj-vermelho: #d92d20;
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	background: var(--pj-fundo);
	color: var(--pj-txt);
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* faixa com a cor da loja atrás do cartão */
.pj-lp__fundo {
	position: fixed;
	inset: 0 0 auto 0;
	height: 42vh;
	background:
		radial-gradient(120% 90% at 85% 0%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 60%),
		var(--pj-cor);
	border-radius: 0 0 32px 32px;
	z-index: 0;
}

.pj-lp__caixa {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	padding: 32px 28px 24px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 1px 2px rgba(17, 17, 20, .06), 0 18px 48px -12px rgba(17, 17, 20, .22);
	animation: pj-lp-entra .4s cubic-bezier(.2, .8, .3, 1) both;
}

@keyframes pj-lp-entra {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

/* ---------- topo ---------- */
.pj-lp__topo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pj-lp__logo {
	width: 76px;
	height: 76px;
	margin-top: -70px;
	border-radius: 22px;
	object-fit: cover;
	background: #fff;
	border: 4px solid #fff;
	box-shadow: 0 8px 24px -6px rgba(17, 17, 20, .3);
}
.pj-lp__logo--letra {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--pj-cor);
	color: var(--pj-cor-txt);
	font-size: 32px;
	font-weight: 800;
}
.pj-lp__selo {
	margin-top: 16px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pj-fundo);
	color: var(--pj-txt-2);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.pj-lp__topo h1 { margin: 10px 0 0; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.3px; }
.pj-lp__topo p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--pj-txt-2); }

/* ---------- avisos ---------- */
.pj-lp__aviso {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 22px;
	padding: 12px 14px;
	border-radius: 14px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.4;
}
.pj-lp__aviso svg { width: 20px; height: 20px; flex-shrink: 0; }
.pj-lp__aviso--erro { background: #fdecea; color: #b42318; }
.pj-lp__aviso--ok { background: #e7f6ec; color: #11743a; }

/* ---------- formulário ---------- */
.pj-lp__form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.pj-lp__campo { display: flex; flex-direction: column; gap: 7px; }
.pj-lp__rotulo { font-size: 13.5px; font-weight: 700; }

.pj-lp__entrada {
	position: relative;
	display: flex;
	align-items: center;
	height: 52px;
	border: 1.5px solid var(--pj-borda);
	border-radius: 14px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.pj-lp__entrada > svg { position: absolute; left: 15px; width: 19px; height: 19px; color: #9a9aa3; pointer-events: none; transition: color .15s; }
.pj-lp__entrada input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 14px 0 44px;
	border: 0;
	border-radius: 14px;
	background: transparent;
	font: inherit;
	font-size: 16px; /* 16px evita o zoom automático do iPhone */
	font-weight: 500;
	color: var(--pj-txt);
	outline: none;
}
.pj-lp__entrada input::placeholder { color: #a9a9b1; font-weight: 400; }
.pj-lp__entrada:focus-within { border-color: var(--pj-txt); box-shadow: 0 0 0 4px rgba(17, 17, 20, .07); }
.pj-lp__entrada:focus-within > svg { color: var(--pj-txt); }
.pj-lp__entrada--erro { border-color: var(--pj-vermelho); box-shadow: 0 0 0 4px rgba(217, 45, 32, .1); }
.pj-lp__entrada--erro > svg { color: var(--pj-vermelho); }

.pj-lp__olho {
	width: 44px;
	height: 44px;
	margin-right: 4px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: #8a8a93;
	cursor: pointer;
}
.pj-lp__olho:hover { background: var(--pj-fundo); color: var(--pj-txt); }
.pj-lp__olho svg { width: 20px; height: 20px; }
.pj-lp__olho-fechado, .pj-lp__olho[aria-pressed="true"] .pj-lp__olho-aberto { display: none; }
.pj-lp__olho[aria-pressed="true"] .pj-lp__olho-fechado { display: block; }

/* manter conectado */
.pj-lp__manter { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #3a3a40; cursor: pointer; user-select: none; }
.pj-lp__manter input { position: absolute; opacity: 0; pointer-events: none; }
.pj-lp__check {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #c9c9d0;
	border-radius: 7px;
	background: #fff;
	color: transparent;
	transition: background .15s, border-color .15s;
}
.pj-lp__check svg { width: 14px; height: 14px; }
.pj-lp__manter input:checked + .pj-lp__check { background: var(--pj-cor); border-color: var(--pj-cor); color: var(--pj-cor-txt); }
.pj-lp__manter input:focus-visible + .pj-lp__check { box-shadow: 0 0 0 4px rgba(17, 17, 20, .1); }

/* botão */
.pj-lp__botao {
	position: relative;
	height: 54px;
	margin-top: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 14px;
	background: var(--pj-cor);
	color: var(--pj-cor-txt);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(17, 17, 20, .45);
	transition: transform .1s, filter .15s;
}
.pj-lp__botao:hover { filter: brightness(1.12); }
.pj-lp__botao:active { transform: scale(.985); }
.pj-lp__botao:focus-visible { outline: 3px solid rgba(17, 17, 20, .25); outline-offset: 3px; }
.pj-lp__spinner {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 2.5px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	opacity: 0;
}
.pj-lp__botao--carregando { cursor: wait; }
.pj-lp__botao--carregando .pj-lp__botao-txt { opacity: 0; }
.pj-lp__botao--carregando .pj-lp__spinner { opacity: 1; animation: pj-lp-gira .7s linear infinite; }
@keyframes pj-lp-gira { to { transform: rotate(360deg); } }

.pj-lp__msg { margin: -4px 0 0; text-align: center; font-size: 13.5px; font-weight: 600; color: var(--pj-vermelho); }

/* rodapé */
.pj-lp__rodape {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid #efeff2;
	font-size: 12.5px;
	color: var(--pj-txt-2);
}
.pj-lp__rodape svg { width: 15px; height: 15px; }

@media (max-width: 420px) {
	.pj-lp { align-items: flex-start; padding-top: 72px; }
	.pj-lp__caixa { padding: 30px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.pj-lp__caixa { animation: none; }
}
