/* Habineo Core 0.80.5 RC6 — auth form usability & symmetry repair. */

/* Keep the dialog centred, finite and usable on ordinary laptop displays. */
.hb-iw__gate{
  padding:16px!important;
  overflow:auto!important;
}
.hb-iw__gate-card{
  width:min(1080px,calc(100vw - 32px))!important;
  max-height:calc(100vh - 32px)!important;
  max-height:calc(100dvh - 32px)!important;
  grid-template-columns:minmax(330px,.82fr) minmax(500px,1.18fr)!important;
  border-radius:28px!important;
  overflow:hidden!important;
}
.hb-iw__gate-card>button{
  top:18px!important;
  right:20px!important;
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border-radius:50%!important;
  color:#1f2937!important;
  background:rgba(255,255,255,.82)!important;
  font-size:28px!important;
  line-height:1!important;
}

/* Left explanation: less content, stronger hierarchy, no low-contrast headline. */
.hb-iw__gate-intro{
  min-height:100%;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  padding:48px 42px!important;
}
.hb-iw__gate-intro>span{
  margin:0 0 14px!important;
  color:#9df1d6!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:850!important;
  letter-spacing:.08em!important;
}
.hb-iw__gate-intro h2{
  max-width:390px!important;
  margin:0 0 16px!important;
  color:#fff!important;
  font-size:clamp(34px,3.1vw,48px)!important;
  line-height:1.04!important;
  letter-spacing:-.045em!important;
}
.hb-iw__gate-intro p{
  max-width:420px!important;
  margin:0!important;
  color:rgba(255,255,255,.88)!important;
  font-size:17px!important;
  line-height:1.62!important;
}
.hb-iw__gate-intro ul{
  margin:28px 0 0!important;
  display:grid!important;
  gap:14px!important;
}
.hb-iw__gate-intro li{
  min-height:24px!important;
  display:flex!important;
  align-items:center!important;
  padding-left:31px!important;
  color:#fff!important;
  font-size:15px!important;
  line-height:1.45!important;
  font-weight:700!important;
}
.hb-iw__gate-intro li::before{
  top:1px!important;
  font-size:18px!important;
}
/* Old progress/trust elements are no longer rendered; hide them defensively on cached markup. */
.hb69-auth-progress,.hb67-auth-trust{display:none!important;}

/* Right panel: one consistent vertical rhythm. */
.hb-iw__gate-auth{
  min-width:0!important;
  padding:36px 40px 38px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  background:#fff!important;
}
.hb-iw__auth-tabs{
  height:58px!important;
  margin:0 0 26px!important;
  padding:5px!important;
  gap:6px!important;
  border-radius:17px!important;
  background:#f1f3f8!important;
}
.hb-iw__auth-tabs button{
  height:48px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 18px!important;
  border-radius:13px!important;
  font-size:16px!important;
  line-height:1!important;
  font-weight:800!important;
  text-align:center!important;
}
.hb-iw__gate-auth form{
  gap:16px!important;
  align-content:start!important;
}
.hb-iw__gate-auth label{
  display:block!important;
  margin:0!important;
  color:#34415b!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.hb-iw__gate-auth input:not([type="checkbox"]){
  width:100%!important;
  height:56px!important;
  min-height:56px!important;
  margin-top:7px!important;
  padding:0 15px!important;
  border:1px solid #d7dceb!important;
  border-radius:14px!important;
  color:#10182c!important;
  background:#fff!important;
  font-size:16px!important;
  outline:0!important;
}
.hb-iw__gate-auth input:not([type="checkbox"]):focus{
  border-color:#8f89ed!important;
  box-shadow:0 0 0 4px rgba(79,70,229,.10)!important;
}
.hb805-auth-passwords{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:14px;
}
.hb805-password-hint{
  min-height:0!important;
  margin:-7px 0 0!important;
  color:#768096!important;
  font-size:13px!important;
  line-height:1.4!important;
  font-weight:650!important;
}
.hb-iw__password-field{
  margin-top:7px!important;
}
.hb-iw__password-field input{
  margin-top:0!important;
  padding-right:82px!important;
}
.hb-iw__password-field button{
  right:8px!important;
  height:38px!important;
  padding:0 11px!important;
  font-size:12px!important;
}
.hb-iw__auth-consent{
  min-height:40px!important;
  display:grid!important;
  grid-template-columns:20px minmax(0,1fr)!important;
  align-items:start!important;
  gap:10px!important;
  padding:2px 0 0!important;
}
.hb-iw__auth-consent input,
.hb-iw__remember input{
  width:20px!important;
  height:20px!important;
  min-height:20px!important;
  margin:1px 0 0!important;
  padding:0!important;
}
.hb-iw__auth-consent span{
  color:#4f596c!important;
  font-size:13.5px!important;
  line-height:1.5!important;
  font-weight:600!important;
}
.hb-iw__auth-consent a{
  font-weight:750!important;
}
.hb-iw__remember{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  color:#4f596c!important;
  font-size:14px!important;
  font-weight:650!important;
}
.hb-iw__remember span{line-height:1.35!important;}
.hb-iw__gate-auth [data-account-form] .hb-iw__button--primary,
.hb-iw__gate-auth [data-login-form] .hb-iw__button--primary,
.hb-iw__gate-auth [data-reset-form] .hb-iw__button--primary{
  width:100%!important;
  min-height:56px!important;
  margin:0!important;
  border-radius:14px!important;
  font-size:16px!important;
  line-height:1!important;
}
.hb-iw__gate-auth form>small[role="alert"],
.hb-iw__gate-auth form>small[role="status"]{
  min-height:20px!important;
  margin:0!important;
  font-size:13px!important;
  line-height:1.45!important;
}
.hb-iw__auth-links{
  align-items:center!important;
  min-height:30px!important;
}
.hb-iw__forgot{
  min-height:30px!important;
  padding:4px 0!important;
  font-size:13px!important;
  line-height:1.35!important;
}

/* Tablet: keep a single, vertically scrollable card. */
@media(max-width:900px){
  .hb-iw__gate-card{
    width:min(720px,calc(100vw - 24px))!important;
    grid-template-columns:1fr!important;
    overflow-y:auto!important;
  }
  .hb-iw__gate-intro{
    min-height:auto!important;
    padding:32px 32px 28px!important;
    justify-content:flex-start!important;
  }
  .hb-iw__gate-intro h2{max-width:none!important;font-size:32px!important;}
  .hb-iw__gate-intro p{max-width:none!important;font-size:15px!important;}
  .hb-iw__gate-intro ul{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-top:20px!important;}
  .hb-iw__gate-intro li{align-items:flex-start!important;padding-left:24px!important;font-size:13px!important;}
  .hb-iw__gate-auth{overflow:visible!important;padding:28px 32px 34px!important;}
}

@media(max-width:640px){
  .hb-iw__gate{align-items:start!important;padding:8px!important;}
  .hb-iw__gate-card{
    width:100%!important;
    max-height:calc(100vh - 16px)!important;
    max-height:calc(100dvh - 16px)!important;
    border-radius:20px!important;
  }
  .hb-iw__gate-card>button{
    position:absolute!important;
    top:12px!important;
    right:12px!important;
    width:38px!important;
    height:38px!important;
  }
  .hb-iw__gate-intro{padding:26px 22px 22px!important;}
  .hb-iw__gate-intro>span{padding-right:42px!important;font-size:11px!important;}
  .hb-iw__gate-intro h2{padding-right:0!important;font-size:27px!important;}
  .hb-iw__gate-intro p{font-size:14px!important;}
  .hb-iw__gate-intro ul{grid-template-columns:1fr!important;margin-top:16px!important;gap:8px!important;}
  .hb-iw__gate-intro li{font-size:13px!important;}
  .hb-iw__gate-auth{padding:20px 18px 26px!important;}
  .hb-iw__auth-tabs{height:54px!important;margin-bottom:20px!important;}
  .hb-iw__auth-tabs button{height:44px!important;padding:0 10px!important;font-size:14px!important;}
  .hb805-auth-passwords{grid-template-columns:1fr!important;gap:16px!important;}
  .hb805-password-hint{margin:-8px 0 0!important;font-size:12px!important;}
  .hb-iw__gate-auth form{gap:15px!important;}
  .hb-iw__gate-auth label{font-size:14px!important;}
  .hb-iw__gate-auth input:not([type="checkbox"]){height:54px!important;min-height:54px!important;font-size:16px!important;}
  .hb-iw__auth-consent span{font-size:12.5px!important;}
}


/* Habineo Core 0.80.6 RC7 — interaction polish and Premium report shell. */
/* Keep status green/teal for meaning; interactive hover/focus uses Habineo indigo. */
.hb-iw__gate-card>button:hover,.hb-iw__gate-card>button:focus-visible{
  color:#4338ca!important;background:#f3f2ff!important;outline:none!important;box-shadow:0 0 0 3px rgba(79,70,229,.10)!important;
}
.hb-iw__gate-auth a,.hb-iw__gate-auth button{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease!important}
.hb-iw__gate-auth a:hover,.hb-iw__gate-auth a:focus-visible{color:#4338ca!important;text-decoration-color:#a8a4ee!important}
.hb-iw__forgot:hover,.hb-iw__forgot:focus-visible{
  color:#4338ca!important;background:#f4f3ff!important;border-radius:9px!important;text-decoration:none!important;outline:none!important;
}
.hb-iw__gate-auth .hb-iw__button--ghost:hover,.hb-iw__gate-auth .hb-iw__button--ghost:focus-visible{
  color:#4338ca!important;border-color:#c8c5f3!important;background:#f7f6ff!important;box-shadow:0 7px 18px rgba(79,70,229,.08)!important;
}
.hb-iw__gate-auth [data-account-form] .hb-iw__button--primary:hover,
.hb-iw__gate-auth [data-account-form] .hb-iw__button--primary:focus-visible,
.hb-iw__gate-auth [data-login-form] .hb-iw__button--primary:hover,
.hb-iw__gate-auth [data-login-form] .hb-iw__button--primary:focus-visible,
.hb-iw__gate-auth [data-reset-form] .hb-iw__button--primary:hover,
.hb-iw__gate-auth [data-reset-form] .hb-iw__button--primary:focus-visible{
  color:#fff!important;background:linear-gradient(135deg,#5750dc,#766ef0)!important;box-shadow:0 12px 28px rgba(79,70,229,.18)!important;transform:translateY(-1px)!important;
}
.hb-iw__auth-consent a:hover,.hb-iw__auth-consent a:focus-visible{color:#4338ca!important;background:transparent!important}
.hb-iw__verification-panel small{overflow-wrap:anywhere}
.hb-iw__verification-panel [data-auth-back-login]{display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:8px auto 0!important;padding:8px 12px!important;color:#4f46d9!important;background:transparent!important}
.hb-iw__verification-panel [data-auth-back-login]:hover,.hb-iw__verification-panel [data-auth-back-login]:focus-visible{color:#4338ca!important;background:#f4f3ff!important}

/* Cockpit: no saturated green hover on clickable controls. Green remains status-only. */
.hb-iw__start-card button:hover,.hb-iw__start-card a:hover{border-color:#cbc8f4!important;background:#f7f6ff!important;color:#4338ca!important}
.hb-iw .hb-iw__button--positive:hover,.hb-iw .hb-iw__button--positive:focus-visible{
  color:#fff!important;border-color:transparent!important;background:linear-gradient(135deg,#625be7,#7871f0)!important;box-shadow:0 9px 22px rgba(79,70,229,.14)!important;
}
.hb-iw__project-row-actions .is-positive:hover,.hb-iw__project-row-actions .is-positive:focus-visible{
  color:#fff!important;border-color:#625be7!important;background:#625be7!important;
}
.hb-iw__account-card button:hover,.hb-iw__account-card button:focus-visible,
.hb-iw__project-row-actions button:hover,.hb-iw__project-row-actions button:focus-visible,
.hb-iw__report-row-actions button:hover,.hb-iw__report-row-actions button:focus-visible,
.hb-iw__report-row-actions a:hover,.hb-iw__report-row-actions a:focus-visible{
  border-color:#cbc8f4!important;background:#f7f6ff!important;color:#4338ca!important;
}

/* Last auth micro-alignment pass. */
.hb-iw__auth-tabs button{min-width:0!important}
.hb-iw__auth-consent{padding-top:4px!important}
.hb-iw__auth-consent input{margin-top:2px!important}
.hb-iw__gate-card>button{right:24px!important}
.hb-iw__password-field button{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:72px!important}

/* RC7 final interaction sweep: every interactive control in the investor app uses indigo hover. */
body.habineo-core-investor-page .hb-iw a:hover,
body.habineo-core-investor-page .hb-iw a:focus-visible{
  color:#4338ca!important;
}
body.habineo-core-investor-page .hb-iw__start-card:hover,
body.habineo-core-investor-page .hb-iw__start-card:focus-within{
  border-color:#cbc8f4!important;
  background:#f7f6ff!important;
  box-shadow:0 16px 36px rgba(79,70,229,.08)!important;
}
body.habineo-core-investor-page .hb-iw button:not(.hb-iw__button--primary):not(.hb-iw__button--danger):hover,
body.habineo-core-investor-page .hb-iw button:not(.hb-iw__button--primary):not(.hb-iw__button--danger):focus-visible{
  border-color:#cbc8f4!important;
}
