/* 12.81.9: login error feedback and comfortable Android/iOS keyboard viewport.
   Login-only; no changes to account validation, OTP, or other portal screens. */
body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] .sh-auth-alert.is-error {
  border:1px solid #ce6868!important;
  background:#fff2f2!important;
  color:#832121!important;
  padding:13px 14px!important;
  margin-block:0 18px!important;
  overflow-wrap:anywhere;
}
body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] .sh-auth-alert.is-error strong{font-size:16px!important;line-height:1.5!important}
body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] .sh-auth-alert.is-error p{font-size:13.5px!important;line-height:1.65!important}
body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] .sh-auth-inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] .sh-auth-inline-actions a{font-size:13px!important;min-height:42px!important;line-height:1.35;padding:9px 12px;text-align:center;flex:1 1 130px}
@media(max-width:800px){
  body.sh-auth-page .sh-auth-shell[data-shuh-login="1"]{overflow-x:clip;background:#fff}
  body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] .sh-auth-main{width:100%;min-width:0;box-sizing:border-box}
  body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] .sh-auth-card-main{max-width:100%;min-width:0;box-sizing:border-box}
  body.sh-auth-page.shuh-mobile-keyboard-open .sh-auth-shell[data-shuh-login="1"] .sh-auth-main {
    padding-bottom:calc(102px + var(--shuh-mobile-kb-gap,0px))!important;
  }
  body.sh-auth-page .sh-auth-shell[data-shuh-login="1"] :is(.sh-auth-form input,.sh-auth-primary){touch-action:manipulation}
}
@media(max-width:800px) and (orientation:portrait){
  /* Pin the existing native submit button inside the visual viewport, not
     under the Android/iOS keyboard. Does not insert an additional submit. */
  body.sh-auth-page.shuh-mobile-keyboard-open .sh-auth-shell[data-shuh-login="1"] .sh-auth-form > .sh-auth-primary {
    position:fixed!important;
    z-index:1100!important;
    top:calc(var(--shuh-mobile-vv-top,0px) + var(--shuh-mobile-vv-height,100dvh) - 72px)!important;
    bottom:auto!important;
    left:max(16px, calc((100vw - 520px)/2))!important;
    right:max(16px, calc((100vw - 520px)/2))!important;
    width:auto!important;
    max-width:520px;
    margin:0!important;
    transform:none!important;
    box-shadow:0 5px 20px rgba(17,19,15,.14)!important;
  }
  /* Reserve the bottom of the visible area for the action; let the field scroll. */
  body.sh-auth-page.shuh-mobile-keyboard-open .sh-auth-shell[data-shuh-login="1"] .sh-phone-field {
    scroll-margin-bottom:84px;
  }
}
