/* ============================================================
   LOGIN — /entrar · redesenho (handoff Claude Design, 17/07/2026)
   Antes: template genérico do CMS (imagem stock + "Site de Seguro").
   Agora: idioma do hero da LP (foto + gradiente de proteção teal,
   provas em chips de vidro) + formulário no design system.
   Tokens: design-system.css (linkar ANTES deste arquivo).
   Escopo: tudo prefixado .lgn — página standalone, sem tema legado.
   ============================================================ */

html, body { margin: 0; min-height: 100vh; }
body { font-family: var(--font-sans, "Inter", sans-serif); background: #fff; }
/* reset de caixa (o mock herdava do base.css do DS; sem isto, elementos com
   width:100% + padding — ex.: botão do WhatsApp — vazam do container) */
.lgn, .lgn *, .lgn *::before, .lgn *::after { box-sizing: border-box; }
.lgn a { color: var(--brand, #006b8f); }
.lgn a:hover { color: var(--brand-deep, #063646); }

.lgn { display: grid; grid-template-columns: 1fr; min-height: 100vh; }

/* ---- painel de marca (idioma do hero da LP) ---- */
.lgn-brand {
	position: relative; display: none; overflow: hidden;
	background: var(--brand-deep, #063646); color: #fff;
}
.lgn-brand-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.lgn-brand-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,32,44,.93) 0%, rgba(4,32,44,.62) 55%, rgba(4,32,44,.28) 100%); }
.lgn-brand-in {
	position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between;
	padding: 44px 48px; width: 100%; max-width: 640px;
}
/* eyebrow sobre a foto: tom claro (tone="onDark" do DS) */
.lgn-brand-in .ds-eyebrow { color: var(--teal-100, #d8f5ff); }
.lgn-brand-h {
	font-size: clamp(30px, 3.4vw, 44px); font-weight: var(--fw-black, 900); line-height: 1.07; color: #fff;
	text-wrap: balance; margin: 14px 0 0; max-width: 15ch;
}
.lgn-chips { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.lgn-chip {
	display: inline-flex; align-items: center; gap: 10px;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
	backdrop-filter: blur(6px); border-radius: var(--radius-pill, 999px); padding: 9px 16px;
	font-size: 13.5px; font-weight: 650; color: #fff; white-space: nowrap;
}
.lgn-chip svg { width: 16px; height: 16px; color: var(--teal-100, #d8f5ff); flex: none; }
/* Stars do DS (value=5): glifos ★ na cor âmbar da marca */
.lgn-stars { font-size: 14px; line-height: 1; letter-spacing: 1px; color: var(--star, #f6a600); }

/* ---- painel do formulário ---- */
.lgn-form-col { display: flex; flex-direction: column; min-height: 100vh; padding: 28px clamp(20px, 6vw, 64px); }
.lgn-form-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lgn-logo { width: 168px; height: 38px; object-fit: contain; object-position: left center; }
.lgn-back { font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.lgn-back:hover { text-decoration: underline; }
.lgn-form-mid { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 36px; }
.lgn-box { width: 100%; max-width: 400px; }
.lgn-kicker { margin-bottom: 10px; }
.lgn-kicker .ds-eyebrow { margin: 0; }
.lgn-h1 { font-size: clamp(24px, 4.5vw, 30px); font-weight: var(--fw-black, 900); line-height: 1.07; color: var(--ink, #10212b); margin: 0; }
.lgn-sub { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted, #60717d); }

/* ---- campos (Field/Input do DS) ---- */
.lgn-fields { display: grid; gap: 16px; margin-top: 26px; }
.lgn-field { display: grid; gap: 7px; }
.lgn-label { font-size: 13px; font-weight: var(--fw-bold, 800); color: var(--ink, #10212b); }
.lgn-input {
	width: 100%; min-height: 48px; padding: 0 13px; box-sizing: border-box;
	border: 1px solid var(--border-input, #cbd9df); border-radius: var(--radius-control, 6px);
	color: var(--ink, #10212b); font-family: var(--font-sans); font-size: 15px; background: #fff; outline: none;
}
.lgn-input:focus { border-color: var(--brand, #006b8f); box-shadow: 0 0 0 3px var(--focus-ring, rgba(0,107,143,.16)); }
.lgn-input.lgn-invalid { border-color: var(--error, #b42318); }
.lgn-err { font-size: 12px; font-weight: var(--fw-bold, 800); color: var(--error, #b42318); }
.lgn-helper { font-size: 12px; color: var(--muted, #60717d); }
.lgn-pass { position: relative; display: block; }
.lgn-pass .lgn-input { padding-right: 74px; }
.lgn-eye {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	border: 0; background: transparent; cursor: pointer; border-radius: 6px;
	font-family: inherit; font-size: 12px; font-weight: var(--fw-bold, 800); letter-spacing: .04em;
	color: var(--brand, #006b8f); padding: 7px 8px;
}
.lgn-eye:hover { background: var(--soft, #f4f8fa); }

.lgn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lgn-remember { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2, #2f4652); cursor: pointer; }
.lgn-remember input { width: 17px; height: 17px; accent-color: var(--brand, #006b8f); cursor: pointer; margin: 0; }
.lgn-forgot { font-size: 14px; font-weight: 650; }

/* banner de erro de credenciais (flash do servidor) */
.lgn-alert {
	display: flex; gap: 10px; align-items: flex-start; margin-top: 16px;
	background: var(--error-bg, #fde8e8); color: var(--error-text, #7b1d1d);
	border-radius: 8px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.5;
}
.lgn-alert svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
/* variante VERDE do banner (sucesso — ex.: senha redefinida) */
.lgn-alert-ok { background: var(--success-bg, #d8f4e8); color: var(--success-text, #07513f); }

/* ---- ações (Button CTA + WhatsAppButton do DS) ---- */
.lgn-actions { margin-top: 22px; display: grid; gap: 12px; }
.lgn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	min-height: 52px; padding: 0 22px; font-size: 16px;
	background: var(--cta-fill, #ffcb05); color: var(--cta-ink, #082532); border: 1px solid transparent;
	border-radius: var(--radius-control, 6px); font-family: var(--font-sans); font-weight: var(--fw-bold, 800);
	line-height: 1; cursor: pointer; white-space: nowrap;
	transition: background var(--dur-base, 180ms) var(--ease-standard, ease);
}
.lgn-btn:hover { background: var(--cta-fill-hover, #ffd83d); }
.lgn-btn:disabled { opacity: .55; cursor: default; }
.lgn-div { display: flex; align-items: center; gap: 12px; margin-block: 6px; color: var(--muted, #60717d); font-size: 12px; font-weight: 650; }
.lgn-div::before, .lgn-div::after { content: ""; flex: 1; height: 1px; background: var(--line, #dfe7ec); }
.lgn-wa {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
	min-height: 46px; padding: 0 16px; font-size: 14px;
	border: none; border-radius: var(--radius-control, 6px);
	background: var(--whatsapp, #1a8c4a); color: #fff !important;
	font-family: var(--font-sans); font-weight: var(--fw-bold, 800); line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background var(--dur-base, 180ms) var(--ease-standard, ease);
}
.lgn-wa:hover { background: var(--whatsapp-hover, #157a3e); }
.lgn-wa svg { width: 18px; height: 18px; flex: none; }

.lgn-help { font-size: 13px; color: var(--muted, #60717d); text-align: center; margin: 14px 0 0; line-height: 1.55; }
.lgn-foot { font-size: 11.5px; color: var(--muted, #60717d); text-align: center; line-height: 1.6; }
.lgn-foot b { font-weight: 700; color: var(--ink-2, #2f4652); }

@media (min-width: 900px) {
	.lgn { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.lgn-brand { display: flex; }
	.lgn-form-col { min-height: auto; }
	/* páginas SEM painel de marca (ex.: /recuperar-senha): coluna única centrada */
	.lgn.lgn-single { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .lgn * { transition: none !important; } }
