.hmdia-password-strength {
  position: relative;
  min-inline-size: 0;
  margin-block-start: 5px;
  padding-inline-start: 23px;
  pointer-events: none;
}

.hmdia-password-strength-track {
  display: block;
  block-size: 5px;
  border-radius: 6px;
  background: #F4F4F4;
  overflow: hidden;
}

.hmdia-password-strength[hidden] {
  display: none;
}

.ui-field-front > .hmdia-password-strength {
  margin-block-start: 7px;
}

.hmdia-password-strength-fill {
  display: block;
  block-size: 100%;
  inline-size: var(--hmdia-strength-fill, 0%);
  background: var(--hmdia-strength-color, transparent);
}

.hmdia-password-strength-icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 0;
  transform: translateY(-50%);
  inline-size: 17px;
  block-size: 17px;
  color: var(--hmdia-strength-color);
}

.hmdia-password-strength[data-strength=""] > .hmdia-password-strength-icon {
  visibility: hidden;
}

.hmdia-password-strength-mark {
  stroke: #fff;
}

.hmdia-password-strength[data-strength="weak"] {
  --hmdia-strength-fill: 25%;
  --hmdia-strength-color: #d40000;
}

.hmdia-password-strength[data-strength="moderate"] {
  --hmdia-strength-fill: 75%;
  --hmdia-strength-color: #db8c02;
}

.hmdia-password-strength[data-strength="strong"] {
  --hmdia-strength-fill: 100%;
  --hmdia-strength-color: #1ec904;
}

.hmdia-password-strength-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The native dialog supplies focus containment and the HMDIA overlay supplies the design. */
dialog[data-hmdia-password-validation].ui-reauth-overlay {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  font-family: system-ui, sans-serif;
  overflow: auto;
}

dialog[data-hmdia-password-validation]:not([open]) {
  display: none !important;
}

dialog[data-hmdia-password-validation]::backdrop {
  background: transparent;
}

[data-hmdia-password-validation] .ui-reauth-dialog {
  max-height: 100%;
  overflow: auto;
}
