/* C183 / C177 baseline patch: scoped corrections only. No changes to card width, height, brand, inputs or authentication. */
/* Consumer screenshot reference (1724-wide): top-right button is inset ~45px, not 20px. */
.forms-auth-shell[data-auth-mode] > button.forms-portal-theme.forms-login-theme,
.forms-entry .forms-portal-theme {
  position: fixed !important;
  top: 20px !important;
  right: clamp(14px, 2.62vw, 46px) !important;
  left: auto !important;
  bottom: auto !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  transform: none !important;
  z-index: 110 !important;
}
.forms-auth-shell[data-auth-mode] > button.forms-portal-theme.forms-login-theme svg,
.forms-entry .forms-portal-theme svg {
  width: 19px !important;
  height: 19px !important;
}
/* Recovery button now shares a baseline with its label, staying within the input card. */
.forms-auth-shell[data-auth-type="user"][data-auth-mode="recover"] .forms-c183-recovery-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  min-height: 28px !important;
}
.forms-auth-shell[data-auth-type="user"][data-auth-mode="recover"] .forms-c183-recovery-heading > label {
  margin: 0 !important;
  padding: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.forms-auth-shell[data-auth-type="user"][data-auth-mode="recover"] .forms-c183-send-code {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 9px !important;
  border: 1px solid rgba(94, 203, 224, .34) !important;
  border-radius: 9px !important;
  background: #0c3044 !important;
  color: #defbff !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
}
:root[data-theme="light"] .forms-auth-shell[data-auth-mode="recover"] .forms-c183-send-code {
  background: #e6f3f8 !important;
  color: #1a526c !important;
  border-color: #bedfe9 !important;
}
@media (max-width:700px) {
  .forms-auth-shell[data-auth-mode] > button.forms-portal-theme.forms-login-theme,
  .forms-entry .forms-portal-theme {
    top: 16px !important;
    right: 16px !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
  .forms-auth-shell[data-auth-mode="recover"] .forms-c183-send-code {padding:0 7px !important;font-size:10px !important;}
}
