/* Tela de login (Portal do Cliente). Classes com prefixo lg- para não colidir com Bootstrap/AdminLTE, que continuam carregados por causa dos modais. */
:root {
  --lg-brand: #00319a;
  --lg-brand-600: #002a85;
  --lg-brand-800: #001a55;
  --lg-brand-50: #eef3ff;
  --lg-accent: #e0a800;
  --lg-red: #cc2b2d;
  --lg-ink: #0f1b33;
  --lg-muted: #5b6780;
  --lg-line: #dfe5ef;
  --lg-field: #f6f8fc;
  --lg-radius: 12px;
}

html,
body.lg-body {
  height: 100%;
  margin: 0;
}

body.lg-body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: normal;
  color: var(--lg-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.lg-shell *,
.lg-shell *::before,
.lg-shell *::after {
  box-sizing: border-box;
}

.lg-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(460px, 1fr);
  min-height: 100vh;
}

.lg-shell h1,
.lg-shell h2 {
  font-family: Poppins, Inter, sans-serif;
}

/* ---------- HERO / FOTOS ---------- */
.lg-hero {
  position: relative;
  overflow: hidden;
  background: var(--lg-brand-800);
  color: #fff;
  isolation: isolate;
}

.lg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 9s linear;
  z-index: -2;
}

.lg-slide.on {
  opacity: 1;
  transform: scale(1);
}

.lg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 20, 70, .55) 0%, rgba(0, 20, 70, 0) 28%),
    linear-gradient(0deg, rgba(0, 18, 60, .92) 0%, rgba(0, 26, 85, .55) 38%, rgba(0, 26, 85, 0) 65%);
}

.lg-hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 56px 44px;
}

.lg-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lg-brandlogo {
  height: 110px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}

.lg-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
}

.lg-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 4px rgba(53, 208, 127, .25);
}

.lg-hero-copy {
  max-width: 620px;
}

.lg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #ffd24d;
}

.lg-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.lg-hero h2 {
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.12;
  font-weight: 600;
  margin: 14px 0;
  color: #fff;
}

.lg-hero p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .85);
  margin: 0 0 26px;
  max-width: 540px;
}

.lg-audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.lg-audience li {
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
}

.lg-hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
}

.lg-dots {
  display: flex;
  gap: 8px;
}

.lg-dots button {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: .3s;
}

.lg-dots button[aria-current="true"] {
  background: #fff;
  width: 44px;
}

.lg-motto {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ---------- PAINEL DE LOGIN ---------- */
.lg-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 5vw, 80px);
  position: relative;
}

.lg-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--lg-brand) 0 60%, var(--lg-accent) 60% 80%, var(--lg-red) 80% 100%);
}

.lg-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.lg-logo {
  display: block;
  height: 44px;
  width: auto;
  margin-bottom: 36px;
}

.lg-card h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--lg-ink);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.lg-lead {
  margin: 0 0 28px;
  color: var(--lg-muted);
  font-size: 15px;
}

.lg-field {
  margin-bottom: 16px;
}

.lg-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #33405c;
  margin: 0 0 7px;
}

.lg-control {
  position: relative;
}

.lg-control svg.lg-ic {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8a95ab;
  pointer-events: none;
}

.lg-control input {
  width: 100%;
  height: 50px;
  border: 1.5px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: var(--lg-field);
  padding: 0 46px 0 44px;
  font: inherit;
  font-size: 15px;
  color: var(--lg-ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.lg-control input::placeholder {
  color: #9aa4b8;
}

.lg-control input:hover {
  border-color: #c6cfdf;
}

.lg-control input:focus {
  outline: none;
  border-color: var(--lg-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 49, 154, .12);
}

.lg-control:focus-within svg.lg-ic {
  color: var(--lg-brand);
}

.lg-reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: none;
  border-radius: 8px;
  color: #7a869d;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.lg-reveal:hover {
  background: #eef1f7;
  color: var(--lg-brand);
}

.lg-reveal svg {
  width: 20px;
  height: 20px;
}

.lg-reveal .lg-eye-off,
.lg-reveal[aria-pressed="true"] .lg-eye-on {
  display: none;
}

.lg-reveal[aria-pressed="true"] .lg-eye-off {
  display: block;
}

.lg-caps {
  display: none;
  font-size: 12px;
  color: #a15c00;
  margin-top: 6px;
}

.lg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 22px;
  font-size: 14px;
}

.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #33405c;
  cursor: pointer;
  user-select: none;
  font-weight: 400;
  margin: 0;
}

.lg-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--lg-brand);
  margin: 0;
}

.lg-shell a {
  color: var(--lg-brand);
  text-decoration: none;
  font-weight: 600;
}

.lg-shell a:hover,
.lg-shell a:focus {
  color: var(--lg-brand);
  text-decoration: underline;
}

.lg-forgot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lg-brand);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lg-forgot:hover {
  text-decoration: underline;
}

.lg-forgot:focus-visible {
  outline: 2px solid var(--lg-brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.lg-forgot.is-loading {
  cursor: default;
  opacity: .75;
}

.lg-forgot-spin {
  display: none;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 49, 154, .25);
  border-top-color: var(--lg-brand);
  border-radius: 50%;
  animation: lg-spin .7s linear infinite;
}

.lg-forgot.is-loading .lg-forgot-spin {
  display: inline-block;
}

.lg-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: var(--lg-radius);
  background: var(--lg-brand);
  color: #fff;
  font: 600 16px Poppins, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px -8px rgba(0, 49, 154, .55);
  transition: background .15s, transform .05s, box-shadow .15s;
}

.lg-btn:hover {
  background: var(--lg-brand-600);
  box-shadow: 0 10px 24px -8px rgba(0, 49, 154, .65);
}

.lg-btn:active {
  transform: translateY(1px);
}

.lg-btn:focus-visible {
  outline: 3px solid rgba(0, 49, 154, .35);
  outline-offset: 3px;
}

.lg-btn svg {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.lg-btn:hover svg {
  transform: translateX(3px);
}

.lg-btn .lg-spin {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lg-spin .7s linear infinite;
}

.lg-btn.loading .lg-spin {
  display: block;
}

.lg-btn.loading .lg-lbl,
.lg-btn.loading svg {
  display: none;
}

.lg-btn:disabled {
  cursor: default;
  pointer-events: none;
}

@keyframes lg-spin {
  to {
    transform: rotate(360deg);
  }
}

.lg-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #6b7690;
}

.lg-secure svg {
  width: 14px;
  height: 14px;
}

.lg-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 16px;
  color: #6b7690;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lg-divider::before,
.lg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lg-line);
}

.lg-quick {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lg-shell .lg-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: #33405c;
  font: 500 11.5px/1.25 Inter, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: .15s;
}

.lg-shell .lg-quick a:hover {
  background: var(--lg-brand-50);
  border-color: #d5e0fb;
  color: var(--lg-brand);
  text-decoration: none;
}

.lg-shell .lg-quick a:focus-visible {
  outline: 2px solid var(--lg-brand);
  outline-offset: 2px;
}

.lg-quick .lg-qi {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--lg-brand-50);
  color: var(--lg-brand);
  transition: .15s;
}

.lg-quick a:hover .lg-qi {
  background: var(--lg-brand);
  color: #fff;
  transform: translateY(-2px);
}

.lg-quick .lg-qi svg {
  width: 22px;
  height: 22px;
}

.lg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--lg-line);
  font-size: 12px;
  color: #8a95ab;
}

.lg-foot .lg-pb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lg-foot img {
  height: 20px;
  width: auto;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 1100px) {
  .lg-shell {
    grid-template-columns: 1fr;
  }

  .lg-hero {
    min-height: 240px;
  }

  .lg-brandlogo {
    height: 56px;
  }

  .lg-eyebrow,
  .lg-motto,
  .lg-hero-copy p,
  .lg-audience {
    display: none;
  }

  .lg-hero-foot {
    justify-content: flex-end;
  }

  .lg-hero-inner {
    padding: 24px 24px 26px;
  }

  .lg-hero h2 {
    font-size: 24px;
    margin: 0 0 12px;
    max-width: 420px;
  }

  .lg-panel {
    padding: 36px 20px 28px;
  }
}

/* Notebooks (1366x768, 1280x720...): o painel tem ~860px de conteúdo e a área útil do navegador fica entre 600 e 800px; compacta o vertical em vez de rolar. */
@media (min-width: 1101px) and (max-height: 860px) {
  .lg-panel {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .lg-logo {
    margin-bottom: 24px;
  }

  .lg-lead {
    margin-bottom: 22px;
  }

  .lg-divider {
    margin: 24px 0 12px;
  }

  .lg-foot {
    margin-top: 24px;
  }

  .lg-hero-inner {
    padding: 32px 48px 32px;
  }

  .lg-brandlogo {
    height: 88px;
  }

  .lg-hero h2 {
    font-size: clamp(26px, min(3.1vw, 5.6vh), 46px);
  }
}

@media (min-width: 1101px) and (max-height: 720px) {
  .lg-panel {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .lg-logo {
    height: 36px;
    margin-bottom: 16px;
  }

  .lg-card h1 {
    font-size: 24px;
    margin-bottom: 4px;
  }

  .lg-lead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .lg-field {
    margin-bottom: 12px;
  }

  .lg-field > label {
    margin-bottom: 5px;
  }

  .lg-control input {
    height: 44px;
  }

  .lg-row {
    margin: 2px 0 14px;
  }

  .lg-btn {
    height: 46px;
  }

  .lg-secure {
    margin-top: 10px;
  }

  .lg-divider {
    margin: 18px 0 10px;
  }

  .lg-shell .lg-quick a {
    gap: 6px;
    padding: 8px 4px;
  }

  .lg-quick .lg-qi {
    width: 38px;
    height: 38px;
  }

  .lg-quick .lg-qi svg {
    width: 20px;
    height: 20px;
  }

  .lg-foot {
    margin-top: 16px;
    padding-top: 12px;
  }

  .lg-hero-inner {
    padding: 24px 40px 26px;
  }

  .lg-brandlogo {
    height: 72px;
  }

  .lg-hero p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .lg-audience {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .lg-pill {
    display: none;
  }

  .lg-quick {
    grid-template-columns: repeat(3, 1fr);
  }

  .lg-foot {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-slide {
    transition: opacity .01s;
  }
}
