/* Página de login: duas colunas (marca + formulário). A verificação em duas etapas é um modal sobre ela. */
:root {
  --lp-ink: #0b1d3a;
  --lp-blue: #1d4edb;
  --lp-blue-dark: #153eb3;
  --lp-blue-soft: #eaf0ff;
  --lp-line: #dfe3ea;
  --lp-muted: #5b6678;
  --lp-green: #169b62;
  --lp-red: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--lp-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, p { margin-top: 0; }

.lp-body { min-height: 100vh; background: #f1f3f6; }
.lp-shell { --lp-side: max(320px, 30%); min-height: 100vh; display: grid; grid-template-columns: var(--lp-side) 1fr; }

/* Marca */
.lp-brand {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px 36px; color: #fff;
  background: radial-gradient(560px 340px at 100% 0%, rgba(29, 78, 219, .6), transparent 70%), linear-gradient(160deg, #2c3037 0%, #0b1d3a 100%);
}
.lp-logo { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 20px; letter-spacing: -.03em; }
.lp-logo span { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 11px; }
.lp-logo img { width: 62%; height: 62%; display: block; }
.lp-eyebrow { display: block; margin-bottom: 16px; color: #9db8ff; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.lp-pitch h1 { max-width: 460px; margin-bottom: 24px; font-size: clamp(28px, 2.5vw, 40px); line-height: 1.07; letter-spacing: -.05em; }
.lp-pitch h1 span { color: #8fb0ff; }
.lp-points { display: grid; gap: 12px; margin: 0; padding: 0; color: rgba(255, 255, 255, .8); font-size: 14px; list-style: none; }
.lp-points li::before { content: "✓"; margin-right: 10px; color: #6fe0b0; font-weight: 900; }
.lp-today { max-width: 100%; padding: 16px 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; backdrop-filter: blur(6px); }
.lp-today small { display: block; margin-bottom: 8px; color: #aebfe2; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.lp-today div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .88); font-size: 13px; font-weight: 600; }
.lp-today small + div { border-top: 0; }
.lp-today b { margin-left: auto; padding: 2px 9px; color: #cfdcff; background: rgba(255, 255, 255, .12); border-radius: 20px; font-size: 11px; }
.lp-today .d { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.lp-today .red { background: #ef6a6a; }
.lp-today .amber { background: #f0a53c; }
.lp-today .green { background: #4cc78f; }

/* Formulário */
.lp-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 28px 40px; background: radial-gradient(700px 360px at 100% 0%, rgba(29, 78, 219, .08), transparent 70%), linear-gradient(165deg, #f4f6f9 0%, #e8ecf2 100%); }
.lp-back { position: absolute; top: 28px; left: 32px; color: var(--lp-muted); font-size: 13px; font-weight: 700; }
.lp-back:hover { color: var(--lp-blue); }
.lp-card { width: min(440px, 100%); padding: 38px 40px 30px; background: #fff; border: 1px solid var(--lp-line); border-top: 3px solid var(--lp-blue); border-radius: 18px; box-shadow: 0 28px 70px rgba(11, 29, 58, .13); }
.lp-env { display: block; width: max-content; margin: 0 auto 18px; padding: 5px 10px; color: var(--lp-green); background: #eaf8f1; border-radius: 20px; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.lp-panel { display: none; }
.lp-panel.active { display: block; }
.lp-panel h2 { margin-bottom: 6px; font-size: 28px; letter-spacing: -.035em; text-align: center; }
.lp-intro { margin-bottom: 24px; color: var(--lp-muted); font-size: 14px; text-align: center; }
.lp-copy { margin-bottom: 18px; color: var(--lp-muted); font-size: 13px; line-height: 1.6; }
.lp-panel form { display: grid; }
.lp-panel label { margin: 0 0 7px; font-size: 12px; font-weight: 800; }
.lp-panel input, .lp-2fa input {
  width: 100%; height: 48px; margin-bottom: 17px; padding: 0 14px; color: var(--lp-ink); background: #fff;
  border: 1px solid #d0d5dd; border-radius: 11px; outline: none;
}
.lp-panel input:focus, .lp-2fa input:focus { border-color: var(--lp-blue); box-shadow: 0 0 0 3px rgba(29, 78, 219, .16); }
.lp-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.lp-label-row label { margin: 0; }
.lp-label-row button, .lp-linkback, .lp-resend button { padding: 0; color: var(--lp-blue); background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 750; }
.lp-linkback { margin: 0 0 18px; }
.lp-password { position: relative; }
.lp-password input { padding-right: 76px; }
.lp-toggle { position: absolute; top: 0; right: 0; height: 48px; padding: 0 14px; color: var(--lp-muted); background: transparent; border: 0; cursor: pointer; font-size: 11px; font-weight: 800; }
.lp-submit {
  width: 100%; min-height: 50px; margin-top: 4px; color: #fff; background: linear-gradient(180deg, #2a5ce6 0%, var(--lp-blue) 100%);
  border: 0; border-radius: 11px; cursor: pointer; font-size: 15px; font-weight: 800; box-shadow: 0 8px 22px rgba(29, 78, 219, .28); transition: transform .2s ease, background .2s ease;
}
.lp-submit:hover { background: var(--lp-blue-dark); transform: translateY(-1px); }
.lp-account { margin: 20px 0 0; color: var(--lp-muted); font-size: 13px; text-align: center; }
.lp-account a { color: var(--lp-blue); font-weight: 800; }
.lp-security { margin: 22px 0 0; padding-top: 16px; color: #8a94a6; border-top: 1px solid var(--lp-line); font-size: 11px; line-height: 1.5; text-align: center; }
.lp-security::before { content: "🔒 "; }
.lp-error { margin-bottom: 17px; padding: 11px 13px; color: var(--lp-red); background: #fef3f2; border: 1px solid #fee4e2; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.lp-code { text-align: center; font-size: 22px !important; font-weight: 850; letter-spacing: .32em; }
.lp-sent { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-bottom: 17px; padding: 13px; background: #eaf8f1; border: 1px solid #d8efe4; border-radius: 11px; }
.lp-sent > span { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--lp-green); border-radius: 9px; font-weight: 900; }
.lp-sent strong { display: block; margin-bottom: 2px; font-size: 13px; }
.lp-sent p { margin: 0; color: #47715f; font-size: 12px; line-height: 1.5; }
.lp-dev { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; padding: 11px 13px; background: #fff4df; border: 1px solid #f1dfbd; border-radius: 10px; }
.lp-dev span { color: #8a5a16; font-size: 10px; font-weight: 750; text-transform: uppercase; }
.lp-dev strong { color: #70440a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .14em; }
.lp-resend { margin-top: 12px; text-align: center; }

/* Modal da verificação em duas etapas */
/* o modal se centraliza na área do login (à direita da coluna da marca), não na janela inteira */
.lp-2fa { width: min(420px, calc(100% - 32px)); padding: 0; overflow: visible; background: transparent; border: 0; inset-inline-start: var(--lp-side, max(320px, 30%)); inset-inline-end: 0; margin: auto; }
.lp-2fa::backdrop { background: rgba(11, 29, 58, .55); backdrop-filter: blur(6px); }
.lp-2fa:not([open]) { display: none; }
.lp-2fa-card { position: relative; padding: 34px 36px 26px; text-align: center; background: #fff; border: 1px solid var(--lp-line); border-top: 3px solid var(--lp-blue); border-radius: 18px; box-shadow: 0 30px 80px rgba(11, 29, 58, .35); }
.lp-env-center { margin-bottom: 14px; }
.lp-2fa-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 16px; color: var(--lp-blue); background: var(--lp-blue-soft); border-radius: 15px; }
.lp-2fa-icon svg { width: 26px; height: 26px; }
.lp-2fa h2 { margin-bottom: 6px; font-size: 24px; letter-spacing: -.03em; }
.lp-2fa .lp-intro { margin-bottom: 20px; }
.lp-2fa input { height: 54px; margin-bottom: 14px; }
.lp-2fa .lp-error { text-align: left; }
.lp-2fa-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; font-weight: 700; }
.lp-2fa-links a, .lp-2fa-links button { padding: 0; color: var(--lp-muted); background: none; border: 0; cursor: pointer; font: inherit; }
.lp-2fa-links a:hover, .lp-2fa-links button:hover { color: var(--lp-blue); }

@media (max-width: 900px) {
  .lp-shell { grid-template-columns: 1fr; }
  .lp-2fa { inset-inline-start: 0; }
  .lp-brand { padding: 24px 24px 28px; gap: 22px; }
  .lp-pitch h1 { margin-bottom: 0; font-size: 28px; }
  .lp-eyebrow, .lp-points, .lp-today { display: none; }
  .lp-main { padding: 32px 18px 36px; justify-content: flex-start; }
  .lp-back { position: static; align-self: flex-start; margin-bottom: 18px; }
  .lp-card { padding: 30px 24px 24px; }
}
@media (prefers-reduced-motion: reduce) { .lp-submit { transition: none; } }

/* Variantes do lado esquerdo (sorteadas a cada visita) */
.lp-pitch, .lp-today { transition: opacity .25s ease; }
.lp-today div.bar { display: block; padding: 0; border-top: 0; height: 6px; margin: 10px 0 2px; overflow: hidden; background: rgba(255, 255, 255, .14); border-radius: 999px; }
.lp-today div.bar i { display: block; height: 100%; background: linear-gradient(90deg, #6f93ff, #8fb0ff); border-radius: inherit; }
.lp-today .big { display: block; margin-top: 8px; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.lp-today .big span { margin-left: 6px; color: #aebfe2; font-size: 12px; font-weight: 600; letter-spacing: 0; }
@media (prefers-reduced-motion: reduce) { .lp-pitch, .lp-today { transition: none; } }
