/* Login — identidade jurídica (LexImob), paleta bordô + prata */

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  color: #0f172a;
  background: var(--color-bg, #f1f5f9);
}

.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2rem;
  overflow: hidden;
}

/* Fundo: gradiente bordô + padrão sutil (colunas / fachada) */
.auth-page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(165deg, #3d1014 0%, var(--color-primary, #702020) 38%, #5c1818 72%, #2a0c0e 100%);
}

.auth-page__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(255, 255, 255, 0.06) 48px,
      rgba(255, 255, 255, 0.06) 49px
    );
}

.auth-page__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.15), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 0, 0, 0.35), transparent 50%);
  pointer-events: none;
}

.auth-page__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.auth-page__shell--narrow {
  max-width: 420px;
}

.auth-page__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 2rem 2.5rem;
  align-items: start;
}

.auth-page__form-col {
  width: 100%;
  min-width: 0;
}

/* Painel lateral — estilo landing ARGUS, cores LexImob (bordô / prata) */
.auth-features {
  padding: 1.75rem 1.85rem 1.65rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(112, 32, 32, 0.12) inset;
  backdrop-filter: blur(10px);
}

.auth-features__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-brand, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.18;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.auth-features__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-secondary, #c0c0c0), var(--color-primary, #702020));
  opacity: 0.95;
}

.auth-features__lead {
  margin: 0 0 1.35rem;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.auth-features__grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-features__block {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgba(192, 192, 192, 0.55);
  transition: border-color 0.2s, background 0.2s;
}

.auth-features__block:hover {
  background: rgba(112, 32, 32, 0.18);
  border-left-color: rgba(255, 255, 255, 0.45);
}

.auth-features__block-title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.25;
}

.auth-features__block-desc {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

.auth-form__forgot {
  display: flex;
  justify-content: flex-end;
  margin-top: -0.35rem;
  margin-bottom: 0.15rem;
}

.auth-link-forgot {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-primary, #702020);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.auth-link-forgot:hover {
  color: #5c1818;
  border-bottom-color: rgba(112, 32, 32, 0.35);
}

/* Moldura decorativa atrás do card */
.auth-card-wrap {
  position: relative;
  padding: 3px;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(192, 192, 192, 0.55) 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(112, 32, 32, 0.4) 100%
  );
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.auth-card {
  position: relative;
  border-radius: 15px;
  padding: 0;
  margin: 0;
  border: none;
  background: #fff;
  overflow: hidden;
  box-shadow: none;
}

.auth-card__accent {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary, #702020) 0%,
    var(--color-secondary, #c0c0c0) 50%,
    var(--color-primary, #702020) 100%
  );
}

.auth-card__inner {
  padding: 1.75rem 1.85rem 1.5rem;
}

.auth-card__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

/* Wrapper circular: fundo do cartão para SVG transparente; logo preenche 100% */
.auth-card__logo-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(192, 192, 192, 0.35),
    0 6px 20px rgba(60, 15, 18, 0.2);
  background: #fff;
}

.auth-card__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(2.62);
  transform-origin: center center;
}

.auth-card__logo.logo--bitmap {
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.auth-card__title {
  margin: 0;
  font-family: var(--font-brand, "Cormorant Garamond", Georgia, serif);
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-primary, #702020);
  line-height: 1.15;
}

.auth-card__sub {
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.auth-card__tagline {
  margin: 1rem 0 1.35rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border-left: 3px solid var(--color-primary, #702020);
  background: linear-gradient(90deg, rgba(112, 32, 32, 0.06) 0%, rgba(241, 245, 249, 0.8) 100%);
  font-size: 0.88rem;
  line-height: 1.45;
  color: #475569;
}

.auth-card__tagline strong {
  color: var(--color-primary, #702020);
  font-weight: 600;
}

.auth-form .field {
  margin-bottom: 0;
}

.auth-form .field + .field {
  margin-top: 1rem;
}

.auth-form .field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.02em;
}

.auth-form .input {
  margin-top: 0.35rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form .input:focus {
  outline: none;
  border-color: rgba(112, 32, 32, 0.45);
  box-shadow: 0 0 0 3px rgba(112, 32, 32, 0.12);
}

.auth-card__inner .flash-stack {
  margin-bottom: 0.25rem;
}

.auth-form .form-actions {
  margin-top: 1.35rem;
}

.auth-form .btn--primary.btn--block {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.auth-flash {
  margin-bottom: 1rem;
}

.auth-flash .flash {
  margin: 0;
  font-size: 0.88rem;
}

/* Rodapé — estilo tipo landing de login (linha © + direitos), cores LexImob */
.auth-page__foot {
  margin: 2rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
}

.auth-page__foot__line {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}

.auth-page__foot__copy {
  margin-right: 0.2em;
  font-weight: 600;
  color: var(--color-secondary, #c0c0c0);
  text-shadow: 0 0 20px rgba(192, 192, 192, 0.25);
}

.auth-page__foot__year {
  font-variant-numeric: tabular-nums;
}

.auth-page__foot__sep {
  margin: 0 0.35em;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

.auth-page__foot__brand {
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.02em;
}

.auth-page__foot__tag {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.auth-page__foot__rights {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 880px) {
  .auth-page__split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .auth-features {
    order: 2;
  }
  .auth-page__form-col {
    order: 1;
  }
}

@media (max-width: 380px) {
  .auth-card__inner {
    padding: 1.35rem 1.2rem;
  }
  .auth-card__title {
    font-size: 1.65rem;
  }
  .auth-features {
    padding: 1.25rem 1.2rem;
  }
}
