#auth-dialog #auth-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #94a3b81c;
  color: #cbd5e1;
}

#auth-dialog #auth-close:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px #b8c3d080;
}

#auth-dialog #auth-close > svg {
  width: 18px;
  height: 18px;
}

#auth-dialog .auth-password-field {
  position: relative;
  display: flow-root;
  --auth-field-height: 46px;
  --auth-field-gap: 14px;
}

#auth-dialog.match-auth .auth-password-field {
  --auth-field-height: 42px;
  --auth-field-gap: 13px;
}

#auth-dialog #auth-form .auth-password-field input {
  padding-inline-end: 48px;
}

#auth-dialog .auth-password-toggle {
  position: absolute;
  inset-inline-end: 1px;
  inset-block-end: var(--auth-field-gap);
  display: grid;
  place-items: center;
  width: 44px;
  height: var(--auth-field-height);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

#auth-dialog .auth-password-toggle:focus-visible {
  outline: 1px solid #a6afb9;
  outline-offset: -4px;
  box-shadow: none;
}

#auth-dialog .auth-password-field [hidden],
#auth-dialog .auth-password-field label[hidden] + button {
  display: none;
}

#auth-dialog .auth-password-toggle > svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

#auth-dialog .auth-password-toggle:not([data-visible]) .eye-slash {
  display: none;
}
