.hb-auth-body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: #29394b;
  background-color: #eef4f8;
  background-image: var(--hb-login-background, none);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.hb-auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .10);
}

.hb-auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

/* Moldura translúcida: 70% de transparência (30% de branco visível). */
.hb-auth-card {
  width: min(100%, 520px);
  padding: 17px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .30);
  border: 1px solid rgba(255, 255, 255, .40);
  box-shadow: 0 18px 55px rgba(46, 65, 83, .10);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.hb-auth-card__inner {
  min-height: 545px;
  padding: 42px 39px 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
}

.hb-auth-brand {
  text-align: center;
  margin-bottom: 60px;
}

.hb-auth-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.hb-logo--auth {
  width: min(265px, 72vw);
  height: 80px;
  object-fit: contain;
}

.hb-logo--dark { display: none; }

.hb-auth-brand p {
  margin: 21px 0 0;
  color: #777d84;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

.hb-auth-form {
  display: grid;
  gap: 17px;
}

.hb-auth-field {
  height: 46px;
  display: grid;
  grid-template-columns: 51px minmax(0, 1fr) 45px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d5d9df;
  border-radius: 6px;
  background: rgba(249, 250, 252, .93);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hb-auth-field--user {
  grid-template-columns: 51px minmax(0, 1fr);
}

.hb-auth-field:focus-within {
  border-color: rgba(var(--hb-primary-rgb), .70);
  box-shadow: 0 0 0 3px rgba(var(--hb-primary-rgb), .10);
  background: #fff;
}

.hb-auth-field__icon {
  height: 29px;
  display: grid;
  place-items: center;
  color: var(--hb-primary);
  border-right: 1px solid #dfe3e8;
}

.hb-auth-field__icon svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: currentColor;
}

.hb-auth-field input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344457;
  font-size: 15px;
  font-weight: 400;
}

.hb-auth-field input::placeholder {
  color: #949db0;
  opacity: 1;
}

.hb-password-toggle {
  width: 45px;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9b9da0;
  cursor: pointer;
}

.hb-password-toggle:hover,
.hb-password-toggle:focus-visible {
  color: var(--hb-primary);
  outline: 0;
}

.hb-password-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hb-password-toggle .hb-eye-off { display: none; }
.hb-password-toggle.is-visible .hb-eye { display: none; }
.hb-password-toggle.is-visible .hb-eye-off { display: block; }

.hb-auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -1px 0 24px;
  color: #9299aa;
  font-size: 12px;
}

.hb-auth-options a {
  color: var(--hb-primary);
  text-decoration: none;
  font-weight: 500;
}

.hb-auth-options a:hover { color: var(--hb-primary-hover); }

.hb-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.hb-auth-remember input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--hb-primary);
}

.hb-auth-submit {
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 400;
}

.hb-auth-submit svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hb-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
  color: #9aa5b1;
  font-size: 11px;
}

.hb-auth-divider::before,
.hb-auth-divider::after {
  content: "";
  height: 1px;
  background: #e6e9ed;
  flex: 1;
}

.hb-auth-secondary {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.hb-auth-alert {
  margin: -42px 0 18px;
}

@media (max-width: 680px) {
  .hb-auth-body { overflow: auto; }
  .hb-auth-shell { padding: 16px; }
  .hb-auth-card { padding: 12px; }
  .hb-auth-card__inner { min-height: 0; padding: 38px 24px 30px; }
  .hb-auth-brand { margin-bottom: 48px; }
  .hb-auth-logo { min-height: 70px; }
  .hb-logo--auth { width: min(250px, 70vw); height: 70px; }
  .hb-auth-brand p { margin-top: 18px; font-size: 12px; }
  .hb-auth-options { font-size: 12px; margin-bottom: 18px; }
  .hb-auth-submit { height: 58px; font-size: 18px; }
}

.hb-auth-tenant-label{margin-bottom:-10px;font-size:.8rem;color:#596579;}
.hb-auth-form #login-tenant{height:46px;border:1px solid #d5d9df;border-radius:6px;background-color:rgba(249,250,252,.93);color:#27364b;}
.hb-auth-form #login-tenant-help{margin-top:-10px;color:#667386;font-size:.75rem;}
