/* NDC_AUTH_3P_UI_OTP_V1 — presentation only. OTP/verify/reset stay server-backed (class-runtime). */
/* Active owner: ndc-broker-password-recovery/assets/recovery-ui.css (enqueued by NdcPwrec Runtime). */

/* Page 991 only: remove redundant Kadence header + page title/banner spacing (do not affect 767/770/other). */
body.page-id-991{
  --ndc-pwrec-ink:#103B34;
  --ndc-pwrec-muted:#52685e;
  --ndc-pwrec-accent:#146B52;
  --ndc-pwrec-champagne:#D5AE67;
  --ndc-pwrec-paper:#FFFFFF;
  --ndc-pwrec-surface:#F5F8F6;
  --ndc-pwrec-line:rgba(20,107,82,.28);
  background:var(--ndc-pwrec-surface) !important;
}
body.page-id-991 #wrapper,
body.page-id-991 #inner-wrap,
body.page-id-991 .site-container,
body.page-id-991 .content-area,
body.page-id-991 .content-container,
body.page-id-991 .entry-content-wrap,
body.page-id-991 .entry-content,
body.page-id-991 main.site-main,
body.page-id-991 #content,
body.page-id-991 .site-content,
body.page-id-991 .content-wrap,
body.page-id-991 article{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
}
body.page-id-991 header#masthead.site-header,
body.page-id-991 #mobile-drawer.popup-drawer,
body.page-id-991 .entry-hero,
body.page-id-991 .page-hero-section,
body.page-id-991 .entry-hero-container,
body.page-id-991 article > .entry-header,
body.page-id-991 .entry-hero .entry-header,
body.page-id-991 .entry-title,
body.page-id-991 .page-title{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
  height:0 !important;
  max-height:0 !important;
  overflow:hidden !important;
  border:0 !important;
}
body.page-id-991 #inner-wrap,
body.page-id-991 .content-area,
body.page-id-991 .content-container,
body.page-id-991 .entry-content-wrap,
body.page-id-991 .entry-content,
body.page-id-991 main.site-main,
body.page-id-991 #content,
body.page-id-991 .site-content,
body.page-id-991 .content-wrap{
  padding-top:0 !important;
  padding-bottom:0 !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
}
/* Theme/Kadence site footer on 991 — match approved auth pages; in-card Đăng nhập link preserved. */
body.page-id-991:has(#ndc-pwrec-forgot) footer#colophon.site-footer,
body.page-id-991:has(#ndc-pwrec-forgot) .site-footer,
body.page-id-991:has(#ndc-pwrec-forgot) .site-footer-wrap{
  display:none !important;
}
/* NDC_AUTH_FOLLOWUP_V1: restore vertical breathing. Prior min-height:0 + padding:0!important hugged the card to edges. */
body.page-id-991:has(#ndc-pwrec-forgot).footer-on-bottom #wrapper,
body.page-id-991:has(#ndc-pwrec-forgot).footer-on-bottom.admin-bar #wrapper{
  min-height:auto !important;
}

/* Shell: center card in available viewport; !important beats ancestor padding-top/bottom:0 !important. */
body.page-id-991:has(#ndc-pwrec-forgot) .entry-content{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  box-sizing:border-box !important;
  width:100%;
  max-width:100%;
  min-height:calc(100vh - 48px) !important;
  min-height:calc(100dvh - 48px) !important;
  padding:40px 16px !important;
  margin:0 auto !important;
  padding-left:max(16px, env(safe-area-inset-left, 0px)) !important;
  padding-right:max(16px, env(safe-area-inset-right, 0px)) !important;
  padding-top:max(40px, env(safe-area-inset-top, 0px)) !important;
  padding-bottom:max(40px, env(safe-area-inset-bottom, 0px)) !important;
}
body.admin-bar.page-id-991:has(#ndc-pwrec-forgot) .entry-content{
  min-height:calc(100vh - 48px - 32px) !important;
  min-height:calc(100dvh - 48px - 32px) !important;
}
@media screen and (max-width:782px){
  body.admin-bar.page-id-991:has(#ndc-pwrec-forgot) .entry-content{
    min-height:calc(100vh - 48px - 46px) !important;
    min-height:calc(100dvh - 48px - 46px) !important;
  }
}
body.page-id-991:has(#ndc-pwrec-forgot) .wp-block-shortcode{
  padding:0 !important;
  margin:0 !important;
  box-sizing:border-box;
  width:100%;
  max-width:560px;
}

/* Card — approved auth visual system (register/login language). */
#ndc-pwrec-forgot{
  box-sizing:border-box;
  width:100%;
  max-width:560px;
  margin:0 auto;
  padding:28px 28px 30px;
  background:var(--ndc-pwrec-paper,#FFFFFF);
  border:1.5px solid var(--ndc-pwrec-line,rgba(20,107,82,.28));
  border-radius:16px;
  box-shadow:0 4px 18px rgba(16,59,52,.06);
  color:#1E3030;
  font-family:'Be Vietnam Pro',system-ui,-apple-system,sans-serif;
}
#ndc-pwrec-forgot *,
#ndc-pwrec-forgot *::before,
#ndc-pwrec-forgot *::after{box-sizing:border-box}

/* Brand eyebrow (CSS-only; no PHP markup change). */
#ndc-pwrec-forgot::before{
  content:"NhaDatChon";
  display:block;
  text-align:center;
  color:var(--ndc-pwrec-champagne,#D5AE67);
  font-weight:800;
  font-size:1.05rem;
  letter-spacing:.04em;
  margin:0 0 14px;
  line-height:1.25;
  text-shadow:0 0 .6px rgba(106,82,24,.35);
}

#ndc-pwrec-forgot h2{
  margin:0 0 8px;
  font-size:1.35rem;
  line-height:1.25;
  font-weight:700;
  color:var(--ndc-pwrec-ink,#103B34);
  text-align:center;
  font-family:inherit;
}
#ndc-pwrec-forgot .ndc-pwrec-copy{
  margin:0 0 22px;
  color:var(--ndc-pwrec-muted,#52685e);
  font-size:.86rem;
  line-height:1.45;
  text-align:center;
}
#ndc-pwrec-forgot .ndc-pwrec-form{display:flex;flex-direction:column;margin:0}
#ndc-pwrec-forgot label{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.3rem;
  margin:0 0 .85rem;
  font-size:.86rem;
  font-weight:650;
  color:var(--ndc-pwrec-ink,#103B34);
  line-height:1.3;
  text-align:left;
}
#ndc-pwrec-forgot input{
  display:block;
  width:100%;
  min-height:44px;
  margin:0;
  padding:.55rem .8rem;
  border:1px solid #D8E2DD;
  border-radius:8px;
  background:#fff;
  color:#1E3030;
  font:inherit;
  font-size:1rem;
  font-weight:400;
}
#ndc-pwrec-forgot input:hover{border-color:var(--ndc-pwrec-accent,#146B52)}
#ndc-pwrec-forgot input:focus-visible,
#ndc-pwrec-forgot button:focus-visible,
#ndc-pwrec-forgot a:focus-visible{
  outline:2px solid var(--ndc-pwrec-accent,#146B52);
  outline-offset:2px;
}
#ndc-pwrec-forgot button,
#ndc-pwrec-forgot .ndc-bj-button--primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:44px;
  margin:.15rem 0 0;
  padding:.7rem 1rem;
  border:1px solid var(--ndc-pwrec-accent,#146B52);
  border-radius:8px;
  background:var(--ndc-pwrec-accent,#146B52);
  color:#fff;
  font:inherit;
  font-size:.98rem;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}
#ndc-pwrec-forgot button:hover,
#ndc-pwrec-forgot .ndc-bj-button--primary:hover{
  background:#103B34;
  border-color:#103B34;
  color:#fff;
}
#ndc-pwrec-forgot button:disabled{cursor:wait;opacity:.72}

/* OTP resend — secondary outline CTA */
#ndc-pwrec-forgot .ndc-pwrec-resend{
  margin-top:.65rem;
  background:#fff;
  color:var(--ndc-pwrec-ink,#103B34);
  border:1px solid #d5e1db;
  font-weight:700;
}
#ndc-pwrec-forgot .ndc-pwrec-resend:hover{
  background:#fff;
  border-color:var(--ndc-pwrec-accent,#146B52);
  color:var(--ndc-pwrec-ink,#103B34);
}
#ndc-pwrec-forgot .ndc-pwrec-resend-meta{
  margin:.55rem 0 0;
  font-size:.86rem;
  line-height:1.4;
  color:var(--ndc-pwrec-muted,#52685e);
  text-align:center;
}

/* Status / error / success messaging */
#ndc-pwrec-forgot .ndc-pwrec-status{
  min-height:1.4em;
  margin:.85rem 0 0;
  font-size:.86rem;
  line-height:1.45;
  color:var(--ndc-pwrec-ink,#103B34);
  text-align:center;
}
#ndc-pwrec-forgot .ndc-pwrec-success{
  margin-top:.35rem;
  text-align:center;
}
#ndc-pwrec-forgot .ndc-pwrec-success .ndc-pwrec-status{
  margin:0 0 14px;
  color:var(--ndc-pwrec-accent,#146B52);
  font-weight:650;
}
#ndc-pwrec-forgot .ndc-bj-auth__cross{
  margin:.85rem 0 0;
  padding-top:.7rem;
  border-top:1px solid #E5ECE8;
  text-align:center;
  font-size:.86rem;
  color:var(--ndc-pwrec-muted,#52685e);
}
#ndc-pwrec-forgot .ndc-bj-auth__link{
  color:var(--ndc-pwrec-accent,#146B52);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:.12em;
}
#ndc-pwrec-forgot [hidden]{display:none !important}

/* Step panels keep existing DOM; coherent spacing across phone/otp/password. */
#ndc-pwrec-forgot .ndc-pwrec-step{margin:0}
#ndc-pwrec-forgot[data-step="otp"] h2,
#ndc-pwrec-forgot[data-step="password"] h2,
#ndc-pwrec-forgot[data-step="phone"] h2{/* title node unchanged; visual via shared h2 */}

@media (max-width:1366px){
  #ndc-pwrec-forgot{max-width:560px}
}
@media (max-width:1024px){
  body.page-id-991:has(#ndc-pwrec-forgot) .entry-content{
    padding:36px 16px !important;
    padding-left:max(16px, env(safe-area-inset-left, 0px)) !important;
    padding-right:max(16px, env(safe-area-inset-right, 0px)) !important;
  }
  #ndc-pwrec-forgot{max-width:560px;padding:26px 24px 28px}
}
@media (max-width:768px){
  body.page-id-991:has(#ndc-pwrec-forgot) .entry-content{
    padding:32px 16px !important;
    padding-left:max(16px, env(safe-area-inset-left, 0px)) !important;
    padding-right:max(16px, env(safe-area-inset-right, 0px)) !important;
  }
  #ndc-pwrec-forgot{max-width:560px;width:100%;padding:22px 18px 24px;border-radius:16px}
}
@media (max-width:480px){
  body.page-id-991:has(#ndc-pwrec-forgot) #wrapper,
  body.page-id-991:has(#ndc-pwrec-forgot) #inner-wrap,
  body.page-id-991:has(#ndc-pwrec-forgot) .content-area,
  body.page-id-991:has(#ndc-pwrec-forgot) .content-container,
  body.page-id-991:has(#ndc-pwrec-forgot) .entry-content-wrap,
  body.page-id-991:has(#ndc-pwrec-forgot) .entry-content,
  body.page-id-991:has(#ndc-pwrec-forgot) main.site-main,
  body.page-id-991:has(#ndc-pwrec-forgot) #content,
  body.page-id-991:has(#ndc-pwrec-forgot) .site-content,
  body.page-id-991:has(#ndc-pwrec-forgot) .content-wrap,
  body.page-id-991:has(#ndc-pwrec-forgot) article,
  body.page-id-991:has(#ndc-pwrec-forgot) .wp-block-shortcode,
  body.page-id-991:has(#ndc-pwrec-forgot) .entry-content-wrap > *,
  body.page-id-991:has(#ndc-pwrec-forgot) .content-container > *{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
  }
  body.page-id-991:has(#ndc-pwrec-forgot) .content-area,
  body.page-id-991:has(#ndc-pwrec-forgot) main.site-main{
    display:block !important;
  }
  body.page-id-991:has(#ndc-pwrec-forgot) .entry-content{
    padding:32px 8px !important;
    padding-left:max(8px, env(safe-area-inset-left, 0px)) !important;
    padding-right:max(8px, env(safe-area-inset-right, 0px)) !important;
    padding-top:max(32px, env(safe-area-inset-top, 0px)) !important;
    padding-bottom:max(32px, env(safe-area-inset-bottom, 0px)) !important;
    min-height:calc(100vh - 24px) !important;
    min-height:calc(100dvh - 24px) !important;
  }
  body.admin-bar.page-id-991:has(#ndc-pwrec-forgot) .entry-content{
    min-height:calc(100dvh - 24px - 46px) !important;
  }
  body.page-id-991:has(#ndc-pwrec-forgot) .wp-block-shortcode{
    padding:0 !important;
    max-width:100%;
  }
  #ndc-pwrec-forgot{
    max-width:100%;
    width:100%;
    margin:0;
    padding:20px 14px 22px;
    border-radius:14px;
  }
  #ndc-pwrec-forgot h2{font-size:1.2rem}
  #ndc-pwrec-forgot::before{font-size:.98rem;margin-bottom:12px}
  #ndc-pwrec-forgot input,
  #ndc-pwrec-forgot button{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  #ndc-pwrec-forgot button{transition:none}
}
