/* Professional auth (login / register) */
body.hb-auth-body {
  background:
    radial-gradient(920px 520px at 6% 8%, rgba(var(--brand-primary-rgb, 23, 155, 238), .38), transparent 58%),
    radial-gradient(780px 460px at 96% 4%, rgba(var(--brand-secondary-rgb, 8, 71, 110), .32), transparent 52%),
    radial-gradient(640px 420px at 78% 92%, rgba(var(--brand-primary-rgb, 23, 155, 238), .22), transparent 58%),
    linear-gradient(165deg, #d7eefb 0%, #eef6fb 42%, #cfe4f2 100%);
}
body.hb-auth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 72%, rgba(255,255,255,.55), transparent 28%),
    radial-gradient(circle at 82% 64%, rgba(23,155,238,.18), transparent 26%);
}
.hb-auth-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 32px;
}
.hb-auth-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(8, 71, 110, .16),
    0 2px 0 rgba(255,255,255,.55) inset;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}
.hb-auth-register .hb-auth-shell {
  max-width: 1080px;
  align-items: stretch;
}
.hb-auth-register .hb-auth-panel {
  padding: 24px 28px 22px;
  justify-content: flex-start;
  overflow: auto;
}
.hb-auth-register .hb-auth-panel h1 {
  font-size: 22px;
}
.hb-auth-register .hb-auth-lead {
  margin-bottom: 14px;
}
.hb-auth-register .hb-auth-input,
.hb-auth-register select.hb-auth-input {
  height: 38px;
  margin-bottom: 0;
  font-size: 13px !important;
}
.hb-auth-register .hb-auth-pass {
  height: 38px;
  margin-bottom: 0;
}
.hb-auth-register .hb-auth-eye {
  flex-basis: 38px;
  width: 38px;
}
.hb-auth-register .hb-auth-submit {
  height: 42px;
  margin-top: 6px;
}
.hb-auth-register .hb-auth-or {
  margin: 10px 0 12px;
}
.hb-auth-page.hb-auth-register {
  min-height: calc(100vh - 140px);
  padding: 16px 12px 32px;
  align-items: center;
}
.hb-auth-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0 0 14px;
}
.hb-auth-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hb-auth-field-span {
  grid-column: 1 / -1;
}
.hb-auth-register .hb-auth-label {
  margin: 0 0 4px;
  font-size: 11px;
}
.hb-auth-register .hb-auth-error {
  min-height: 0;
  margin: 2px 0 0;
}
.hb-auth-register .hb-auth-input,
.hb-auth-register select.hb-auth-input,
.hb-auth-register .hb-auth-pass {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
.hb-auth-register select.hb-auth-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23386870' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
[dir="rtl"] .hb-auth-register select.hb-auth-input {
  background-position: left 12px center;
  padding-right: 14px;
  padding-left: 32px;
}
.hb-auth-help {
  margin: 0 0 8px;
  color: #5a7278;
  font-size: 13px;
}
.hb-auth-aside {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    linear-gradient(165deg, rgba(8, 71, 110, .58) 0%, rgba(10, 110, 175, .42) 48%, rgba(23, 155, 238, .34) 100%);
  border-inline-end: 1px solid rgba(255,255,255,.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
}
.hb-auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(125deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.08) 34%, transparent 58%),
    radial-gradient(280px 180px at 18% 8%, rgba(255,255,255,.35), transparent 70%);
}
.hb-auth-aside::after {
  content: none;
}
.hb-glass-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.hb-glass-orb-a {
  width: 180px;
  height: 180px;
  top: -50px;
  inset-inline-end: -40px;
  background: radial-gradient(circle, rgba(255,255,255,.45) 0%, rgba(23,155,238,.35) 40%, transparent 72%);
}
.hb-glass-orb-b {
  width: 160px;
  height: 160px;
  bottom: -36px;
  inset-inline-start: -48px;
  background: radial-gradient(circle, rgba(126,200,245,.55) 0%, rgba(8,71,110,.28) 46%, transparent 72%);
}
.hb-glass-orb-c {
  width: 90px;
  height: 90px;
  top: 42%;
  inset-inline-end: 18%;
  background: radial-gradient(circle, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 70%);
}
.hb-auth-aside > * {
  position: relative;
  z-index: 1;
}
.hb-auth-aside > .hb-glass-orb {
  position: absolute;
  z-index: 0;
}
.hb-auth-aside img {
  width: min(240px, 70%);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 24px rgba(5, 30, 48, .28));
}
.hb-auth-aside h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 1px 12px rgba(5, 30, 48, .22);
}
.hb-auth-aside p {
  margin: 0;
  opacity: .92;
  line-height: 1.65;
  font-size: 14px;
  max-width: 28em;
  text-shadow: 0 1px 10px rgba(5, 30, 48, .18);
}
.hb-auth-panel {
  padding: 28px 32px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.hb-auth-form {
  min-width: 0;
  max-width: 100%;
}
.hb-auth-intro {
  text-align: center;
  margin: 0 0 18px;
}
.hb-auth-intro h1,
.hb-auth-panel h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  color: #1e3a40;
}
.hb-auth-intro .hb-auth-lead {
  margin: 0;
}
.hb-auth-lead,
.hb-auth-switch {
  color: #5a7278;
  margin: 0 0 18px;
  font-size: 14px;
}
.hb-auth-switch a { font-weight: 700; color: #386870; }
.hb-auth-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #386870;
  margin: 0 0 6px;
}
.hb-auth-input,
.hb-auth-page .form-control {
  width: 100%;
  max-width: 100%;
  height: 46px;
  border: 1px solid #d7e2e5;
  border-radius: 12px;
  padding: 0 14px;
  margin-bottom: 4px;
  box-shadow: none !important;
  font-size: 14px;
  box-sizing: border-box;
}
.hb-auth-input:focus,
.hb-auth-page .form-control:focus {
  border-color: var(--brand-primary, #179BEE);
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 23, 155, 238), .22) !important;
}
.hb-auth-error {
  display: block;
  min-height: 0;
  color: #c2410c;
  font-size: 12px;
  margin: 2px 0 8px;
}
.hb-auth-pass {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  height: 46px;
  margin-bottom: 4px;
  border: 1px solid #d7e2e5;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.hb-auth-pass:focus-within {
  border-color: var(--brand-primary, #179BEE);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb, 23, 155, 238), .22);
}
.hb-auth-pass .hb-auth-input,
.hb-auth-pass input.form-control,
.hb-auth-pass input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 14px !important;
  background: transparent;
}
.hb-auth-pass .hb-auth-input:focus,
.hb-auth-pass input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.hb-auth-eye {
  position: static !important;
  top: auto !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 46px;
  width: 46px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid #eef3f4;
  background: #f6f9f8;
  color: #5a7278;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.hb-auth-eye svg {
  display: block;
  width: 20px;
  height: 20px;
}
.hb-auth-eye:hover,
.hb-auth-eye[aria-pressed="true"] {
  color: var(--brand-secondary, #08476E);
  background: var(--brand-primary-soft, #E8F6FE);
}
.hb-auth-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 6px 0 18px;
  font-size: 13px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.hb-auth-forgot {
  color: #386870 !important;
  font-weight: 600;
  white-space: nowrap;
  float: none !important;
  position: static !important;
  margin: 0;
}
.hb-auth-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  font-weight: 500;
  color: #5a7278;
  min-width: 0;
  max-width: 100%;
  position: static !important;
  float: none !important;
}
.hb-auth-form input[type="checkbox"],
.hb-auth-check input[type="checkbox"] {
  position: static !important;
  float: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  flex: 0 0 16px;
  appearance: auto;
  -webkit-appearance: checkbox;
}
.hb-auth-check span {
  line-height: 1.35;
  white-space: normal;
}
.hb-auth-submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--brand-primary, #179BEE) !important;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 18px rgba(var(--brand-primary-rgb, 23, 155, 238), .32);
}
.hb-auth-submit:hover {
  background: var(--brand-primary-hover, #0E86D4) !important;
  filter: none;
  color: #fff;
}
.hb-auth-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef3f4;
  color: #5a7278;
  font-size: 13px;
}
.hb-auth-foot a {
  font-weight: 700;
  color: #386870;
}
.hb-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  border: 1px solid #d7e2e5;
  border-radius: 12px;
  background: #fff;
  color: #1e3a40;
  font-weight: 700;
  text-decoration: none !important;
  margin-bottom: 6px;
}
.hb-google-btn:hover {
  border-color: var(--brand-primary, #179BEE);
  color: #1e3a40;
  box-shadow: 0 6px 14px rgba(30,58,64,.06);
}
.hb-auth-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}
.hb-auth-or:before,
.hb-auth-or:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6edf0;
}
.hb-auth-alert {
  background: var(--brand-primary-soft, #E8F6FE);
  color: var(--brand-secondary, #08476E);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}
.hb-auth-page .alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
}
.hb-auth-page .alert-success {
  background: #ecfdf3;
  border: 1px solid #b7ebc9;
  color: #166534;
}
.hb-auth-page .alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.hb-auth-page .alert-info,
.hb-auth-page .alert-warning {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.hb-auth-panel {
  position: relative;
}
.hb-auth-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hb-auth-spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(23,155,238,.2);
  border-top-color: var(--brand-primary, #179BEE);
  animation: hb-auth-spin .7s linear infinite;
}
.hb-auth-loader-txt {
  color: #1e3a40;
  font-size: 13px;
  font-weight: 700;
}
@keyframes hb-auth-spin {
  to { transform: rotate(360deg); }
}
.hb-auth-captcha {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
@media (max-width: 860px) {
  .hb-auth-shell { grid-template-columns: 1fr; }
  .hb-auth-aside {
    padding: 28px 20px 22px;
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255,255,255,.22);
  }
  .hb-auth-aside img { max-width: 160px; }
  .hb-auth-panel { padding: 24px 20px 28px; }
  .hb-auth-fields { grid-template-columns: 1fr; }
}

.hb-auth-shell-narrow { max-width: 860px; }
.hb-mfa-input {
  letter-spacing: .28em;
  font-size: 22px !important;
  text-align: center;
  font-weight: 700;
}
.hb-mfa-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
}
.hb-mfa-secret {
  display: block;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  word-break: break-all;
}
.hb-mfa-backup-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
}
.hb-mfa-backup-list code { font-size: 14px; }
