.bgp-login {
  min-height: 100vh;
  background: #f4f5f7;
}

.bgp-login-root,
.bgp-login-root > div,
.bgp-login-root main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.bgp-login__outer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.25rem;
}

.bgp-login__frame {
  width: min(1360px, 100%);
  min-height: clamp(680px, 88vh, 860px);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  display: flex;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.14), 0 10px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.bgp-login__grid {
  flex: 1;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .bgp-login__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.bgp-login__brand {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #5a0012 0%, #8b0a1f 38%, #4a000f 100%);
}

.bgp-login__brand-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  pointer-events: none;
}

.bgp-login__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 20% 20%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.bgp-login__brand-inner {
  position: relative;
  padding: 3.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-height: 100%;
}

.bgp-login__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bgp-login__logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25));
}

.bgp-login__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.bgp-login__logo-text {
  font-size: 1.75rem;
  line-height: 1;
}

.bgp-login__product-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

.bgp-login__brand-main {
  margin-top: 0.75rem;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.bgp-login__title {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.bgp-login__divider {
  width: 2.75rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.bgp-login__copy {
  margin: 0;
  font-size: 0.985rem;
  line-height: 1.6;
  opacity: 0.90;
}

.bgp-login__features {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bgp-login__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.95;
  white-space: nowrap;
}

.bgp-login__feature-ic {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.bgp-login__ic {
  width: 1.05rem;
  height: 1.05rem;
}

.bgp-login__form {
  background: radial-gradient(700px 420px at 50% 10%, rgba(17, 24, 39, 0.045), rgba(17, 24, 39, 0) 62%), #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.25rem;
}

.bgp-login__form-inner {
  width: 100%;
  max-width: 560px;
}

.bgp-login__form-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.bgp-login__form-subtitle {
  margin: 0.35rem 0 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b7280;
}

.bgp-login__form-kicker {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
}

/* Ajusta o link "voltar ao login" do Filament */
.bgp-login__form-subtitle a {
  color: #8b0a1f;
  font-weight: 600;
  text-decoration: none;
}

.bgp-login__form-subtitle a:hover {
  text-decoration: underline;
}

.bgp-login__form-body {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.10);
  border: 1px solid rgba(17, 24, 39, 0.10);
  padding: 1.35rem 1.35rem 1.25rem;
}

/* Esconde o hint nativo do Filament no campo de senha */
.bgp-login__form-body a[tabindex='-1'] {
  display: none !important;
}

.bgp-login__forgot {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b0a1f;
  text-decoration: none;
}

.bgp-login__forgot:hover {
  text-decoration: underline;
}

/* Ajustes de ergonomia dos campos */
.bgp-login__form-body input[type="email"],
.bgp-login__form-body input[type="password"],
.bgp-login__form-body input[type="text"] {
  min-height: 44px;
}

.bgp-login__form-body button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #8b0a1f 0%, #6f0017 100%);
  border-color: rgba(0, 0, 0, 0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(111, 0, 23, 0.22);
}

.bgp-login__copyright {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1023.98px) {
  .bgp-login__outer {
    padding: 1.25rem 1rem;
    align-items: stretch;
  }

  .bgp-login__frame {
    min-height: auto;
  }

  .bgp-login__brand-inner {
    padding: 2.25rem 1.75rem;
    gap: 1.25rem;
  }

  .bgp-login__features {
    margin-top: 0.5rem;
  }

  .bgp-login__form {
    padding: 2rem 1.25rem 2.25rem;
  }
}

.bgp-login {
  min-height: 100vh;
  background: #f4f5f7;
}

/* Evita que wrappers do Filament "apertem" o layout do login */
.bgp-login-root,
.bgp-login-root > div,
.bgp-login-root main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.bgp-login__outer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.25rem;
}

.bgp-login__frame {
  width: min(1360px, 100%);
  min-height: clamp(680px, 88vh, 860px);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  display: flex;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.14), 0 10px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.bgp-login__grid {
  flex: 1;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .bgp-login__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.bgp-login__brand {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #5a0012 0%, #8b0a1f 38%, #4a000f 100%);
}

.bgp-login__brand-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  pointer-events: none;
}

.bgp-login__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 20% 20%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.bgp-login__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, rgba(255, 255, 255, 0) 0);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.bgp-login__brand-inner {
  position: relative;
  padding: 3.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-height: 100%;
}

.bgp-login__brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bgp-login__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bgp-login__logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25));
}

.bgp-login__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.bgp-login__logo-text {
  font-size: 1.75rem;
  line-height: 1;
}

.bgp-login__product-logo {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.28));
}

.bgp-login__brand-main {
  margin-top: 0.75rem;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.bgp-login__headline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bgp-login__divider {
  width: 2.75rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.bgp-login__title {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.bgp-login__subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  opacity: 0.92;
}

.bgp-login__copy {
  margin: 0;
  font-size: 0.985rem;
  line-height: 1.6;
  opacity: 0.90;
}

.bgp-login__features {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bgp-login__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.95;
  white-space: nowrap;
}

.bgp-login__feature-ic {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.bgp-login__ic {
  width: 1.05rem;
  height: 1.05rem;
}

.bgp-login__form {
  background: radial-gradient(700px 420px at 50% 10%, rgba(17, 24, 39, 0.045), rgba(17, 24, 39, 0) 62%), #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.25rem;
}

.bgp-login__form-inner {
  width: 100%;
  max-width: 560px;
}

.bgp-login__form-head {
  margin-bottom: 1.4rem;
}

.bgp-login__form-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.bgp-login__form-subtitle {
  margin: 0.35rem 0 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b7280;
}

.bgp-login__form-body {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.10);
  border: 1px solid rgba(17, 24, 39, 0.10);
  padding: 1.35rem 1.35rem 1.25rem;
}

/* Esconde o hint nativo do Filament no campo de senha */
.bgp-login__form-body a[tabindex='-1'] {
  display: none !important;
}

.bgp-login__forgot {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b0a1f;
  text-decoration: none;
}

.bgp-login__forgot:hover {
  text-decoration: underline;
}

/* Ajustes de ergonomia dos campos */
.bgp-login__form-body input[type="email"],
.bgp-login__form-body input[type="password"],
.bgp-login__form-body input[type="text"] {
  min-height: 44px;
}

.bgp-login__form-body button[type="submit"] {
  width: 100%;
  background: linear-gradient(135deg, #8b0a1f 0%, #6f0017 100%);
  border-color: rgba(0, 0, 0, 0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(111, 0, 23, 0.22);
}

.bgp-login__form-body button[type="submit"]:hover {
  filter: brightness(0.98);
  box-shadow: 0 14px 30px rgba(111, 0, 23, 0.28);
}

.bgp-login__copyright {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 1023.98px) {
  .bgp-login__outer {
    padding: 1.25rem 1rem;
    align-items: stretch;
  }

  .bgp-login__frame {
    min-height: auto;
  }

  .bgp-login__brand-inner {
    padding: 2.25rem 1.75rem;
    gap: 1.25rem;
  }

  .bgp-login__features {
    margin-top: 0.5rem;
  }

  .bgp-login__form {
    padding: 2rem 1.25rem 2.25rem;
  }
}

.bgp-login {
  min-height: 100vh;
  background: #f4f5f7;
}

/* Evita que wrappers do Filament "apertem" o layout do login */
.bgp-login-root,
.bgp-login-root > div,
.bgp-login-root main {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.bgp-login__outer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.25rem;
}

.bgp-login__frame {
  width: min(1360px, 100%);
  min-height: clamp(680px, 88vh, 860px);
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  display: flex; /* garante que o grid preencha a altura */
  box-shadow:
    0 30px 80px rgba(17, 24, 39, 0.14),
    0 10px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.bgp-login__grid {
  flex: 1;
  min-height: 100%;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .bgp-login__grid {
    grid-template-columns: 1.4fr 1fr; /* ~58/42 */
  }
}

.bgp-login__brand {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 22% 18%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%),
    radial-gradient(760px 520px at 82% 22%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 55%),
    linear-gradient(135deg, #5a0012 0%, #8b0a1f 38%, #4a000f 100%);
}

.bgp-login__brand-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
  transform: scale(1.02);
  pointer-events: none;
}

.bgp-login__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.bgp-login__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, rgba(255, 255, 255, 0) 0);
  background-size: 18px 18px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.bgp-login__brand-inner {
  position: relative;
  padding: 3.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  min-height: 100%;
}

.bgp-login__brand-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bgp-login__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bgp-login__logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25));
}

.bgp-login__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.bgp-login__logo-text {
  font-size: 1.75rem;
  line-height: 1;
}

.bgp-login__headline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bgp-login__brand-main {
  margin-top: 0.75rem;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.bgp-login__divider {
  width: 2.75rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.bgp-login__title {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: -0.01em;
}

.bgp-login__subtitle {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  opacity: 0.92;
}

.bgp-login__copy {
  margin: 0;
  font-size: 0.985rem;
  line-height: 1.6;
  opacity: 0.90;
}

.bgp-login__features {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.bgp-login__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  opacity: 0.95;
  white-space: nowrap;
}

.bgp-login__feature-ic {
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.bgp-login__ic {
  width: 1.05rem;
  height: 1.05rem;
}

.bgp-login__form {
  background:
    radial-gradient(700px 420px at 50% 10%, rgba(17, 24, 39, 0.045), rgba(17, 24, 39, 0) 62%),
    #f4f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.25rem;
}

.bgp-login__form-inner {
  width: 100%;
  max-width: 560px;
}

.bgp-login__form-head {
  margin-bottom: 1.4rem;
}

.bgp-login__form-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.bgp-login__form-subtitle {
  margin: 0.35rem 0 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b7280;
}

.bgp-login__form-body {
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(17, 24, 39, 0.10);
  border: 1px solid rgba(17, 24, 39, 0.10);
  padding: 1.35rem 1.35rem 1.25rem;
}

/* Remove o hint nativo do Filament (para reposicionar no layout) */
.bgp-login__form-body a[tabindex='-1'] {
  display: none !important;
}

.bgp-login__forgot {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b0a1f;
  text-decoration: none;
}

.bgp-login__forgot:hover {
  text-decoration: underline;
}

.bgp-login__copyright {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #9ca3af;
  text-align: center;
}

/* Pequeno ajuste para não "colidir" com a estética do card */
.bgp-login .fi-section,
.bgp-login .fi-card,
.bgp-login .fi-fo-field-wrp {
  max-width: 100%;
}

/* Ajustes de ergonomia dos campos (sem mexer na lógica do Filament) */
.bgp-login__form-body input[type="email"],
.bgp-login__form-body input[type="password"],
.bgp-login__form-body input[type="text"] {
  min-height: 44px;
}

.bgp-login__form-body button[type="submit"] {
  width: 100%;
}

/* CTA com cara enterprise (escopado ao login) */
.bgp-login__form-body button[type="submit"] {
  background: linear-gradient(135deg, #8b0a1f 0%, #6f0017 100%);
  border-color: rgba(0, 0, 0, 0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(111, 0, 23, 0.22);
}

.bgp-login__form-body button[type="submit"]:hover {
  filter: brightness(0.98);
  box-shadow: 0 14px 30px rgba(111, 0, 23, 0.28);
}

.bgp-login__form-body button[type="submit"]:focus {
  outline: none;
}

/* Evita quebra de linha em "Remember me" */
.bgp-login__form-body .fi-fo-checkbox {
  white-space: nowrap;
}

@media (max-width: 1023.98px) {
  .bgp-login__outer {
    padding: 1.25rem 1rem;
    align-items: stretch;
  }

  .bgp-login__frame {
    min-height: auto;
  }

  .bgp-login__brand-inner {
    padding: 2.25rem 1.75rem;
    gap: 1.25rem;
  }

  .bgp-login__features {
    margin-top: 0.5rem;
  }

  .bgp-login__form {
    padding: 2rem 1.25rem 2.25rem;
  }
}

