/* Domus Demandas · tela de login (sempre escura, independente do tema do app) */
.lg-page {
  --lg-violet: #9066ea;
  --lg-cyan: #35bfea;
  --lg-blue: #115c9c;
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow: hidden;
  background: #070b14;
  color: #e8edf5;
  isolation: isolate;
}

/* Aurora: manchas de cor desfocadas que derivam devagar */
.lg-page::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 16% 22%, rgba(144, 102, 234, .6), transparent 70%),
    radial-gradient(34% 38% at 86% 14%, rgba(53, 191, 234, .45), transparent 70%),
    radial-gradient(42% 40% at 72% 92%, rgba(255, 168, 59, .2), transparent 70%),
    radial-gradient(34% 34% at 8% 88%, rgba(0, 184, 212, .34), transparent 70%);
  filter: blur(14px);
  animation: lg-drift 22s ease-in-out infinite alternate;
}

/* Malha de pontos que some nas bordas */
.lg-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 72%);
}

@keyframes lg-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .lg-page::before { animation: none; }
}

.lg-card {
  width: min(440px, 100%);
  padding: 40px 36px 34px;
  border-radius: 24px;
  background: rgba(14, 20, 32, .78);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.lg-domus { display: block; width: 210px; max-width: 70%; height: auto; margin: 0 auto; }
.lg-sep { height: 1px; margin: 24px 0 20px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent); }

.lg-inst { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; margin-bottom: 26px; }
.lg-inst img { max-width: 230px; max-height: 64px; width: auto; height: auto; object-fit: contain; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.lg-inst strong { font-size: 14px; font-weight: 600; color: #f3f6fb; letter-spacing: .01em; }

.lg-page .lg-card h1 { margin: 0 0 6px; text-align: center; font-size: 25px; line-height: 1.2; color: #fff !important; letter-spacing: -.01em; }
.lg-sub { margin: 0 0 26px; text-align: center; font-size: 14px; color: #9fb0c6; }

.lg-form { display: grid; gap: 18px; }
.lg-label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lg-label-row label, .lg-form > div > label { font-size: 13px; font-weight: 700; color: #e8edf5; }

.lg-field { position: relative; }
.lg-field > svg.lg-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #7f90a8; pointer-events: none;
}
.lg-field input {
  width: 100%; height: 52px; padding: 0 44px 0 44px; font: inherit; font-size: 14.5px;
  color: #f3f6fb; background: #0b111c; border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.lg-field input::placeholder { color: #6f8097; }
.lg-field input:focus { border-color: var(--lg-violet); box-shadow: 0 0 0 4px rgba(144, 102, 234, .22); background: #0d1422; }
.lg-field input:-webkit-autofill {
  -webkit-text-fill-color: #f3f6fb; caret-color: #f3f6fb;
  -webkit-box-shadow: 0 0 0 1000px #0b111c inset; transition: background-color 9999s;
}

.lg-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: #8a9bb2; cursor: pointer; display: grid; place-items: center;
}
.lg-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lg-eye svg { width: 20px; height: 20px; }

.lg-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; margin-top: 4px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #1b72c8, var(--lg-blue));
  box-shadow: 0 10px 24px rgba(17, 92, 156, .45);
  transition: transform .12s, filter .15s, box-shadow .15s;
}
.lg-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.lg-submit:active { transform: translateY(0); }
.lg-submit svg { width: 18px; height: 18px; }

.lg-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; font-size: 12px; letter-spacing: .08em; color: #7f90a8; }
.lg-or::before, .lg-or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }

.lg-ms {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; border-radius: 14px; text-decoration: none; font-size: 14.5px; font-weight: 600;
  color: #e8edf5; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .12);
  transition: background .15s, border-color .15s;
}
.lg-ms:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); }
.lg-ms svg { width: 18px; height: 18px; }

.lg-foot { margin: 22px 0 0; text-align: center; font-size: 12px; color: #70829a; }

@media (max-width: 480px) {
  .lg-card { padding: 32px 22px 26px; border-radius: 20px; }
  .lg-page .lg-card h1 { font-size: 22px; }
}
